|
Author | Message |
---|
OhhOhh Member
Posts : 10 Join date : 2011-03-09
| Subject: Ruby vs. PHP Thu Jun 23, 2011 6:30 am | |
| Can anyone explain the differences between PHP and Ruby On Rails in terms of what can be done with them and ease of use? |
|
| |
Kinkii Member
Posts : 13 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:31 am | |
| |
|
| |
Dubstep Member
Posts : 9 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:33 am | |
| - Kinkii wrote:
- Never took the time to learn Ruby, but this may help:
http://blogs.computerworld.com/15460...vs_php_vs_ruby "But Perl syntax can be difficult to handle not only for an occasional coder like me, but programming pros." this is like talking about avantages and disavantages to be pregnant, i don't know how it is but i have a opinion, best regards and happy holidays |
|
| |
OhhOhh Member
Posts : 10 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:34 am | |
| |
|
| |
False Member
Posts : 18 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:34 am | |
| PHP is a programming language, Ruby on Rails is a programming framework written in Ruby. You would be better comparing PHP with Ruby or something like CakePHP with Ruby on Rails to get a similar comparison.
You would be able to do virtually anything in Ruby that you can do in PHP, there would be very little (dare I say nothing?) you could do in one that you couldn't do in the other.
I'd advise taking a look as both of the languages and having a play around with them to see which you like and get on with the best. They have very different philosophies and ways of working and you may find you get on better with one that the other. Ruby has a much more engrained philosophy of testing and test/behaviour driven development which is not as prominent in the PHP community if that's a consideration.
I've personally used both extensively for many years however I now only code in Ruby because I much prefer it and get far more enjoyment out of coding in the language. |
|
| |
OhhOhh Member
Posts : 10 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:35 am | |
| Is there any benefit in learning php first? Thanks |
|
| |
Feather Member
Posts : 27 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:36 am | |
| I'm going through this decision making process myself. I haven't programmed for 15 years and have set myself a goal of developing a web application which earns more than £500 per month.
I've been research development technologies and am overwhelmed by the number of options.
The main thing I've found is getting unbiased comments on either PHP or Ruby on Rails is near to impossible. Most people out their seem blindly loyal to one or the other.
On first impressions it's clear that PHP is much rawer. You are able to carefully control everything and do things very well or very badly.
Ruby on Rails seems to offer a much faster development cycle due to it being a framework but you are slightly further removed from full control.
To me both have merits and I am investigating both for a while before deciding on which technology to go with.
Here's hoping no one gives me any more languages to consider! |
|
| |
OhhOhh Member
Posts : 10 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:36 am | |
| Actually that is very similar to what I have been learning. php is more granular but Ruby is quicker to develop with. |
|
| |
Wishes Member
Posts : 9 Join date : 2011-04-16
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:37 am | |
| As said before in this thread, comparing a programming language to a framework is comparing apples to oranges.
CakePHP is the base comparison to Ruby on Rails (in fact, cakePHP founders say they developed it to be a direct port of RoR to PHP).
So, that said, any framework will have advantages over the straight programming language because common tasks (such as Database interfaction, templating, mail, etc) are already created in modules for you to implement. However, it also results in several unknown limitations that you need to be aware of. CakePHP and RoR both use ORM, and if you're not careful in how you implement something, you can end up using a lot (A LOT) of extra memory in your application that you don't need to, or end up with nested foreach loops that slow your entire app down.
To me, CakePHP = RoR. I haven't seen any benefit of one over the other. To me, the biggest issue is finding support / hosts that support RoR and actually know what they're doing. |
|
| |
OhhOhh Member
Posts : 10 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:40 am | |
| Are there any ROR hosting companies that you think are good? Thanks |
|
| |
Scars Member
Posts : 16 Join date : 2011-03-09
| Subject: Re: Ruby vs. PHP Thu Jun 23, 2011 6:44 am | |
| - Feather wrote:
- I'm going through this decision making process myself. I haven't programmed for 15 years and have set myself a goal of developing a web application which earns more than £500 per month.
I've been research development technologies and am overwhelmed by the number of options.
The main thing I've found is getting unbiased comments on either PHP or Ruby on Rails is near to impossible. Most people out their seem blindly loyal to one or the other.
On first impressions it's clear that PHP is much rawer. You are able to carefully control everything and do things very well or very badly.
Ruby on Rails seems to offer a much faster development cycle due to it being a framework but you are slightly further removed from full control.
To me both have merits and I am investigating both for a while before deciding on which technology to go with.
Here's hoping no one gives me any more languages to consider! if planning on selling licences to use your application then php would be the obvious choice as there's far more hosting companies/existing sites using that technology. If planning on offering a service then ROR could be the better choice as it's a rapid development environment. This of course doesn't take into account asp.net, coldfusion, or the myriad other options available to you. |
|
| |
Sponsored content
| Subject: Re: Ruby vs. PHP | |
| |
|
| |
|