Prevent a force pushing to master with ruby
Yeah, everyone knows, it’s the mor law of versioned systems, NEVER do a git push -f on the default branch, never, even when you know …
Controller Best Practices: Don’t Hide Instance Variables
Last Updated on May 30, 2023 This is something I often mention in code reviews, and it’s also mentioned in some Rails guidelines elsewhere without …
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, …
Data Bugs on Rails
Last Updated on May 30, 2023 Bugs are commonplace artifacts in any kind of software system. Most applications are filled with lots of bugs, for …
Why I moved from Vagrant to Docker as my default development environment?
You probably have already heard that old classic phrase: I don’t know what’s happening… It works on my machine… Vagrant came to solve this problem, …
Avoid to Get Outdated as a Developer
Here at Codeminer we use Ruby and Ruby on Rails as our main technologies, but we also deal with other ones such as Java, Swift, …
Um Rápido Mergulho em Expressões Regulares
Read in english here. Olá. Que tal esquecer um pouco a rotina e a realidade e fazer uma viagem ao interior de sua mente? Descobrir …
Writing custom RailsAdmin actions
Last Updated on May 30, 2023 RailsAdmin is known for not being the most flexible admin framework out there; and while this is true, it …
Pattern Matching in Elixir
One of the cool things about Elixir is the pattern matching, in this post we will be able to understand about Pattern Matching and how …
Building a Phoenix API
After reading some tutorials about building APIs with Phoenix Framework, I saw that most of the posts are out of date. So, I decided to …