Building frameworks to generate best practices

Photo by heylagostechie on Unsplash

An interesting shift happens once you realise you’re writing code for humans to read, and not just for machines to execute.

One big change is that writing clearly takes priority over correct code.¹

Reading code involves building up a mental model of what each thing should do, and how these things interact with each other. The best code, however, short-circuits reading everything. Instead of reading the implementation, you use variable and function names, comments, and other clues to figure things out.²

This is chunking. You combine things together, and remember them together. For example, a Chess Opening, like the Queen’s…


Learn the rare skills of admirable people

Photo by Sead Dedić on Unsplash

Over the past few years, I’ve noticed certain skills in people I admire, from Paul Graham, Vitalik Buterin, to Ender Wiggin.

These are rare skills, responsible for making them who they are. Most normal people, including me, don’t realise it. This makes the skills powerful — not everyone can see them, and very few people have mastered them.

However, I aim to change that. What follows below are 10 skills sourced from admirable people that I want to develop.

Learn to take compounding seriously

It’s not just your wealth that compounds, but life experience and knowledge, too.

So, learn the most basic, most useful skills…


Have you ever wanted to learn the first principles that underlie combinatronics? You’re going to need some bells.

Here’s the short version.

Let’s take ringing bells in a church as an example.

A permutation is an ordering of the bells. You’re figuring out the best order to ring your bells, one at a time.

A combination is the choice of bells. You’re choosing the bells that you’re going to ring.

If you have too many bells, you first choose them, and then order them. This is expressed, mathematically, by the familiar identity: (n P r) = (n C r) * r! It says that the way to order r items out of n is to first choose r


Learn why people do the things they do, and how to deal with them

Photo by Julien DI MAJO on Unsplash

Have you ever had your boss pass their mistakes on to you?

Well, Bob the Boss does. At a critical meeting, Bob asks his team for suggestions on how to fix things. Alice shares an interesting idea, and Bob takes it to upper management. However, it ends up making things worse. Tough luck. Bob then redirects all the blowback to Alice. “Look what you made me do, Alice! Fix it, it’s on you now”.

Bob is playing a game of “Look What You Made Me Do”. He’s setting things up so the blame never lands on him. He’s vindicating himself.


Knowing how to sequence things is powerful

Photo by Daniele Levis Pelusi on Unsplash
  1. Assuming you didn’t understand someone after you accuse them of spewing nonsense is much harder to recover from. If you’d checked your understanding first, you’d be in a better situation.
  2. For most people, sleeping earlier with the same number of hours leads to better sleep. So, netflix binging during the night is not the same as binging during the day. One harms more than the other.
  3. Saving early mornings for reading heavy books instead of, say, online blogs is perhaps a better use of deep work time.
  4. Working out in the afternoons might be better than doing them in the…


A walkthrough for solving technical problems using different lenses

Courtesy of Icons8

Consider a team of engineers that’s building a feature API for Snapchat. Let’s call them Ovah’s team. They’re facing two big questions: how do they build it, and how long will it take?

If they can’t figure out how to build it, the feature is dead already. If they take too long to build it, the feature is as good as dead — Instagram would copy it before they’ve built it.

This post contains four different perspectives that look at the two problems. As you read through the perspectives, notice the tension in the examples. Both problems are vastly different…


Photo by Johannes Plenio on Unsplash

Most people don’t practice taking ideas seriously. I think it’s because most people don’t know how to. I didn’t either, until I stumbled upon an implication.

For example, what would it mean to take compounding seriously?

Ugh. I can feel your aversion. You’ve already heard so much about compounding, how it works, how it’s the eight wonder of the world, etc. etc.

But, familiarity is not the same as taking it seriously.

Say you start with $100, and every year, make 10% more. This compounds, since the extra money is a function of how much you already have. The more…


It’s a foundational concept in statistics, and the key to understanding a range of natural phenomena

Meet Mason. He’s an average American 40-year-old: 5 foot 10 inches tall and earning $47,000 per year before tax.

How often would you expect to meet someone who earns 10x as much as Mason?

And now, how often would you expect to meet someone who is 10x as tall as Mason?

Your answers to the two questions above are different, because the distribution of data is different. In some cases, 10x above average is common. While in others, it’s not common at all.

So what are normal distributions?

Today, we’re interested in normal distributions. They are represented by a bell curve shape, with a peak…


In 2018, I started working at Bloomberg. Things have changed a lot since then

Photo by Benjamin Voros on Unsplash

In 2018, I started working at Bloomberg. Things have changed a lot since then. I’m not the most junior member in the company anymore and I’ve mentored quite a few new engineers, which has been amazing. It helped me observe how others differ from me, absorb their best practices, and figure out things I’ve unconsciously been doing pretty well.

Yearly work reviews are a good way to condense these lessons I’ve learned. They’re valuable for pattern matching, too. Only when I zoom out do certain patterns become visible. I can then start tracking these patterns consciously. The broad theme for…


Learn how to make better decisions, challenge your beliefs, and understand why some people believe in UFOs

Photo by Benjamin Davies on Unsplash

Have you ever noticed how you can be fuming with anger one second and absolutely calm the next?

A bad driver cuts you off on the highway, and you’re raging. A moment later, you notice him pull into the hospital and your anger melts away. “Yeah, maybe he has a patient in the car with him. Or, maybe someone close is dying. I guess he’s not so bad after all.”

An obscure rule from probability theory called Bayes Theorem explains this very well. This 9,000-word blog post is a complete introduction to Bayes Theorem and how to put it to…

Neil Kakkar

I write about Code and Life philosophies. Sometimes both. | https://neilkakkar.com | Engineer @Bloomberg | Write (Code). Create. Recurse.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store