Hacker News new | ask | show | jobs
by mythrwy 3387 days ago
Having had to find and fix a bug in a very long page like that recently I can definitively say I don't. Horrible.

Granted the person who wrote it obviously didn't care but that setup was awful for anything of any size.

1 comments

You can write bad code(not modular) with every language...

If you use some include() in php, you can avoid long php/html pages...

What I really miss is that was very fast "GET SHIT DONE" with PHP.

>If you use some include() in php, you can avoid long php/html pages...

In my experience, you just get long PHP pages including other long PHP pages, globals defined in one and used in others, included files that contain nothing but HTML, and other madness.

You can certainly GET SHIT DONE in PHP with a bit more coherence. Composer, with its autoloader and a router (probably nikic/fastroute) won't get in your way, your code will be more organized, modular, and lightweight, dependencies can be managed, etc.

Is non-modular code always necessarily bad?