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.)


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


June 15, 2007
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!
March 10, 2008
gravatar como reducir el colesterol: Great job ! :evil:
February 1, 2012

Php5_zce_logo

Upcoming events

I will be speaking 17-02-2012: Techademy Trainingday February
I will be speaking 23-02-2012: Zend Webinar: Git for Subversion Users

Tags

1337 2008 2010 2011 4developers access modifiers accessibility AdaLovelaceDay09 advent agavi agile alfred amsterdam apache api apple article articles atk atkMetaNode audioscrobbler automation azure backwards compatibility barcelona barcodes bash bbc bbq beatstad belgium best practices bittorrent blogging blogs boards of canada book books bughuntday bundle caching cake cal evans calendar career cat cerf certificate cfp clear cms cologne common sense communities community components conference conferences contest continuous integration contribute contribution crisis css custom d-day datetime DbFinderPlugin decorator decorators deployment devdays development directoryindex docblox doctrine documentation download dpc dpc09 dpc10 dpc11 DPC2008 dreamhost drupal dv7 eclipse ed editors efficiency enterprise errors event events expertise ezcomponents facebook finland flickr fork framework frameworks freelance freeze frontend fun game games geoip germany getting real git github gnome-do google google calendar googletalk graceful degradation hack hackers hidden gem hiphop howto hp HR html http i386 ibuildings icann ide ideasofmarch idm imovie indy ingewikkeld integration international php conference internet interview ipad IPC ipc ipc08 ipc10 ipc11se iterm2 javascript jenkins jenkins-php job job openings jobeet john peel joomla joomladays kiva kubuntu launcher launchy left on the web libraries library lighttpd lime linktuesday linux live london loudblog m2ts mac magazines malware mambo marjolein mediterra meeting meme meta methodology micro-financing microframework microsoft migration movie music mysql namespace namespaces netbeans netherlands newsfire nllgg nos odmarco open source opinion ORM osx paradiso paris partnership pavilion pear pecl performance personal pfc10 pfc11 pfcongres pfcongrez pfz photo php php5.3 phpabstract phpazure phpBB phpbb phpbelgium phpbenelux phpbnl10 phpday phpdoc phpdocumentor phpgg phpitalia phpnw phpnw08 phpnw11 phpstorm phptek phptek09 phpuk2009 phpUnderControl phpunit php|architect php|tek podcast politics portability postcrossing presentation presentations private projects protected prototype PSR-0 public python qa qr codes re2c recruiting refactoring review rewrite ruby on rails san francisco schedule scifi script security sensio seven things sfdaycgn sflive2011 shell scripting silex simplexml slides smfony software sogeti solar sound speakers spl ssh standard standards star trek static steer strings stylesheets subversion symfony symfony live Symfony2 symfonycamp symfonyday symfonylive symfonyUnderControlPlugin talk talks techademy technology techportal tek09 telecommuting terratec terrorism testfest testing textmate textpattern the right tool timeout tips tld todo tomas tools training twig uncon unet usability usergroup validation vhost video vim vinyl virus warp webinar weblogging webservices wiki windows winphp women wordpress work workshop world world of warcraft wpi writing wunderlist xml xpath xsd yara year youtube zc11 ZCE zemanta zend zend framework zend server zend studio zendcon Zend_Form zite
© 2004 - 2012 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Delicious, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.4.0.1