Linked by snydeq on Tue 14th Oct 2008 16:58 UTC
Thread beginning with comment 333669
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
The problem is that it isn't enforced as it is in Django, for instance.
Sure, good coders can write good code in any language and beginners can write crap code in any language. The nice thing is that frameworks like Django make it harder to write bad code by encouraging good programming practices whereas languages like PHP offer no such encouragement.
RE: PHP <> Spaghetti code
by StephenBeDoper on Wed 15th Oct 2008 08:02
in reply to "PHP <> Spaghetti code"
There's also the CakePHP framework, which looks to be quite nice (http://cakephp.org/). Unless the cake is a lie, of course (sorry, requisite).
Edited 2008-10-15 08:02 UTC






Member since:
2005-07-06
But will PHP be able to shake the casual structure that encourages beginners to whip up spaghetti code? Will it be able to continue to mix the presentation layer and the application layer without driving everyone insane? Will Zend's collection of server optimizations provide enough performance to overcome any limitations of the language?
Any language can be made to produce spaghetti code and mix presentation and application layers together. Have a look at the Zend framework and you will see how well it enables MVC design. Views and layouts including being template language neutral.