5 ms·
I dont think so. Having migrated to Ruby and Rails from PHP there are a number of compelling differences that will avert the gloom and doom the author seems to
by up_and_up 14y ago
I dont think so. Having migrated to Ruby and Rails from PHP there are a number of compelling differences that will avert the gloom and doom the author seems to mention:
* Rails is driven/maintained by really high quality developers who adhere to best practices
* The project is well-organized, opinionated and focused, developers tend to follow the one right way of doing things.
* The Rails Ecosystem of gems and plugins has whole gamut of solutions to various engineering problems. These gems vary from excellent to horrible, with the excellent ones floating to the top and become standard for use.
* Rails encompasses best practices that were learned from years of making mistakes with PHP and Java development. It is that much more evolved as a result.
In general, I would say the main difference is Rails seems more top down in the direction of ideas and best practices. People tend to mold themselves and their code to fit with the best practices displayed by core or by seasoned Ruby developers.
PHP on the other hand seems more like a free for all, with little top down influence at all.
- ericclemmons 14y agoFind/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.
- dkannan 14y agomost 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 rails code
- ericclemmons 14y agoThat'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!
- darkf 14y agoCan you give examles of these "best practices"?
- dkannan 14y agocheck http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison-Wesley-Professional/dp/0321604814 http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison... other than that, 1. write tests 2. good community. for some measure of good