by pyre · 11y ago · 0 comments
I also had a PITA debugging someone else's code with autoload magic. He didn't follow any pattern for what code was in which directory, and he reused class names so grep didn't work. Now where is that source file again? (In one particular abomination, he took a string from the database and included that source file.)
That's one nice thing about PHP. You can use PHP for a simple straightforward style, or for an abomination like zend.
Vanilla wordpress is good. I'm working on a project that has a custom framework that lives on top of WordPress, and I'm cursing the people who wrote it and my employer for outsourcing the WordPress project to them.
He also had a bunch of functions where a function in one class nothing but call another function in another class. He also had way too many classes.
The other reason I like it is it gives me much more control over routing, versus relying on folder and file structures :)