SunQuest
           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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 18th, 2007, 09:23 PM
JellyBelly JellyBelly is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 27 JellyBelly User rank is Corporal (100 - 500 Reputation Level)JellyBelly User rank is Corporal (100 - 500 Reputation Level)JellyBelly User rank is Corporal (100 - 500 Reputation Level)JellyBelly User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 38 m 49 sec
Reputation Power: 0
Ruby vs PHP

Well, I've been amazed by the RoR articles I've read, and I'm thinking...
Why am I using PHP, when RoR exists to simplify my life?

Can anyone tell me why I might consider a swift migration to RoR, and what I might lose by (not) doing so?

I must admit, I haven't done a lot of research on it, but just this once, if you don't tell me to google it, I'll be your biggest fan. : )

Does my web server need a RoR module, or is there a RoR server, or what, like CFM?
Cos I though CFM sucked, and PHP was king, cos it just worked with a basic Linux install. If I need a RoR install to get my RoR apps up and running, can anyone suggest a hosting company that either has such a thing installed, or would let me install it?


Thanks. Y'all rock.


JellyBelly

Reply With Quote
  #2  
Old May 18th, 2007, 10:16 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2006
Posts: 1,490 Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 19 h 36 m 20 sec
Reputation Power: 440
> Why am I using PHP, when RoR exists to simplify my life?
There's a number of reasons to use PHP. It's a business decision that is beyond your influence. You can make use of one of the PHP frameworks or code libraries. You don't need a full MVC system, and PHP is more flexible for the code you want to write. You are forced to use PHP by other tech constraints. Whatever.

> I must admit, I haven't done a lot of research on it, but just this once, if you don't tell me to google it, I'll be your biggest fan. : )

I know. But this is a professional IT forum, so you are held to certain requirements ;p

> Does my web server need a RoR module, or is there a RoR server, or what, like CFM?

I believe Rails has a small web server app you can run for testing purposes (but not sure). For actual production purposes, I think Ruby is commonly used with FastCGI. There should be mod_ruby as an option as well, but I don't know if that's a production level option. This is information easily found by Googling and reading the Ruby/Rails site, so I leave that to you.

> If I need a RoR install to get my RoR apps up and running, can anyone suggest a hosting company that either has such a thing installed, or would let me install it?

Do take a look at the Rails site. No really. They not only have a list of hosting companies, but sometimes indicate special promotion codes you can use to get discounts. Their table of information beats anything I can tell you in a paragraph.

Yes, RoR is very nice. But it's not always the best choice. A number of factors go into choosing a language/framework/platform, and the best way you can make this decision is to learn as much as possible (with Google, reading).

I know I pretty much told you to Google, but your questions were answerable by Google.
Comments on this post
jg_abad agrees: Nice tips ..thanks
__________________
C/C++: Books, C FAQ, C++ FAQ, C/C++ Reference.
Python: Website, Beautiful Soup.

Reply With Quote
  #3  
Old May 19th, 2007, 10:56 AM
JellyBelly JellyBelly is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 27 JellyBelly User rank is Corporal (100 - 500 Reputation Level)JellyBelly User rank is Corporal (100 - 500 Reputation Level)JellyBelly User rank is Corporal (100 - 500 Reputation Level)JellyBelly User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 38 m 49 sec
Reputation Power: 0
Thanks for that. Your help is much appreciated.

Reply With Quote
  #4  
Old July 17th, 2007, 05:30 PM
sf2k's Avatar
sf2k sf2k is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 173 sf2k User rank is Corporal (100 - 500 Reputation Level)sf2k User rank is Corporal (100 - 500 Reputation Level)sf2k User rank is Corporal (100 - 500 Reputation Level)sf2k User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 19 m 21 sec
Reputation Power: 5
Here's a parody of those Mac vs PC TV commericals from RailsEnvy.com . PHP vs Rails (also Java). This might help your sanity a bit.

http://www.railsenvy.com/2007/5/15/...on-rails-part-2

http://www.railsenvy.com/2007/5/16/...on-rails-part-3

http://www.railsenvy.com/2007/5/21/...on-rails-part-4

Cheers
sf2k

Last edited by sf2k : July 17th, 2007 at 05:49 PM.

Reply With Quote
  #5  
Old July 24th, 2007, 08:37 PM
amoo3 amoo3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 362 amoo3 User rank is Private First Class (20 - 50 Reputation Level)amoo3 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 2 h 35 m 16 sec
Reputation Power: 4
Quote:
Originally Posted by JellyBelly
Why am I using PHP, when RoR exists to simplify my life?

Can anyone tell me why I might consider a swift migration to RoR, and what I might lose by (not) doing so?


I can't tell you why PHP is better, but I can tell you that Rails is awesome because I went from knowing nothing about the internets (except for some wordpress PHP and a little HTML) to this in two weeks (NOTE: I've been busy and havn't had too much time to work out the many bugs. But still! Two friggen weeks!)



Quote:
Originally Posted by JellyBelly

Does my web server need a RoR module, or is there a RoR server, or what, like CFM?
Cos I though CFM sucked, and PHP was king, cos it just worked with a basic Linux install. If I need a RoR install to get my RoR apps up and running, can anyone suggest a hosting company that either has such a thing installed, or would let me install it?


Many will refer you to Dream hosters, but I think they suck. Their tech support is no good, and their Rails hosting is half-assed (Please excuse the language).

