Rich Codes

Recent Posts

  • July 22, 2021

    Kitchen Sink

    Imagine you drink a glass of water and go to the kitchen sink to wash it. When you get there, there’s a HUGE pile of dirty dishes in the sink. To wash your glass, you would have to clean all the mess before. You look around… no one’s watching. You carefully put the glass in the sink’s corner and sneak out. You walk away thinking “How things got this way?”. The ironic answer comes to your mind: one glass a day.

  • June 04, 2021

    My First Month (or so) With Rust

    I’m learning Rust and this is the first post about my experience with it. I’m a Ruby programmer, so you may wanna check out my post about the decision of learning Rust for more background.

  • May 31, 2021

    Different Ways to Contribute to Open Source

    OSS is a wonderful thing! I was so grateful for the OSS tools I used in my projects, that I started contributing to OSS as retribution! If you want to get started with OSS contributions, here are several ways to do it.

  • April 22, 2021

    Mocking Made Simple

    TL;DR: Inject dependencies instead of mocking functions.

  • March 27, 2021

    On learning Rust

    As of March 26th of 2021, I decided to learn Rust. I’ve heard of it a couple of years ago but never had time (i.e. priority) to dig into it. Now it’s time to really understand what is it all about.

  • March 26, 2021

    Don't use comments! Use code.

    Let’s get this straight: comments are a code smell.

  • February 24, 2021

    Productive Laziness

    You’re tired. Exhausted. Your mind simply isn’t responding. You stare at the code; it stares back at you. You type something. It doesn’t work. You delete it. The clock says: 04:00 PM. You know what you need: a break.

  • January 18, 2021

    A Simple Way To Get Started With TDD

    TDD is awesome, but also confusing (and even scary) for those who never practiced it. But it doesn’t have to! We’re gonna learn how to get started with it by fixing bugs (so we can kill two birds with one stone).

  • July 18, 2020

    Baking Tasks With 'Bake'

    How many times have you searched how to pass arguments to a rake task? Bake makes it as easy as creating a simple method (literally).

  • August 22, 2019

    Lessons Learned on GSoC 2019

    Opening a Pull Request for Rubygems, a part of the Ruby language seemed like a terrifying thing to me. Like, all my code could be running on everyone else’s machines someday. What if I introduced a security bug? Although I’ve been contributing to open source projects since 2016, these thoughts kept on my mind.