Learning Ruby On Rails: Day 3

Agile Web Development with Rails 5.1 is my portal to Ruby on Rails. Here are a few things I learned today:

  • All Rails apps are implemented in MVC (Model/View/Controller). I’m so excited about this because MVC makes sense to me!
  • Rails has testing support baked in. That means that when I create a model file, the corresponding unit test file will be created for me to write. Or if it’s a controller file, a functional test file will be created, etc.
  • Ruby is Object Oriented Programming. I’m not really familiar with OOP but I’m excited to learn.
  • Convention over Configuration. This means that tasks that would be done in external configuration files are done inside the codebase. More plainly, Rails expects things to be named certain things and in certain places (That’s what I’ll do as the programmer). And it takes care of configuring them.
  • DRY (Don’t Repeat Yourself) is a major philosophical underpinning of Ruby on Rails.

I like making dance analogies, and javaScript is largely my frame of reference for programming stuff. It feels like Ruby on Rails is more like Ballet because it has specific conventions to be followed. And Javascript is more like Modern dance, because I can organize it in a lot of different ways. That’s a simplification, but I’m going with it for now.

Next post, here.

I’m just a girl, standing in front of some code, asking it to love her.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store