3 ms·
A nice way of putting it. Somewhere along the line of web/http systems views became templates -- while an MVC "view" really is (some) logic+rendering -- not "ju
by e12e 13y ago
A nice way of putting it. Somewhere along the line of web/http systems views became templates -- while an MVC "view" really is (some) logic+rendering -- not "just" rendering.
I'm not sure if rails is the first offender here -- php (and asp, jsp etc) makes it so easy to drop a ton of complexity on your lower extremities that it becomes necessary to "ward off" the part that actually does templating from the rest of your code -- which, if it's all old school php -- isn't terribly easy to do -- or at least isn't trivial to make "obvious" in your code.
If you fail to maintain a part of your code as template-php, and mix it up with your logic, your nicely structured application quickly becomes a mess (this is what old php codebases I've looked at looks like -- and has left me a a little resentful against the entire language. Probably more than php deserves).
- camus 13y agophp is not a framework. How many people use bare ruby , bare python or bare java to code webpages ? ( and by the way JSP can be a mess too , so it's not about the language,it's about the brain behind the desk ). Rails , Django and others give devs MVC for free , not PHP, not Ruby , not Python.