I'm not sold on complexity being a necessity in software engineering, as I'm sure a lot of you also aren't. Yet we see a lot of behemoth projects.
Build a Database in 3000 Lines with 0 Dependencies
21–30 of 59 posts
Re: Build a Database in 3000 Lines with 0 Dependencies
#22I looked into this at one point, I was typing out entire codebases for didactic purposes: SQLite 3 was 120,000 lines of code, but SQLite 2 was 12,000. So for a bit more effort you get a battle tested real world thing!
The proprietary test suite for SQLite3 is much much larger still. The battle-testedness comes in great part from that.
Re: Build a Database in 3000 Lines with 0 Dependencies
#23Earlier quoted context omitted.
The proprietary test suite for SQLite3 is much much larger still. The battle-testedness comes in great part from that.
Is that where the 10x more lines came from? Writing more "testable" code?
Re: Build a Database in 3000 Lines with 0 Dependencies
#24Re: Build a Database in 3000 Lines with 0 Dependencies
#25I looked into this at one point, I was typing out entire codebases for didactic purposes: SQLite 3 was 120,000 lines of code, but SQLite 2 was 12,000. So for a bit more effort you get a battle tested real world thing!
I've read about an author who did this (I can't remember their name right now), writing down the works of another author they wanted to learn from.
Re: Build a Database in 3000 Lines with 0 Dependencies
#26I looked into this at one point, I was typing out entire codebases for didactic purposes: SQLite 3 was 120,000 lines of code, but SQLite 2 was 12,000. So for a bit more effort you get a battle tested real world thing!
can you elaborate on typing out for didactic purposes, please?
Re: Build a Database in 3000 Lines with 0 Dependencies
#27Earlier quoted context omitted.
Is that where the 10x more lines came from? Writing more "testable" code?
Oh no, SQLite3 is a lot more featureful than SQLite2. The proprietary test suite is what makes SQLite3 so solid.
Re: Build a Database in 3000 Lines with 0 Dependencies
#28I looked into this at one point, I was typing out entire codebases for didactic purposes: SQLite 3 was 120,000 lines of code, but SQLite 2 was 12,000. So for a bit more effort you get a battle tested real world thing!
>I was typing out entire codebases for didactic purposes I've read about an author who did this (I can't remember their name right now), writing down the works of another author they wanted to learn from.
Re: Build a Database in 3000 Lines with 0 Dependencies
#29I looked into this at one point, I was typing out entire codebases for didactic purposes: SQLite 3 was 120,000 lines of code, but SQLite 2 was 12,000. So for a bit more effort you get a battle tested real world thing!
Really puts the auto- in didact! Very curious to hear how this worked for you; it’s almost directly the opposite of the copilot approach. I learned assembler by typing in listings from magazines and hand dis-assembling and debugging on paper. Your approach seems similar in spirit, but who has the times these days?
It's not for everyone but I love it.
Re: Build a Database in 3000 Lines with 0 Dependencies
#30I looked into this at one point, I was typing out entire codebases for didactic purposes: SQLite 3 was 120,000 lines of code, but SQLite 2 was 12,000. So for a bit more effort you get a battle tested real world thing!