Trying out Ruby on Rails

󰃭 2013-06-30

I’ve heard a lot of stuff about RoR for a while, so I decided to finally try it out and see what all the fuss is about.

What is Ruby on Rails? A web framework that runs on the Ruby programming language.

First impressions: too much magic going on. It seems like a good thing for quick development, but I prefer knowing exactly what is going on in case anything goes wrong so the problem can be fixed easily. For this reason, I probably will not use RoR on any on my projects until I understand more about it.

Things I liked about RoR: the ActiveRecord ORM, and the built-in REST support. I also liked that it is very easy to deploy once you know what you’re doing.

Thinks I dislike so far: using SCSS and Coffeescript by default. These could add to the cognitive load of beginner, and they have to wrap their head around how RoR first has to process these files into what the browser can understand (CSS y JavaScript, respectively).

I’ve never been a big fan of Coffeescript. I think it’s annoying to debug and I would rather write plain JavaScript, but that’s just my opinion. However, I do think it has a nice syntax.

I had heard of SCSS, but I had never used it. It’s very enjoyable to use, since you can nest CSS definitions, and it has some neat features that make it a lot easier to maintain stylesheets, such as variables and functions.

When learning a new framework, I try to follow the official tutorial, but tweaking the steps a bit in order to create a different application.

To learn RoR, I decided to make a small contacts application, where you can add contacts to a list and edit/delete them. It’s on a repo at Github, in case you wanna take a look.

Screenshots of my development process

development process

list detail

contact detail

Now I’m also learning Django (a python web framework), and everything seems a lot less magical, so I will probably use it instead of RoR.

Both of them seem to solve the same problem (CRUD apps).



More posts like this

Go Learn

󰃭 2013-09-08 | #golang #programming-projects

Today I decided to try out Go. What is Go? Go is a programming language designed and developed at Google. It was designed by really smart people: Robert Griesemer, Rob Pike, and Ken Thompson. Syntax-wise, it looks a lot like C, except the ending semicolons are optional, and parentheses for if, for, etc are not required. Here’s a gist showing some syntax: It’s a fibonacci calculator made using a closure, caching previously calculated numbers.

Continue reading 


Starry Sky in HTML5 Canvas - Part 1

󰃭 2019-04-13 | #canvas #javascript #programming-projects #tutorials

In my spare time I often enjoy creating visualizations using HTML5 canvas. I’m planning to do a little presentation about this so I thought a good way to get started was to create a blog post explaining how to do a simple one. This tutorial will teach you how to create something like the image below from scratch! IMPORTANT – you can try out the result of this part of the tutorial by visiting this CodeSandbox.

Continue reading 