Skip to content

Computer Science

A Field Guide to the Numbers that Show Up Everywhere

I used to see the same numbers popping up in error logs, hex dumps, and config files.

255, 1024, 65535, 2147483647.

They felt like a secret code. If you know these numbers, you can start to guess what kind of bug you're looking at before you even read the code.

Let's look at the "Magic Numbers" of computing and why they keep appearing.

The Power of Zero: What is NULL anyway?

I remember when I was first learning to code, I thought 0 and NULL were the same thing. They both mean "nothing," right?

But then I got my first NullPointerException (or a segmentation fault), and I realized that in computing, there is a massive difference between "the number zero" and "no value at all."

Let's look at why 0 is powerful, but NULL is dangerous.

The Unix Epoch: Why time started in 1970

I was looking at a bug report the other day where a user's "Join Date" was listed as December 31, 1969.

I knew they hadn't joined the app before the internet existed, so I knew exactly what happened: somewhere in our database, their join date was set to 0.

In the world of computers, 0 isn't just a number—it's January 1, 1970.

ASCII vs UTF-8: Why Emojis Break Things

I used to think that a "character" was just a "byte." If I had a string of 10 characters, it should be 10 bytes long.

That works fine if you only use the English alphabet. But the moment someone adds an emoji (like ⚡) or a character from another language, the math breaks.

Let's look at why character encoding is so confusing.

Concurrency vs Parallelism: A Coffee Shop Guide

I used to use the words "concurrent" and "parallel" interchangeably. I thought they both just meant "doing more than one thing at the same time."

But in computer science, they have very specific meanings. As Rob Pike (one of the creators of Go) says: "Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once."

Let's look at how that works at my favorite coffee shop.