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
Muhammad Ahsan
2,123 PointsWhat should I choose Ruby on Rails or PHP ?
I am new to the server side programming and web development. I have this project idea of mine where I intend to make a website which is like a small learning management system having gamification elements to it.
I started learning here just last week, have grasped quite familiarity with many aspects of web development. I started with ruby on rails, I need advise which would be most faster track to go with my project development Rails or PHP ?
Considering that I don't know any of them yet so I would like to know which route is more easier and faster to develop in shortest time, having an easier learning curve.
Thanks
7 Answers
Thiam Hock Ng
22,131 PointsHi Ahsan, Few months back, I am in the same situation with you, at the crossroad of choosing whether to do PHP or Ruby on Rails. So just wanna share my experience and hope it will help you. I chose Ruby on Rails and find that I am completely lost in the "Build a Simple Ruby on Rails Applications". Note that I have a little knowledge in programming in Python from Coursera and Udacity before hand. It is frustrating because I do not understand the MVC design patterns that Rails is using and in the end, it is just following the video and typing the code without understanding. I also do not understand the weird syntax Ruby is using. Therefore, I gave up and switch to PHP instead.
For PHP, the pace is much slower and you will be able to fully appreciate what server-side programming can achieve. Also, through the PHP lessons, I learnt about the concepts of MVC, refactoring, querying databases, etc. I further move on to develop a simple site using PHP and WordPress, where I get to practice what I have learned. At this point, I started to think back my first Rails project, about how everything is magically formed. So I went back to take the first Rails project all over again. This time round, the concepts became much clearer. I am able to follow along and understand what is going on in the video, and I went on to create my own simple Rails application, and is currently doing my second pet project. I suppose that I will be mainly using Rails for all my projects except for WordPress projects until I find something that I like more.
What I want to share is that Rails is a framework that is used to accelerate the process of web development. If your objective is speed, then you should just take the Rails project. However, assuming that you are new, it is likely that you will encounter a lot of frustrations. PHP on the other hand, to me is much easier to learn the basics of server-side programming. The skills that you have acquired in programming in PHP will only help to enhance what you will be learning in Rails. Unfortunately, I do not know of a path that is both easier, and faster to achieve that you want. For me, I think PHP is easier, and Ruby on Rails is faster.
Olugbenga David
1,102 PointsThanks for sharing Thiam. Was thinking of asking the same question but you've given me a clearer path.
Patrick Koch
40,627 Pointsthanks Thiam, you helped me alot
Muhammad Ahsan
2,123 PointsThiam Hock Ng Thank you you so much for that great insight, I was really confused in that regards, as even though I am able to follow along the ruby on rails course but as of now I am not able to make much comprehension about it, as all I am doing is replicating the steps without knowing the underlying concepts of things such as scaffolding and so many others. Regards
Shafaiatul Islam
6,446 PointsThank you Thiam. You cleared my confusion as well.
jeanmontelus
2,691 PointsThank this help.
Mohamed Mathari
1,251 PointsI really like the simplicity of Ruby on Rails, I do believe that this language is also far more beginner friendly. Ruby on rails seems very easy to understand so at this moment I am finishing the PHP course and see if Ruby is something for me!