Left on the Web

Another advantage of Symfony: Debugging

I'm not even talking about the unit testing and functional testing setup that Symfony has built in, as I haven't even had the time to use it (I know, bad bad bad, but sometimes you just can't do it when the needs for speedy delivery are high). I'm simply talking about the clarity of structure.

I'm not even talking about the unit testing and functional testing setup that Symfony has built in, as I haven't even had the time to use it (I know, bad bad bad, but sometimes you just can't do it when the needs for speedy delivery are high). I'm simply talking about the clarity of structure. The application I'm dedicating most of my worktime on these days used to be built in Mambo, with components doing all the hard work. Not an ideal setup, because the underlying technology (Mambo) hardly offers a good guideline for the development. It also hardly offers any real utilities for writing clean code, such as the Symfony helpers, a clear MVC structure, or even a clear OO approach. Over the past few work days, I've been focussing on debugging our first stable release. Where, with our previous (Mambo-based) version, when you had to debug something, you were spending more time searching for the bug in the code than fixing it. A LOT more time. Now, with this new Symfony version we have, because Symfony offers clear guidelines on project structure and code structure, because the MVC setup is so clear, and because code has it's clearly identifiable place within your source tree, fixing bugs is a matter of opening the right file, and fixing the code. This way, it's not a boring and annoying job anymore to do bugfixing. It's a joy to do it, since it's so darn easy to identify the offending code!
Add comment

Comments

gravatar Stereo: Not only does the nature of the MVC framework make it easier to track down and identify any bug-ridden code, but there are some great helpers that symfony provides to throw detailed exceptions, add lines to the log file, or even output debug messages in the inline debug console within a page. I use these a lot, but not enough to remember the syntax exactly, so I compiled a cheat-sheet for them. (Click name for link.)


gravatar stefan: Thanks for that comment, indeed that is a useful debug-cheatsheet.


gravatar shai: Nice fancy words,
but at the bottom line -
1. i found it impossible to enter to debug mode with ecplipse variouse php plugins.
2. symfony has realy bad documentation.
3. i dont understand why same objects has to be called different in the view code and in the controller code.
4. dot NET rules!
© 2004 - 2009 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Ma.gnolia, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.2.3