Live data from Hacker News

Will Rails be the new PHP

roytomeij.com

31–32 of 32 posts

Re: Will Rails be the new PHP

#31
post #29

Earlier quoted context omitted.

Find/Replace "rails" with "Symfony" and you'll have the PHP equivalent. Also, "bundles" instead of "gems". This is why PHP negativity has been increasingly misguided for the past 2 years.

most of the PHP devs i know write raw PHP. they do not use a framework. one team built their own (4 years back). And NONE of them wrote tests. Actually i have never seen or heard any php dev writing and evangelizing tests In ruby, mostly everyone i know, uses rails and mostly everyone writes some test. either TDD or after writing the code. It is not as bad as PHP but personally even for me, i should write better rail…

That's exactly the point I was making. Symfony developers are similar batch of developers like you see with Rails - writes tests, utilizes frameworks/components, very active in open-source.

Any developer, PHP or otherwise, that knowingly ignores contributions within the community is dangerous :)

No matter what language you use, you can always write better code, even with PHP!

Re: Will Rails be the new PHP

#32

Earlier quoted context omitted.

PHP is somewhat unusual in the extent to which things normally reserved for frameworks are included in the language. For example, PHP comes with a template language. It isn't so unreasonable to compare these facilities to analogous ones provided by frameworks.

PHP has a large number of frameworks that serve the same purpose as Rails. I'm fond of both Rails and CakePHP, and while there are differences between the two, talking about how "Ruby" avoids messy code by forcing MVC onto people but "PHP" doesn't is silly.

The existence of (say) CakePHP does not affect my point, which is that core PHP includes a lot of facilities that in other languages are part of a framework written by a third party, such as a template language.
Post reply on HN