PHP vs RoR

Geriatrix

Executive Member
Joined
Nov 22, 2005
Messages
6,554
Reaction score
3
Location
Right here
Reddits swooning over Ruby. Is it really worth my while to try and learn Ruby on Rails over php?
I'm a hobbyist btw so no need to consider any career consequences or anything serious.
 
for web development i would use ROR over PHP any day. Its fast, flexible, scalability is awesome. And its just pure awesomesauce.
 
for web development i would use ROR over PHP any day. Its fast, flexible, scalability is awesome. And its just pure awesomesauce.

RoR biggest issue is scalability, and the fact that is scales badly
 
Reddits swooning over Ruby. Is it really worth my while to try and learn Ruby on Rails over php?
I'm a hobbyist btw so no need to consider any career consequences or anything serious.

They are completely different technologies.

PHP is a glorified scripting language.

RoR is a full dynamic programming language with tightly coupled technologies and architectures for web development

So it really depends on what sort of development you would like to do
 
RoR biggest issue is scalability, and the fact that is scales badly

Really? You would have to have a stupid amount of traffic to even start having to think of optimizing.
Hell, Twitter is written in RoR
 
Really? You would have to have a stupid amount of traffic to even start having to think of optimizing.
Hell, Twitter is written in RoR

Also has a mix of scala.

PHP is ok. Thou i still think the king for web development and speed is RoR.
 
And Twitter is always down when I try to log in ;)

Define down: site not accessible? Thats not RoR thats there http server, slow response ? Thats your internet connection. personally i've not had issues with twitter or sites like reddit. And issues logging in are not because of RoR but database architecture.
 
...stupid amount of traffic...

So basically, when you're expecting amounts of traffic that have average or high levels of intelligence (i.e. not too stupid), then RoR would be better. :p

Anyway, for a hobbyist I would recommend the cakePHP framework, but RoR is ok too. For web app development, JAVA is probably the best.

But these types of analyses and comparisons are often very subjective, as is the case with mine.
 
They are completely different technologies.

PHP is a glorified scripting language.

RoR is a full dynamic programming language with tightly coupled technologies and architectures for web development

So it really depends on what sort of development you would like to do
I'd like to make cool database driven webapp type dynamic websites. Like Twitter or Flicker or Catsthatlooklikehitler.com :D
 
They are completely different technologies.

PHP is a glorified scripting language.

RoR is a full dynamic programming language with tightly coupled technologies and architectures for web development

So it really depends on what sort of development you would like to do

Indeed. You need to compare RoR with PHP + Zend/Symphony etc. If you have any experience in C syntactical languages you'll find PHP easier to pick up. Although I found the rails framework easier to get started with. On the other hand I find I have more choice and flexibility with PHP (particuarly with the Zend framework). Either way, you can't really go wrong. Pick one and dive in.

Twitter did cite Ruby as a a major bottleneck in their performance, however after making some architectural changes and moving some of the heavy lifting to Scala I believe that's mostly resolved now.
 
I'd like to make cool database driven webapp type dynamic websites. Like Twitter or Flicker or Catsthatlooklikehitler.com :D

In that case, skip both, learn some Python and use Google's App Engine.
 
if you're a hobbyist, who wants to do custom dev on a server you have full control over, give ruby a spin.
if you're making sites for other people using popular content management frameworks on shared hosting, rather learn php.
performance and scalability is an endless debate imo, facebook and farmville use php for example.
 
1. Free to get started, only start paying when you're generating enough traffic. (500MB storage and 5 million monthly views)
2. Very simple to use.
3. Really simple, powerfull API's (data, images, mail, users etc.).
4. Python's a great language to work with.
5. Leverage Django, Pylons, Google's WebApp or whatever you need.
6. Scalability isn't an issue, your site will scale as it needs to.
7. Easy to model data - no need to setup and maintain a DB, indexes etc. You use a Bigtable implementation with auto-indexes (can add own indexes also)

Alot of C-based modules are disabled, however there are often pure Python implementations of them. Check out the documentation. It's very easy to follow and you'll be up and running in no time.
 
1. Free to get started, only start paying when you're generating enough traffic. (500MB storage and 5 million monthly views)
2. Very simple to use.
3. Really simple, powerfull API's (data, images, mail, users etc.).
4. Python's a great language to work with.
5. Leverage Django, Pylons, Google's WebApp or whatever you need.
6. Scalability isn't an issue, your site will scale as it needs to.
7. Easy to model data - no need to setup and maintain a DB, indexes etc. You use a Bigtable implementation with auto-indexes (can add own indexes also)

Alot of C-based modules are disabled, however there are often pure Python implementations of them. Check out the documentation. It's very easy to follow and you'll be up and running in no time.

+1 but not too sure it is a hobbyists route though
 
1. Free to get started, only start paying when you're generating enough traffic. (500MB storage and 5 million monthly views)
2. Very simple to use.
3. Really simple, powerfull API's (data, images, mail, users etc.).
4. Python's a great language to work with.
5. Leverage Django, Pylons, Google's WebApp or whatever you need.
6. Scalability isn't an issue, your site will scale as it needs to.
7. Easy to model data - no need to setup and maintain a DB, indexes etc. You use a Bigtable implementation with auto-indexes (can add own indexes also)

Alot of C-based modules are disabled, however there are often pure Python implementations of them. Check out the documentation. It's very easy to follow and you'll be up and running in no time.

Python+Django doesn't scale any better than RoR. (They both scale well)
Google Apps provides Cloud scaling. But you can do RoR using cloud computing as well. In fact, it is easer to do it in RoR. And is more flexible
 
Top
Sign up to the MyBroadband newsletter
X