Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 30th, 2007, 02:30 PM
Myztacia Myztacia is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Minnesota, USA
Posts: 96 Myztacia User rank is Lance Corporal (50 - 100 Reputation Level)Myztacia User rank is Lance Corporal (50 - 100 Reputation Level)Myztacia User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 3 h 20 m 42 sec
Reputation Power: 9
Ruby Rails vs. PHP?

I know a lot of programmers that specialize in online text-based RPGs and pet games. Most of them use PHP. One, however, uses Ruby Rails.

So, this naturally brings up the question...which is better? Is it all in how one codes? Or is RR faster with databases and slower with other code or vice versa, faster in both respects, slower in both respects, or...? How about ease of use? PHP is probably the most newbie-friendly language of the programming world and provides high functionality for the more advanced programmer. So what's RR's stand or "claim to fame"? Is there a bit higher of a learning curve, but better...err...results from it?

I know jack about RR, a decent amount about PHP...care to enlighten me so I may enlighten my friends?

Thank you

Reply With Quote
  #2  
Old March 30th, 2007, 02:39 PM
jzd's Avatar
jzd jzd is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2007
Posts: 1,940 jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 4 h 7 m 2 sec
Reputation Power: 3116
I have only a small amount of experience in either. But my guess is that PHP is faster. However, Ruby is much easy to learn and the syntax is very forgiving. Some of the syntax reminds me of PHP but most of it looks like smalltalk. I have been very impressed with the Ruby so far. But then again I have little experience with it. I would suggest searching for "Ruby on Rails vs PHP" if no one else can give you a comparison here.

Reply With Quote
  #3  
Old April 8th, 2007, 12:05 AM
westkoast westkoast is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 120 westkoast User rank is Corporal (100 - 500 Reputation Level)westkoast User rank is Corporal (100 - 500 Reputation Level)westkoast User rank is Corporal (100 - 500 Reputation Level)westkoast User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 48 m 15 sec
Reputation Power: 11
Quote:
Originally Posted by jzd
I have only a small amount of experience in either. But my guess is that PHP is faster. However, Ruby is much easy to learn and the syntax is very forgiving. Some of the syntax reminds me of PHP but most of it looks like smalltalk. I have been very impressed with the Ruby so far. But then again I have little experience with it. I would suggest searching for "Ruby on Rails vs PHP" if no one else can give you a comparison here.


What makes you say that PHP is faster? I'd say that conceptually the MVC of RoR would be harder for a new web programmer to grasp. Where as someone whose been working with PHP for a while using output buffering, templating, etc. would make a pretty smooth transition to RoR... well, that was my experience at least.

For me its the framework of the app. I find myself laying out my PHP apps now very much like Rails apps. RoR forces you to put code in the right places. PHP makes it easy to put code where ever you feel fit, and this can haunt you later in the application development process.

I'm by no means bashing PHP. I use PHP 365 days of the year. I'm just hoping to start using RoR more often on future projects.

Reply With Quote
  #4  
Old April 20th, 2007, 04:10 PM
sumityadav's Avatar
sumityadav sumityadav is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Location: Chandigarh, India
Posts: 311 sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 37512 Folding Title: Starter FolderFolding Points: 37512 Folding Title: Starter Folder
Time spent in forums: 6 Days 12 h 9 m 50 sec
Reputation Power: 365
Send a message via MSN to sumityadav Send a message via Yahoo to sumityadav Send a message via Google Talk to sumityadav Send a message via Skype to sumityadav
MySpace Orkut
Yes, even i would say that its good learning new technologies every day but with Ruby on rails even the recommended book (Agile_Web_Development_With_Rails) doesn't cover the complete topics. The very basic File Uploading is told by storing the files into the database.
There are different conventions that need to be followed which a PHP developer wont do anyways.

I was just wondering to run a .php file and that ran into a big problem for me. The file permissions need to be followed for the same.

Also file permission for the Rails application are defined which again is a problem for a new programmer to rails.

The settings are distributed and for a small change to database etc you need to change the .yml file run a rake command and so on...

That creates a whole problem for anyone who is not experienced with Ruby on rails.


But one thing i really enjoyed working on RoR and as they say you will love RUBY

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Ruby Rails vs. PHP?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap