What’s better? Ruby on Rails vs. PHP

A friend of mine has a project where he wants to make a social community and was unsure which way to go. He asked me to ask you guys of help. It is the question which is discussed everywhere - Ruby on Rails vs. PHP - but most of them are not very neutral. Many of them are too pro for Ruby on Rails or too pro for PHP.

ruby-vs-php Whats better? Ruby on Rails vs. PHP

Ruby on Rails is a relatively new and young programming language. By doing a research for advantages and disadvantages. PHP is easy to learn and many people have experience with it. In our mind are some more important questions.

What’s about:

  1. Performance?
  2. Security?
  3. Scalability?

This is an invitation for all of you to make your point of view clear, so that this question will be asked the last time!

It’s your turn: What’s the best- Ruby on Rails or PHP?

Spread the words

Digg Del.icio.us Stumble Float Technorati Bump
Whatever you want to say!

Knowtebook
May 17, 2008
No: 8 / ID: 863

thanks peat for your opinion. the problem we are meeting since 2 months of searching a programmer is that if we ask a php developer, he would do it in php of course, and if we ask a ruby developer he says ruby would be the best. what we were looking for are people with knowledge of both and who can advise us. it seems to be more difficult that we thought.

what is so special about seaside?


Peat Bakke
May 16, 2008
No: 7 / ID: 847

@randal, @james — Seaside is impressive to see in action. One of these days I’ll have to spend some time tinkering with it!

@knowtebook —

From your brief description, there isn’t anything about your project that seems to demand a particular framework or language, so it sounds like you should focus on finding good developers who have built similar types of projects, regardless of the language they use.

If this were my project, I’d probably build the core site on Rails, and those widgets and plugins may have to be written for whatever kinds of blogs you’re targeting. PHP for WordPress blogs, for example.

Regarding Ruby not being compiled: this shouldn’t be a problem, as people visiting your web site don’t have access to the source code (it never leaves the server). Same goes for PHP, or any other scripting language used for building web apps. Of course, if someone breaks into your server they can look at whatever they want, but access to the source code is probably going to be the least of your worries. :)


Knowtebook
May 16, 2008
No: 6 / ID: 844

Okay thank you guys. I understand the question between ruby and ruby on rails. Of course i meant Ruby then. seaside sounds really new and i doubt it is already time for it, since the community seems to be smaller. nevertheless. lets compare it too! what do you think is and why is it better: seaside or ruby?

@Peat Bakke:
Well we want to make a whole site with frontend and backends from scratch. We also need an ad management and billing system for free and premium users so the point of security comes in place. in addition to that we need the whole variety of social community extensions like toolbars oder widgets for your own blog. I think there is much potencial for extending the site and thats were another friend of mine said it would make more sense to use ruby.

On the other hand, i heard that ruby will not be compiled and the source code is available to anybody which knows how to get to it. If that is true, the point of copyright law and security makes me afraid. What would you guys say to that?


Peat Bakke
May 16, 2008
No: 5 / ID: 842

Before I can answer, I have a question for you: what are you trying to build?

That’s the question that defines that language or framework is right for the task. Performance, security, and scalability are all qualitative terms — you should offer up a specific scenario (or even better yet, a set of wildly differing scenarios) and see which fills the bill.

For example … if I’m working with a company that has an existing database in place that they want to tap into with their web application, I’m probably going to pick PHP or Java over Rails, because Rails has strong opinions about the structure and style of databases it works easily with.

On the other hand, if I’m under the gun to produce a typical volume web application (like a blogging system, or an e-commerce site) from scratch that’s expected to serve thousands of people per month, I’m definitely going to go with Rails.

Building a banking application? Java.

Working with a lot of Microsoft server components? .Net

Context is everything for these sorts of questions. :)


Randal L. Schwartz
May 15, 2008
No: 4 / ID: 839

For performance, security, and stability, you should strongly consider Seaside instead of either Rails or PHP. (http://seaside.st)


EllisGL
May 15, 2008
No: 3 / ID: 838

This question is invalid, since Ruby on Rails is a frame work for the Ruby language. The question should be Ruby vs PHP.

As for my preference, I chose PHP over Ruby for the language syntax and the large community. Never mind the fact I’ve been working with PHP for about 10 years now.


James Robertson
May 15, 2008
No: 2 / ID: 837

You might want to add Seaside (Smalltalk) to your list of web frameworks to consider. Have a look here:

http://www.seaside.st


Tim
May 15, 2008
No: 1 / ID: 836

You make me want to cut myself.

You can’t go around comparing a framework to a scripting language. At least compare it to something like CakePHP.

Leave a comment!
Note: You can also use your free Gravatar avatar on Knowtebook! Please also read our Publishing Policy before posting.

Yes, I would like to receive notification on incoming comments!

Trackbacks/Pings
Trackback-URL