My Writings
Writing is a big part of my life. This is a collection of my essays and short musings throughout the years.
Sidenote: This site is currently under heavy construction. I am working hard on migrating all the pages from my old blog over here. This is why many of old posts may be missing for some time. Apologies.
2023
Create Robust "Enums" in Go
While Go doesn’t have proper enums, you can create a more robust enum-like construct using interfaces and structs.
Things to Consider When Going With sqlc
sqlc is a fantastic time and boilerplate saver, but is not a one-size-fits-all solution. Here are a few drawbacks I think people should be aware of.
Partially-Implemented Interfaces in Go
When you just want to implement one or two methods … but be careful.
User or *User - Do We Need Struct Pointers Everywhere?
A bit of up-front thinking can help make our Go code cleaner and more performant.
How To Schedule Block Reminders in Logseq
Remind yourself of current and future events with ease.
The Secret to Being a Great Bass Player
Think of it as a percussion instrument, not (only) as a low-pitched guitar.
Successful Interviews Start with Why
It is essential to understand the motivation behind why a company is posting a job offer before taking it on. Asking the right questions can help you assess if the job is a good fit for what you are looking for and if the company is on the same page.
2022
The Big Thing in Unix
The big thing in Unix was the realization that instead of building large monolithic systems, one could build smaller programs which could communicate with each other.
Epic Rap Battles of Programming: Java vs. Go
Two programming language giants appear on stage for a massive rap battle. Who will win?
Consistent > Idiomatic
As a software engineer, I’ve learned that consistency in code is crucial for the long-term success of a project, even when it means deviating from idiomatic principles.
How Logseq Introduces Event Sourcing to Note-Taking
Logseq is the closest thing to event sourcing in note-taking and knowledge management.
Book Review: Moonshot by Albert Bourla
Albert Bourla’s book, “Moonshot: Inside Pfizer’s Nine-Month Race to Make the Impossible Possible” provides readers with a behind-the-scenes look at the race to develop and deliver a COVID-19 vaccine. As the CEO of Pfizer, Bourla’s perspective provides a unique and interesting angle on the story. The book is easy to read and covers various topics, from the science behind the vaccine to the politics and logistics of getting it manufactured and distributed.