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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help