sivacynixit

Ruby on Rails What it's Who can Learn, Pre-requisites and Why to learn

Blog Post created by sivacynixit on Oct 25, 2019

Ruby on Rails is open source software, so not only is it free to use, you can also help make it better. More than 5,000 people already have contributed code to Rails. It’s easier than you think to become one of them.

Optimizing for programmer happiness with Convention over Configuration is how we roll. Ruby on Rails has been popularizing both concepts along with a variety of other controversial points since the beginning. To learn more about why Rails is so different from many other web-application frameworks and paradigms.

 

Advantages of Ruby on Rails:

  • The process of programming is much faster than with other frameworks and languages, partly because of the object-oriented nature of Ruby and the vast collection of open source code available within the Rails community.
  • The Rails conventions also make it easy for developers to move between different Rails projects, as each project will tend to follow the same structure and coding practices.
  • Rails is good for rapid application development (RAD), as the framework makes it easy to accommodate changes.
  • Ruby code is very readable and mostly self-documenting. This increases productivity, as there is less need to write out separate documentation, making it easier for other developers to pick up existing projects.
  • Rails has developed a strong focus on testing, and has good testing frameworks.
  • Rails and most of its libraries are open source, so unlike other commercial development frameworks there are no licensing costs involved. For more additional info on Ruby on Rails Course

 

Disadvantages of Ruby on Rails:

  • Not all website hosts can support Rails

While it is true that not all web hosts support Rails, this is primarily because it can be more resource intensive than PHP, a fact which deters low-end shared-hosting providers. However, this is by no means a deal-breaker, and of course Rails-friendly hosts do exist, for example, Heroku and EngineYard.

Alternatively, you can host your Rails application on a Virtual Private Server (VPS) with Amazon EC2, Rackspace, or Linode. You will then have full control over the server and can allocate sufficient resources for your application.

  • Java and PHP are more widely used, and there are more developers in these languages

The number of Ruby developers is growing year on year as more people switch to it from other programming languages. One of the main differences between the Ruby and other communities is the amount of open source code (gems) which is publicly available, as of writing there are 63,711 gems which you can use to enhance your application.

  • Performance and Scalability

There have been concerns that Rails applications are not as fast as Java or C, which is true, but for the majority of applications it is fast enough. There are plenty of high profile organisations which rely on Rails to power their sites including AirBnB, Yellow Pages, Groupon, Channel 5, and Gov.uk. Get more from Ruby on Rails Training

Why you should learn Ruby on Rails:

  • Ruby on Rails is a web application framework.
  • Some of the biggest websites in the world are built with Ruby on Rails.
  • Lots of startups are hiring for Ruby on Rails.
  • Ruby on Rails is full-stack.
  • Ruby on Rails has a thriving community.
  • The Ruby on Rails community is very beginner-friendly.
  • There are a lot of great online resources for learning Ruby on Rails and Ruby.
  • Ruby itself is a forgiving language for beginners.
  • Ruby on Rails hides a lot of the stuff you don’t need to know.
  • Ruby on Rails teaches you development best practices Learn more info at Ruby Certification

Prerequisites to learning Ruby on Rails

HTML: RoR is nothing but a framework built on top of Ruby that creates a bunch of HTML dynamically. If you do not know HTML you should stop reading and learn HTML. The thing to focus on is learning the basic tags such as <h1>, <p>, <div>, <span>. Also very important is to learn the <form> tag. The form tag is responsible for passing data from the user to the server.

CSS: Makes your HTML look nice & pretty. It stands for Cascasing Style Sheets and it commonly referred to styles or stylesheets. They’re all refering to the CSS, dont let that confuse you. The gif below shows what happens when we remove all CSS on google.com. Notice that the content is the same, all the links, the “Google search” button, “I’m feeling lucky” are still there. The only thing that is missing is the signature Google page look which was created using CSS.

JavaScript: I would say that you can probably skip learning the JavaScript language itself, but knowing What JavaScript is used for is important. In the below gif the sidebar on TheVerge.com is created using JavaScript. Once I disable JavaScript the sidebar stops working. JavaScript is also used on autocomplete boxes like on Google’s search page. The simplest usecase of JavaScript is using it in showing those sub-menus when you hover over it in the navigation bar.

Ruby: Yes before you start Ruby on Rails you should probably learn the ruby programming langauage itself. If you dont know object oriented programming its vitally important that you learn a little bit about Ruby. If you know already know something object oriented like Java, C# or C++ I would still highly recommend learning just plain ol Ruby. Why? because although conceptually very similar to other object oriented programming langauges its syntax is very very different from Java or C++.

 

HTTP (GET vs POST) is the underlying protocol when it comes to the internet. It has 2 different types of calls, learning the difference between each makes learning Rails much faster and easier. This should be familiar to anyone coming from a web programming background, but for hardcore C++ and Java people this might be new territory.

Take your career to new heights of success with Ruby on Rails Online Course

Outcomes