Codeminer42's Engineering Blog
Ruby on Rails

Go Full Stack Rails: The Backend Part 1
Being a great developer these days means to intelligently use available technologies to build full-fledged products that also feel durable and extendable, and gone are the days when JavaScript was…
Introduction to ActiveRecord Models
Now that you know how to get up and running with Ruby (and Rails) from the article 4.5 Ways to Install Ruby in Userspace, that means you are ready to…
Controller Best Practices: Don’t Hide Instance Variables
This is something I often mention in code reviews, and it’s also mentioned in some Rails guidelines elsewhere without further explanation: please, don’t hide instance variables. Everyone who has dealt…
Using ActiveRecord to create atomic transactions
Imagine the following situation: You were asked to create a new wallet feature to an application. This wallet must allow money transfer between users. Basically, you take money from an…
Data Bugs on Rails
Bugs are commonplace artifacts in any kind of software system. Most applications are filled with lots of bugs, for so many reasons that can’t even be accounted for in a…