News for hackers. Stuff that matters.
Re:In Defence of WordPress by vectorpush on Thursday May 14, 2015 @10:54PM (#9548748)
> 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?

http://www.php-fig.org/psr/psr-4/

Re:In Defence of WordPress by fsk on Thursday May 14, 2015 @11:02PM (#9548764)
Nope, he didn't follow that, he had a bunch of exceptions coded in his autoload function.

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.

Re:In Defence of WordPress by girvo on Thursday May 14, 2015 @11:52PM (#9548858)
Right, but that's the problem.

You can quite easily make an abomination of a class hierarchy in Ruby, or Javascript, or even Python to some extent. If people don't follow best practices, then of course things will not work with other tools that expect your work to do so.

Also, I highly recommend XDebug with the Codebug[0] client -- if you're working with a crappy codebase and run into the issue of "what damned file is this?" it will solve that in a super nice way. It also gives you a full REPL in your working environment, pause execution and play around in the PHP side during your request :)

[0] http://codebugapp.com

Re:In Defence of WordPress by fsk on Friday May 15, 2015 @07:34PM (#9554317)
I'll look into Codebug. I haven't found a PHP editor I really like yet. I've been using dev-PHP and emacs. I'm using Netbeans at work and don't like it.

Oh nevermind, Mac only, forget it.