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!

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

Ruby or Php?

I am making a social like site and i am on a debate of what language to use.. I would like to know what is best for social network sites: Ruby or php ?

Facebook was created with php.

Yes but is it good because i hear they spend most of the time fixing bugs than pushing new features out that's why they made "Hack" but i don't know if that is the best way to go and there is more then php they are using like c++ and more.

4 Answers

whatever you pick

Does not help me, What would be easier and more faster in the long run?

Thanks for that i read up on that article. :)

Thiam Hock Ng
Thiam Hock Ng
22,131 Points

Hi Kask, this debate has been on going for quite some time, both outside and within Treehouse. There are many people with different opinions about what works and what doesn't. You might want to do a little search within the forum and read others experiences, and see which one you resonates most with. Ultimately, I don't think there is one right answer that is applicable for every situation. You should know yourself best in terms of what languages/frameworks you are most comfortable with, then choose a path.

Being someone who have considered the same problem, my advice is don't spend too much bothering about this question. Most importantly, have an open mind about what is available, and just execute your project.

Alright I just don't want to spend more than I have to fix and I want to focus on bringing out new features. I hear facebook had a problem with php they spend a lot of time fixing bugs in php that's what discourages me in php.

I've read similar about Facebook and needing to develop Hack to overcome the flaws of PHP. I'm under the impression they don't want to scrap thousands of lines of working PHP and start over again. Otherwise maybe they could have gone with Haxe.

As far as RoR vs. PHP, good question and I'm considering the same thing now. Leaning towards spending the summer learning RoR, since it also seems like a convenient way to become acquainted with MVC architecture. Though it doesn't seems as trendy these days, ASP.NET apparently also uses MVC architecture. Plenty of companies out there using it and this would make me more marketable should I seek a full time web development position in that kind of place. Then again, same might be said about learning PHP.

What worries me about learning Ror is that it seems to be the framework of choice among the gajillions of web dev bootcamps out there. Could be nothing be could also be a flooded market of mediocre to decent rails developers to compete with in the next 12--24 months.

What worries me about learning PHP is wasting time learning a badly designed language.

Yeah, i just don't want to waste my time on something that will not help me and just waste my time. The type of website i am making is complex so i will go with ruby. :)

Wrong, wrong, and wrong. Creating Hack and HHVM has nothing to do with "flaws of PHP".