Sort by: newest to oldest or oldest to newest

Sunday, December 25, 2016 4:31:25 PM
  • Ruby is Object Oriented Programming (OOP) based language created by Matz. DHH created Ruby on Rails (ROR) for Its a relatively new framework launched in 2003 and in July of 2016 ROR version 5 was released.
  • The core principles of ROR are -> Don’t Repeat Yourself (DRY) + Convention over Configuration + Minimalism + REST (Representational State Transfer) + MVC (Model View Controller)
  • As an example of its simplicity, Ruby does not enforce any hard rules like every line of code should end with a semi-colon. At times however, it will seem like Rails will sometimes force its defaults. For example, SQL Lite is installed as the default database but that can easily be changed to most any database of your choosing.
  • To master ROR, one needs to eventually master Ruby as well because they go hand in hand. In ROR everything is treated as a resource.
  • Once you build out a feature or add something new, try to break it and validate its robustness by adding automated tests. This way, any future changes can be tested to see if they’ve broken anything. This kind of development thats focused on writing automatic tests is called Test Driven Development (TDD) and is highly recommended.
  • Extra features are already built in to ROR and these are things one might need down the road. Embedded Ruby (ERB) is used in making pages dynamic in ROR.

Made with by Praharsh Srinivasula