Rich Codes

Recent Posts

  • September 30, 2021 – linters , rails , rubocop , ruby

    Custom Linters For Custom Needs

    Parsers, grepping, ASCII art, and how that helps you automating boring stuff.

  • August 31, 2021 – code , quick-tip , refactoring

    How Spaces Can Improve Your Code

    Writing code is similar to writing an essay: it consists of many small parts that interact. One big giant blob of words is hard — and tedious — to read. To address this, we use paragraphs. The same technique can benefit our code. Here’s how.

  • July 22, 2021 – refactoring

    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 – learn-in-public , rust

    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 – beginner , oss

    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 – mocks , quick-tip , refactoring , testing

    Mocking Made Simple

    TL;DR: Inject dependencies instead of mocking functions.

  • March 27, 2021 – rust

    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 – comments , refactoring

    Don't use comments! Use code.

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

  • February 24, 2021 – productivity

    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 – ruby , tdd , testing

    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).