Built minimal versions of git write-tree and commit-tree from scratch in Python!
Learned how Git stores data—blobs, trees, commits, SHA-1 headers, zlib compression, and directory recursion.
Every file = blob
Every folder = tree
Every repo = a Merkle DAG
#buildinpublic#git
Today Built git cat-file -p from scratch in Python.
Used zlib to decompress Git objects, parsed blobs, trees & commits manually.
Now I actually get how Git stores everything.
Next → implementing git commit.
#buildinpublic#gitinternals
Today Built git cat-file -p from scratch in Python.
Used zlib to decompress Git objects, parsed blobs, trees & commits manually.
Now I actually get how Git stores everything.
Next → implementing git commit.
#buildinpublic#gitinternals
*in a system design interview*
> what type of database would you use while designing a dating app
( don't say it )
( don't say it )
( don't say it )
.
me: Relational Database