Very interesting : 7 reasons I switched back to PHP after 2 years on Rails
Publié par Marcan le 2007-09-24 (92 lus)
Very interesting article by Derek Sivers : 7 reasons I switched back to PHP after 2 years on Rails.
Interesting... The guy invested 2 years to redevelop his PHP site in Rails, and after these 2 years, he decided to rewrite everything in PHP again .
Citation :
I didnt abandon the rewrite IDEA, though. I just asked myself one important question:
Is there anything Rails can do, that PHP CANT do?
The answer is no.
I threw away 2 years of Rails code, and opened a new empty Subversion repository.
He took the best ideas of Rails, and applied it to PHP !
Citation :
Its the most beautiful PHP Ive ever written, all wonderfully MVC and DRY, and and I owe it all to Rails.
Inspired by Rails:
*- all logic is coming from the models, one per database table, like Martin Fowlers Active Record pattern.
*- no requires or includes needed, thanks to [url;=http://www.php.net/autoload]__autoload[/url].
*- real MVC separation: controllers have no HTML or business-logic, and only use REST-approved HTTP. (GET is only get. Any destructive actions require POST.)
*- all HTML coming from a cute and powerful templating system I whipped up in 80 lines, all multi-lingual and caching and everything
*- and much more. In only 12,000 lines of code, including HTML templates. (Down from 90,000, before.)
Again, interesting because this very similar to what we are doing with our SmartObject Framework
Autres articles dans cette catégorie | Date de publication | clics |
Facebook imressionne toujours | 2007-11-07 |
56 |
Senaca Free Software and Open Source Symposium 2007 | 2007-10-29 |
76 |
Rencontre PHP Québec du 4 octobre | 2007-10-02 |
117 |
Very interesting : 7 reasons I switched back to PHP after 2 years on Rails | 2007-09-24 |
93 |
Célébration CMS 2007 | 2007-09-19 |
97 |
Identity 2.0 Keynote | 2007-09-11 |
124 |
Implementation of OpenID in XOOPS | 2007-09-11 |
110 |
Encore d'autres pub concernant Linux | 2006-10-29 |
198 |
Toronto Free Software and Open Source Symposium | 2006-10-28 |
145 |
Les commentaires appartiennent à leurs auteurs. Nous ne sommes pas responsables de leur contenu.
|