News for hackers. Stuff that matters.
Re:The new php.net by heidar on Tuesday June 25, 2013 @04:56AM (#5938269)
I use Symfony 2 a lot myself and more recently Laravel 4. While they are definitely solid frameworks I find that the Java-esque level for abstraction in the code base makes debugging a big pain at times. Especially in Laravel 4 which is mostly a layer of static methods on top of Symfony 2.

Also developers who split the project into many bundles...all those directories and namespaces. Really irks me. At least Laravel 4 solved that problem though.

Re:The new php.net by hugofirth on Tuesday June 25, 2013 @05:51AM (#5938401)
What you are referring to is not "just" static methods. It is known as the Facade pattern and was utilised entirely for the increased testability it provides. In light of that - the comment about debugging rings slightly hollow.

Furthermore Laravel 4 uses the whoops error framework - which provides very in depth errors.

Re:The new php.net by heidar on Tuesday June 25, 2013 @06:57AM (#5938587)
Yes, just quoting the docs: "Facades provide a "static" interface to classes that are available in the application's IoC container."

Your comment on Whoops rings a bit hollow because it was only added a few weeks ago. I was using it before it was added but it certainly helps. That was before Laravel hit 4.0 stable though.

Whenever something didn't work for some reason, digging through the abstraction that is Laravel+Symfony could be frustrating. Thankfully Symfony 2 has good API docs.

Re:The new php.net by sbarre on Tuesday June 25, 2013 @08:39AM (#5938977)
You are using a proper IDE with XDebug or Zend Debugger installed, right?

I don't mean this in a snarky way at all. If you're not, and you work with some of the more complex frameworks like Laravel, do yourself a favour and investigate XDebug, and an IDE like PhpStorm that can take advantage of it. It will change your workflow for the better.

The first thing I do with any new framework (which I did with Laravel a few weeks back) is set up a really simple Hello World app and then step through a request loop, start to finish, to get a feel for how the framework sets up a request, dispatches it, and then tears down..

Just from that first exercise, I am immediately more productive with the new codebase..

Re:The new php.net by randallsquared on Tuesday June 25, 2013 @11:31AM (#5940154)
> It will change your workflow for the better.

...and the only detail you'll be missing is a good editor. But XDebug works with vim, too. :)