Ask HN: PHP or Ruby on Rails
I want to know, with which language is easy to develop a web project ?
Best Regards,
I want to know, with which language is easy to develop a web project ?
Best Regards,
http://fatfree.sourceforge.net/
and language is evolving in decent steps, has A LOT components, extensions, libraries. its easy to find solutions for your problems in search engines, or community. i like ruby too, but sorry, i will be going probably for python/golang/(maybe even java) soon (i dont like front end stuff). ruby is just too young to become something more serious in web development, and other languages are catching good ideas from ruby fast... you should define your goals more precisely and choose where you will go next
Damn debian! Time to compile PHP from source, so I can get the rev 5.3 that fatfree needs.
Personally, I stick to PHP for new projects because it's what I know - trying RoR out would have to be a spare-time endeavor, and I already have tons of stuff I like to do in my spare time. If I had no prior experience, I'd probably pick RoR though.
[1] ignoring the old tired rant about function naming: object->badproperty just causes a notice and carries on, object->badfunction() crashes with a fatal error, null->property, null[property] and 1 + undefined are also just notices... basically you want an error handler that turns anything into a fatal error, but then you can't co-op with any older code as even older "frameworks" such as Joomla are full of that crap.
My opinion: Why choose? Try both, write a simple app in both and follow a tutorial or two. Decide which one you like best. Which was easiest to find documentation? Which community was more helpful to you?
I'd also recommend checking out Sinatra, since it's sort of in between the two other frameworks you mention. It does more than PHP and less than Rails, but is (I think) far simpler than either one.
Quick facts: 1.) It's easier to find php hosting for cheap. low cost to get started.
2.) It's easier to develop a prototype in Rails quickly, especially if your app has some CRUD stuff, you can get it up and running in no time, but this interface would just be for testing. Its called scaffolding.
3.) You can do the same scaffolding in php frameworks like cakephp.
4.) With ruby you get a lot of well-built libraries which are called "gems". they are handy and are centralized, so you can update to a new version easily.
5.) With php you can get a lot of cheap man power to work on you app if it requires some complex plugins.
6.) If you are going to use ruby, I suggest getting familiar with linux commands. That way you can find cheap vps to host the app (but not as cheap as the php hosts you'll find). Or develop it on heroku's free plan.
7.) Now that you know these, go develop the app on whichever language you find easy.
P.S: If you are seriously out of money, and can spend only in single digits ($x), you should seriously consider doing the app in php. The same applies if the app is too simple
Also on a side note, ROR is a framework for Ruby, so you cant compare it with PHP. There are some really good PHP frameworks out there too (Symfony, CakePHP, Codeigniter) but they essentially try to imitate ROR and bring those design paradigms to php.
If Ruby devs are paid more, it's probably because they're more productive. Now, I'm not a Ruby fanboy, and people can be very productive in many other languages. I think in general paying someone far less to write a codebase in PHP may be penny-wise but pound-foolish.
PHP is, in my opinion and that of many others, a very poor language that encourages poor coding practices. It's possible to write good code in PHP and poor code using Django/Rails but I think there's a strong correlation between the tools used and results produced.
1. Accessibility to good developers
2. Hosting options
3. Scalability
4. Tools Support for Building and Testing
5. Documentation and Developer Community
6. Security
7. (something i missed?)
Could some one help the guy by comparing the two according to these factors or point to some credible study?
Check into whatever your nicest techy friends are using.
After all, if you run into any problems, they'll be ones you'll reach out to for help.