Software Writer

striving to write software, well

How to Drop a Table in Rails

December 7, 2021

So you created a migration to add a table that you thought you were going to need. You also ran that migration so that table is in your database. Now, you don’t plan to use it anymore. How do you remove that table?

Read more

How to Debug Ruby Code

December 5, 2021

For a long time, I delayed learning Ruby as I didn’t know how to debug Ruby code. Coming from a .NET background, I was used to debugging C# in Visual Studio, with its powerful support of stepping in and out, dragging breakpoints, changing variables on the fly, and a myriad of features that made life easy for a C# programmer.

Read more

How to Test Rails Source Code

November 28, 2021

One of the best ways to understand any codebase is to read the tests, and Rails is no exception. In this post, we will learn “how to run the tests” included in the Rails codebase.

Read more

What I've Been Up To

November 26, 2021

It’s been a while since I posted on the blog. Lots of things have happened in the last couple of months, and it’s only now that I have some breathing room to start writing again. So, this is what I’ve been up to for the past couple of months.

Read more

Linux Essentials

October 6, 2021

I’ve been working exclusively with .NET, Windows, and PowerShell for the past five years. As I make the transition to the wonderful world of Ruby and Rails, I realize that my Linux skills are virtually non-existent, and to become a good Rails developer, I need to understand Linux.

Read more

Learning the vi Editor

October 5, 2021

I tried learning vi quite a few times in the last several years. Each time, I gave up after learning the basics. Being a Windows .NET developer, I just couldn’t find that many use cases for it. On the handful of occasions I found myself editing files on my MacBook, nano was good enough. So I never really learned vi.

Read more

What's self?

September 29, 2021

The Ruby interpreter executes each line inside an object - the self object. Here are some important rules regarding self.

Read more

Proc vs. Lambda

September 24, 2021

Though they might look the same, the Proc and Lambdas have few differences.

Read more

Bindings in Ruby

September 23, 2021

A Binding is a whole scope packaged as an object. It allows you to encapsulate and carry the scope around. Later, you can execute a piece of code in the context of that binding, using eval.

Read more