NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Ruby vs PHP

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Reply
 
LinkBack Thread Tools
Old 06-19-2009, 08:22 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jun 2009
Posts: 10
pinklife is an unknown quantity at this point
 



Ruby vs PHP


Hello

I'm new here so I though maybe it's nice to introduce myself. I'm Dalbiez, I'm coming from Holland and I'm 14 years old. Since last weeks I'm having a problem, I can't choose the right language. I want to create web applications. PHP is the most populair language for the web but Ruby has a nice syntax.

Ruby

* Nice syntax.
* Friendly community.
* Nice web frameworks like Ramaze.


Of course Ruby has some cons:

Ruby

* Expensive hosting for a 14 year old teenager.
* Less populair than PHP.


Then PHP comes:

PHP

* Really popular!
* Lot of code is available.
* A huge community
* Has nice web frame works.
* Cheap hosting.
* I already know some PHP.


And the cons:

PHP

* The syntax is sloppy.


At the moment I'm more fan of Ruby, I really like it. Everytime I write PHP code I think "I need to write this in Ruby". But I want to be a web-developer when I'm older and PHP is more populair so when I'm looking to my future it's better to learn PHP.

Thanks,
Dalbiez and sorry for my bad English!
pinklife is offline   Reply With Quote
Old 06-19-2009, 09:54 PM   #2 (permalink)
I'll do it
 
-Nick-'s Avatar
Join Date: Dec 2005
Location: India
Posts: 6,927
-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness
 


Member of the Month
September 2007
Adoption
Hmm I agree with above points but don't know if PHP syntax is sloppy

Infact it is really less headache and one of the easiest one out there.
-Nick- is offline   Reply With Quote
Old 06-19-2009, 10:00 PM   #3 (permalink)
Senior Member
Join Date: May 2007
Posts: 1,098
mhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant futuremhdoc has a brilliant future
 



You will eventually want to learn both, plus some others. So I would say start with PHP since it is affordable and popular and move on to others when you are ready.
mhdoc is offline   Reply With Quote
Old 06-19-2009, 10:27 PM   #4 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Maybe I'm biased but... www.rorsucks.com
Eric is offline   Reply With Quote
Old 06-20-2009, 04:33 PM   #5 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



im gonna have to agree in that php is much better than ror... your claim of php having sloppy syntax seems unsupported - it's much much easier/cleaner than some OOP languages and almost all the functions are selfexplanatory, etc.

learn php, master it, and then maybe move on to ror. almost all the jobs nowadays are people wanting work done w/ php (or some framework using php as its base)
nasaboy007 is offline   Reply With Quote
Old 06-20-2009, 06:09 PM   #6 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,556
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
If you're starting out with web development, I think it will be more rewarding to learn PHP. Once you master a language you will feel more comfortable learning a second one. You could even specialize in Ruby as it is less widespread and there may be some demand for skilled coders - most webmasters should be more or less proficient with PHP nowadays, it's not exactly a rare skill
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline   Reply With Quote
Old 07-16-2009, 07:14 AM   #7 (permalink)
New Member
Join Date: Jul 2009
Posts: 2
fraktal is an unknown quantity at this point
 



I asked myself the same question some time ago. I come from a 8+ years of PHP programming, and eventually grew tired of it. It's hard to debug, and hard to write good code.

That's why I was quite enthousiastic with the promise of Ruby being so good and powerful, etc... Actually I found out that what makes Ruby so easy and powerful is the Rails framework.

The language is cool, sure, but try programming Ruby alone without any framework and it's exactly the same thing as programming in PHP.

On the other hand, if you take PHP and add a good framework to it, like symfony | Web PHP Framework, you've got a very powerful solution.
????: NamePros.com http://www.namepros.com/programming/591090-ruby-vs-php.html

So my guess would be forget ruby. Stick with php, but don't use it alone, or you'll soon be writing poor code. Learn a framework, it will be as hard as learning RoR, but at least you'll master a widely-used language.

And it seems that all the RoR craze is vanishing now. 2 years ago people only spoke of it, but now... PHP is as strong as ever, but where's Ruby ?
fraktal is offline   Reply With Quote
Old 07-25-2009, 07:58 AM   #8 (permalink)
New Member
Join Date: Apr 2009
Posts: 4
oarcadescript is an unknown quantity at this point
 



I hate to throw a spanner in things, but try python, and more specifically django.

I've found it to be a fairly simply learning curve (i'm from a php background).

You've correctly listed the arguments for PHP and ruby, and your right, its not an easy choice.

(just to bear in mind: the php manual is excellent, I've found it to be invaluable).
__________________
arcade script + 7000 games + install : $45!
Advanced features: templating, AJAX, caching, bulk add, paypal advert handling, adwords, mochiads, advanced SEO and more!
visit the site! | visit the demo!
oarcadescript is offline   Reply With Quote
Old 08-03-2009, 08:22 AM   #9 (permalink)
New Member
Join Date: Aug 2009
Posts: 3
premiumscripts is an unknown quantity at this point
 



I would choose ruby on rails, but if you go for PHP, at least save yourself some pain and use a popular PHP framework such as Yii, Kohana, Codeigniter, Zend Framework or CakePHP.
premiumscripts is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[resolved] php script training shahzad11 Programming 11 03-21-2007 11:09 AM
How To Secure Your PHP Website selim06 Programming 9 08-20-2006 03:57 AM
Huge Script Pack for $5 with Resale Rights dsforsaken Scripts For Sale 32 12-03-2005 09:46 PM
Tutorial: How to Install Apache2 MySQL and PHP on Windows deadserious Webmaster Tutorials 35 09-21-2005 10:46 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:51 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger