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
Brad L'estrange
2,085 PointsWhat Language?
Hey
I wanted to see if you could help me decide what language I could use to create my cms system in. I am stuck between PHP or Ruby.
The reason why I am creating my own system intead of using wordpress is because I want to have more control over it and it would need to work for a lot of sites just by adding plugins and wordpress wouldn't do that for me I would want to add 1 plugin and not 10. Plus it would be a good chance to get some experience and learn a backend language as I am mainly a front-end coder.
I have had experience with PHP and I am pretty sure I could make the most of the CMS right now with what I know about PHP but I cannot make things secure. I also heard create things about Ruby how it has less code to write and it is easier once you know how to write it.
So what do you think PHP or Ruby?
4 Answers
Aaron Walton
3,557 PointsRuby has less code to write if you are using the popular Rails framework. Similarly you could use a PHP framework to reduce the amount of coding you need to do. The downside is there is no training for PHP frameworks here at Treehouse.
Shawn Gregory
Courses Plus Student 40,672 PointsHello,
I would say that PHP would make a better choice for a CMS, You can google and find a few simple CMS system tutorials out there. You need to install a few things for Ruby to run while most all web servers out there have the PHP interpreter, I'm in the process of making a modified CMS system myself and PHP will be the only language I'll ever choose. It's just simple and easy to get the hang of and trust me when I say this, creating a CMS will be extremely hard; better use an easy-to-understand language like PHP so you don't have any unnecessary difficulties. Hope this helps. PS: I'm more partial to PHP as I'm an advanced user of PHP and never really liked Ruby. But it's probably best to get a second opinion from a person who's used to Ruby.
Cheers!
Younes RAFIE
Courses Plus Student 2,055 PointsI would suggest PHP for so many reasons, but my advice is to study wordpress as it's hard to create a flexible and secure CMS as wordpress and others, and you should check Nodejs because your a front end developer and that's will be the easiest way for you!!
Brad L'estrange
2,085 PointsThanks for the replies. I see that php is a good option but I don't know cause treehouse doesnt teach frame works :/ but with the server php servers and ruby server are pretty basic to setup I will be using a VPS so I can run it fast because I will only have what I will use on it. I will see if anyone else has any views before making my decision. Node.js however is something I am going to look into as it seems like it could be a good choice.