Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 30th, 2007, 02:30 PM
Myztacia Myztacia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 25 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: 8 h 27 m 46 sec
Reputation Power: 0
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 Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 321 jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level)jzd User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Days 17 h 16 m 30 sec
Reputation Power: 120
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: 110 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: 14 h 18 m 10 sec
Reputation Power: 5
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: 289 sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)sumityadav User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 27048 Folding Title: Starter FolderFolding Points: 27048 Folding Title: Starter Folder
Time spent in forums: 6 Days 1 h 18 m 3 sec
Reputation Power: 256
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?


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway