Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

php vs ruby on rails

i know this is age old question ,php or ruby on rails which is better one what could i build two which is good for newbies? three which is good for a career ?and last and most which is more exciting to keep you motivated to stick to ? plus which cooler make proud being a php developer or ruby on rails developer thank you for your time

2 Answers

Gareth Borcherds
Gareth Borcherds
9,372 Points

This infographic answers all your questions and seems to be pretty well researched. It is a couple years old now, but I personally believe this is pretty close to accurate.


Kiko Doran
Kiko Doran
4,752 Points

I don't think it really matters which you learn. I'd just dig into one and start learning. Personally, I think php would be better to start with because it's a little easier to setup locally for someone just starting out. That being said, once you get one setup, it's not a problem. With php you can just grab MAMP, WAMP, or whatever *AMP you want. You also get WordPress with php that would give you a lot of opportunities to build client projects.

All things considered, none will make you motivated to learn or stick with them. I also don't think one will make you more hireable than the other. Depends where you want to work. If you want to work at 37signals, I'd say RoR is the best option.

Once you learn one language, you learn how to think like a programmer. The basic patterns are the same, the syntax is the difference between languages. I say just jump in with whichever is easier for you to get started on today. Better to start writing code sooner than putting it off to make a decision.

thank you for advice it really helped