I use HostingRails. Their CS is great. By great I mean that you don't have to wait 24 hours to get a reply email. Usually in 30 minutes - 2 hours they'll reply and in 24 hours your problem will be solved. On top of all that their FAQ/Wiki pages are extremely in depth and useful (unlike Dreamhosters).

-Amir
__________________
I have summoned you here for a purpose

Reply With Quote
  #6  
Old September 28th, 2007, 07:17 PM
bunker17 bunker17 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 123 bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 2 h 47 m 2 sec
Reputation Power: 11
I find this article interesting about ruby vs php
http://www.oreillynet.com/ruby/blog...ack_to_p_1.html
i use railhosting.net has my hosting so far it has been good to me.

Last edited by bunker17 : September 28th, 2007 at 07:26 PM.

Reply With Quote
  #7  
Old September 29th, 2007, 03:34 AM
[H4z3] [H4z3] is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Location: /usr/bin/ruby
Posts: 63 [H4z3] User rank is Sergeant Major (2000 - 5000 Reputation Level)[H4z3] User rank is Sergeant Major (2000 - 5000 Reputation Level)[H4z3] User rank is Sergeant Major (2000 - 5000 Reputation Level)[H4z3] User rank is Sergeant Major (2000 - 5000 Reputation Level)[H4z3] User rank is Sergeant Major (2000 - 5000 Reputation Level)[H4z3] User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 20 h 32 m 36 sec
Reputation Power: 23
No one has mentioned how new Ruby is compared to PHP, is it at the ranks of PHP yet? No, unfortunately no, will it be? Oh hell i hope so.

RoR doesn't support many CMS projects currently, which i have found is a common problem when RoR newcomers email me. However its increase in available plug ins excites me and i think it will be a true contender in some time to come
Comments on this post
Nesc agrees!

Reply With Quote
  #8  
Old March 7th, 2008, 12:58 AM
Rayman1986 Rayman1986 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 66 Rayman1986 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 43 sec
Reputation Power: 4
I thought about Ruby on Rails. I use Ruby mostly for scripting, but when I tried to use it as a web framework, I couldn't understand the damn thing. I set up a rails server, typed out a rhtml file, but it never got interpreted. Everything, including all my tags got output as raw text. I spent about 24 hours sifting through articles that made little sense, and seemed to be more about installing, and working from command line than anything. I eventually decided it wasn't worth the headache and stuck with php.

Reply With Quote
  #9  
Old March 13th, 2008, 05:43 PM
dinkoonks dinkoonks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 1 dinkoonks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 16 sec
Reputation Power: 0
as i knoiw guys ruby still not stable or smth like this ... so its hard to compare old but stable and new but kind of not stable language

Reply With Quote
  #10  
Old March 16th, 2008, 06:05 PM
BornInHollywood BornInHollywood is offline
Roobee On Railz Roolz!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 139 BornInHollywood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 53 m
Reputation Power: 0
Ruby

Ruby on rails is not Ruby, PHP is a language... CakePHP or CodeIgnighter would be a better comparison, where they are just as easy to use as Ruby on rails.

Ruby as a language is purely object oriented where as PHP is not. It's really a matter of preference.

Ruby has other frameworks, such as MERB.

Don't limit yourself there, why not try Python using Django or Web.py?

Really explore all of your possibilities, and dont become woo'd by hype.

Reply With Quote
  #11  
Old March 17th, 2008, 03:57 PM
JeffCT JeffCT is offline
PHP & Ruby Developer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,437 JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 36 m 40 sec
Reputation Power: 9
The main advantage is switching to a strong [MVC] framework. PHP offers several of these as well - like cakePHP and Codeigniter. However, I personally think Ruby is much better suited for an mvc framework than PHP - if you get some good experience with Ruby you will find that it is extremely elegant and when you can make use of its advanced OO features, it can do a lot in very little code.
There are many things that PHP just cannot do in a simple manner, and although some of the MVC frameworks try to duplicate what Rails does, you will find in the code that similar implementation in PHP can be quite ugly at times.

I must say that the transition is a little more difficult than you may have heard. Deployment is a major issue (you don't just upload and run, like PHP), and once you break outside the very small scope of the screencasts you have seen (the 15 minute blog), you will find there is a bit of a learning curve. At times you have to fight with Rails, it is very rigid and difficult to bend. Though many say this is because it forces you to write good code.

It's been said before - but Rails is just a framework. The actual language is Ruby, and as people have realized the power of this language, more and more frameworks have been springing up, some much smaller and more flexible than Rails.

Reply With Quote
  #12  
Old May 9th, 2008, 07:40 AM
jg_abad's Avatar
jg_abad jg_abad is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 81 jg_abad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 16 m 24 sec
Reputation Power: 1
i am not expert in ruby but i did the research for the same and i have read that code will be little bit complex in ruby with compare to PHP.
__________________
Hire a Programmer | Web Design India | Outsourcing to India | Web Application Development
Contact us to outsource your projects

Reply With Quote
  #13  
Old May 14th, 2008, 09:40 PM
t3chn0n3rd t3chn0n3rd is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: kansa city
Posts: 17 t3chn0n3rd Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 28 m 11 sec
Reputation Power: 0
Ruby on Rails is cool

my local community college has a 3 day course for about 200 dollars , I am hoping to take this summer

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Ruby 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


Forums: » Register « |  User CP