Running my first 10k

On 3rd April, 2025, I ran continuously for an hour and seventeen minutes for my first 10k. Man was I happy! It all started last year; I was not physically active at all. The only sport I played was table tennis and that too, irregularly. I am from Karachi, Pakistan, and like most Karachites, we’re not one for healthy eating. Add smoking as the cherry on top. Yearly visit to the doctor informed me of my high cholesterol levels. Careless eating and excessive smoking were doing their part. I needed to do better. ...

April 5, 2025 · 4 min · 751 words · Minhaj U. Khan

DDD Repositories and Transactions

Let’s say you’re ordering a pizza online and you get to select the toppings for your pizza. To store this information, the website uses two database tables: pizzas and toppings. The repositories to store these can be imagined like this: 1 2 pizzaRepository.CreatePizza(ctx, pizza) toppingsRepository.CreateToppings(ctx, pizza.ID, toppings) Theres a catch when you make the order: if the above two operations don’t happen in a transaction, and the latter fails, you can expect the pizza to be delivered — without toppings. 🧑‍🍳 ...

November 29, 2024 · 4 min · 852 words · Minhaj U. Khan

Afterthoughts - The Myths about Testing

Write tests that help refactoring Test behavior not structure Reduce writing mocks I attended a talk from Danny Preussler from Soundcloud in Google DevFest about Testing and the above mentioned were a few key takeaways for me. I don’t know whether religiously following test-driven development (I myself do it at work) or just writing tests for the application/service layer is enough. I will not try to advocate what is best, but I would want to share how I feel about the topic. ...

November 23, 2024 · 2 min · 288 words · Minhaj U. Khan

Init.

I took the time today to write my first post. Most of the time spent on feeding the kid, putting him to sleep, seting up Hugo - which was super simple - and learn how to put gifs from Giphy in markdown.

November 1, 2024 · 1 min · 42 words · Minhaj U. Khan