2 ms·
This is certainly also the most important thing for existing PHP developers still hanging on to the "old" way of writing PHP code. Having worked on sites where
by krapp 12y ago
This is certainly also the most important thing for existing PHP developers still hanging on to the "old" way of writing PHP code. Having worked on sites where everything is an undocumented mess of manual multi-level includes with shared globals and half-baked implementations of things which already exist, in a better form, well tested and documented elsewhere, I feel like I need to shout from the rooftops php has a package manager! f_ing use it! and url routers are a thing now!
It really is surpising how far you can get with a little effort now in PHP, and how much suffering you can avoid by just letting go (of what, admittedly, makes the language fun for some - it's raw, ugly, stupid simple quick-and-dirty hackability) and embracing structure. And open source code.