Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

Rohin Kansal
PLUS
Rohin Kansal
Courses Plus Student 642 Points

Which platform is better for making a CMS?

Hello, I want to know whether it is best to create a CMS in PHP or Ruby on Rails which is amazingly fast and secure and is easy to edit and debug. Also which one is more optimized for coding?

5 Answers

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,417 Points

Each of those attributes (fast, secure, easy to edit, easy to debug) are more dependent on the quality of code you produce to build your CMS than they are on the language itself. That being said, PHP has been around for longer and, as a result, the "big three" CMSs are all built in it: Wordpress, Joomla, and Drupal.

Ruby is newer than PHP, but has a strong, vibrant community around it. The web development framework Ruby on Rails may be extremely helpful to you when building a CMS in Ruby. Ruby on Rails makes several assumptions for you, which allows you to get to the custom code faster. Because of the standardized way a Ruby on Rails project is organized, you'll have a much easier time figuring out what's going on with the code if you're dropped into an already existing project. The Rails community is pretty excited about automatically testing their code as they write it. This approach to coding can be extremely helpful for debugging.

There are several newer languages that have been viewed as the new hotness over the last few years. Among these are node.js, Go, and Python (not exactly a new language, but receiving renewed attention for web dev). If you are looking to get into enterprise development, the proprietary C# and .NET framework may be closer to what you need.

So in short, it mostly depends on how you code, and the way coding in a language feels to you. You can write optimized code in any language (you just have to optimize it), and you can write terrible code in any language.

Good luck!

Rohin Kansal
PLUS
Rohin Kansal
Courses Plus Student 642 Points

Is the installation process of ruby on linux and mac same?

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,417 Points

They share similarities, but it isn't exactly the same. If you are installing Ruby for the first time, I highly recommend using a Ruby version manager like rvm or rbenv. I feel like rvm is easier to learn the concepts of ruby version management with, but rbenv is much more lightweight. There are strong proponents of each, but you should go with the one that makes you feel most comfortable.

If you end up using rvm, they've got a really nice tutorial on installing rubies, creating gemsets, and tying them into gem managers like bundler.

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,417 Points

No worries! Welcome to Treehouse, and welcome to Ruby!

Rohin Kansal
PLUS
Rohin Kansal
Courses Plus Student 642 Points

Hi, I am not able to understand: How to install ruby using rvm on linux? Can you please help me?

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,417 Points

Try following this rvm installation guide. Are you familiar with the command line? If not, this Learn the Hard Way guide will be a good start.