4 ms·
The comparison between PHP and frameworks isn't valid. Writing PHP on a framework probably abstracts away SQL too, just like writing CGI in Python gives you low
by adambard 15y ago
The comparison between PHP and frameworks isn't valid. Writing PHP on a framework probably abstracts away SQL too, just like writing CGI in Python gives you lower-level control.
- rick888 15y agoWhen frameworks are the popular alternative to PHP (RoR,Django,etc), it is valid. Are we also not allowed to talk about RoR when it comes to a discussion about PHP alternatives?
- randomdata 15y agoThat is like saying Cocoa is a popular alternative to C++, but you prefer C++ because it allows you to write your own UI event loop. I guess it is true if you really stretch your imagination, but does it mean anything?
- rick888 15y agoYes, when I write a web app, I don't want to be stuck with extra code that abstracts away the database into a less-efficient object/class and forces me to break the convention of the framework to write the code that I need. I suppose it's fine when many of then newer programmers don't even know or understand what's going on underneath anyway...
- docgnome 15y agoIt's a bit comparing apples to oranges. If you were comparing say Cake or Zend to RoR and Django then it would be a reasonable comparison.
- rick888 15y agoIt doesn't stop the hordes of programmers on HN talking about Ror and Django and Cherry pi as an alternative to PHP.
- ericd 15y agoIt's not really apples and oranges - writing a website in raw Ruby is not a very feasible or popular option, whereas writing a website in raw PHP is. It is valid to compare writing a site in PHP and writing a website in Rails. It is also valid to compare writing one in Cake vs. RoR, as well as Cake vs. raw PHP (or a custom PHP framework, which is what raw PHP inevitably becomes in a sufficiently large project).