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 trialBrad Woods
13,772 PointsPhp or Rails?
I want to start one of these courses but not sure which one to select. Can anyone shed some light on the differences between these two languages? From what I have read they fulfill the same purpose (server side programming) and are more competitors than anything else.
8 Answers
Eric Ellenbrook
9,006 PointsStart both and see which you like more.
eck
43,038 PointsIf there are other applications, content management systems or plugins that you already know you are interesting in learning more about, you could use that to help make the decision. For instance, if you know you want to learn more about or work with WordPress then I suspect you would want to learn php.
Brad Woods
13,772 PointsI'm a primary teacher with the goal of creating teaching apps and websites based around a game approach. I have completed the front-end course and comfortable with html, css and javascript. At the moment I'm not sure what I will need other than storing/ retrieving data from a database.
eck
43,038 PointsIn that case I definitely agree with Eric, that you should give both a shot.
Also, if you have not already, you may want to look into AJAX, so you can dynamically make calls to the database much more seamlessly.
Jerry Jernej Kelih
2,698 Pointswhat about JavaScript frameworks like Angular JS?
Brad Woods
13,772 PointsAngular JS looks like a good option, do you know of any good tutorial sites?
Florian Goussin
8,925 PointsangularJS: there is a tutorial on the official website. There is a free tutorial on codeschool and a nice paid one on udemy/infinite skills. And I guess a lot on youtube. But angular is for the front end not for the back so you still need to choose between rails and php.
rails is framworks, but not php. So with rails you are forced to make good practice and organize. But there are also frameworks with php like laravel, symphony, codegniter, phalcom..., etc. Laravel is the mostly used.
Jerry Jernej Kelih
2,698 Pointsis that enough to connect to backend? https://www.firebase.com/quickstart/angularjs.html
there is one video on Treehouse if you have Pro Account http://teamtreehouse.com/library/building-with-angularjs-and-apis
Florian Goussin
8,925 PointsI have the impression firebase is just a database and hosting service. So in that case angular is still in client side. And you need something else like node.js, ruby or php for the server side. Anyways it sounds promising.
Florian Goussin
8,925 PointsNo actually you don't have to any backend service with firebase. Nice!
Firebase provides three key services that enable you to build rich, full-featured applications using just client-side code:
A (realtime) data API. Our API replaces the need for most backend databases and server code by handling the heavy lifting of data storage and synchronization.
User management and authentication. Our Simple Login service handles your user management and authentication needs out-of-the-box. Or, if you prefer to manage users yourself, you can maintain complete control using Custom Login.
Hosting. With hosting, you can deploy your static website to the internet with a single command.