Should I write my blog in Rails?

As developers we love to create our own software. We tend to reach out to custom built software by default. Building software is what we do and we prefer to have "total control over our tools". We specially gravitate towards this approach in the early stages of our journey. We use it as an excuse to learn and get better. And, even though it is a good reason to write a blog (or any piece of software for that matter), I don't think it's a good reason to write our own blog (or a client's site). [Read More]

Passing default arguments

Have you ever needed to set a default for an argument when defining a class? Say we have a Product class that has a Category. class Category attr_reader :name def initialize(name: "General") @name = name end end class Product attr_reader :name, :category def initialize(name: , category: ) @name = name @category = category end end # => "General" The category can be passed in as an argument on the initialize method or be set to the default category if it doesn't. [Read More]

November 18th, 2019

November 11th, 2019 11:45 I've been feeling like hell the last 2 or 3 days. I've been experiencing neck pain and nausea constantly. Today I had a very early mentoring session scheduled. When I woke up, the first thought that came to mind was "I hope it gets canceled, I'm feeling like hell". But it wasn't. So I woke up around 6:50, cleaned myself up and run to the TARDIS (my office is called the TARDIS). [Read More]

Lineage of a Ruby Class

The other day I was writing some code in which I needed to know if a specific class was a descendant of another class. I've done a similar thing with Ruby objects in the past, but never with classes, and I think I'll start from there. If we want to know if a Ruby object's class is a descendant of the Vehicle class, we can simply ask it if it is a Vehicle Vehicle = Class. [Read More]

I'm starting a journal

September 6th, 2019 09:00 Today is a great day. Today I start doing two things I wanted to start doing a while ago. The first one is an online journal (or any journal for that matter). I wanted to produce a short log every day. I think this is a good practice for several reasons. First, I can settle my thoughts and feelings for future review. [Read More]

September 9th, 2019

September 9th, 2019 09:45 Today my meditation practice took more effort. My mind wandered much more than the last time. This might be because I'm more tired or because I didn't sleep well, so my body hurts in some places. But I was always able to come back to my breath. I always remembered to come back and it didn't take much for me to re-focus. [Read More]

You just finished developer bootcamp, now what?

The world of programming can be daunting. But you don't have to go through it alone. Congratulations! You just made it through coding bootcamp. You're on your way to realizing your dreams as a software developer. But now that you're working on your portfolio, you feel lost in a sea of code. Seemingly simple features feel just out of reach. You understand the big picture of the framework you're using, but you have trouble connecting the dots. [Read More]

Writing a presenter's course - Part 03

Today I started an experiment I've been thinking for a long time. I'll write a course on stream in order to share the knowledge. On this stream I work in a course about creating a framework agnostic presenter library in Ruby. Here's a snapshot of the course syllabus so far: Basic Presenter [4/4]   free What is a presenter? Target and Context Forwarding to the target object Demistifying the view Instantiating Presenters [2/5]   paid Mystique. [Read More]

Why do I stream?

Recently I started a Twitch channel where I've streaming different things, like learning or re-learning technologies. My intention for the channel is to provide some value by recording myself learning and/or programming. I don't have many views and followers so far. This is probably due to a couple of reasons: I haven't really cultivated an audience I'm really new to streaming I don't promote the channel enough I don't have a fixed schedule And, probably the biggest, I'm not a great entertainer. [Read More]