I Used Computers for 10+ Years Without Knowing How Text Actually Works
medium.com·1w·
Discuss: r/programming
📦Compression Algorithms
Preview
Report Post

3 min read1 day ago

For years, I wrote code, built APIs, parsed JSON, printed logs, stored strings in databases…

…and I had absolutely no idea how characters actually work.

Until one day, I decided to learn it. So I sat down searching on Internet, and finally understood how text works in computers.

This article is that whole journey.

Let’s start

Everyone knows computer understand only 0s and 1s. If you want to store a number like 7, it simply becomes:

7 → 111 (binary)

Easy.

But what about characters?

Note: The number 7 (as a value) is different from the character ‘7’ (as text).

So I thought…

“What if we just assign every character a number and store that number in binary?”

That’s it.

This is what ASCII do

**ASCII (*…

Similar Posts

Loading similar posts...