One of my goals is to rewrite all software for developing software, with each application at about (or less than) this sweet spot. Database, version control, runtime type system (Lua), proto-like serialization, code refactoring, parsing library... The list goes on. About the only heavy thing will be the text editor, and I'm still keeping that at a few thousand lines (+ a small core data structure library). When you c…
You want to write a serious database in 500 lines. Honestly, I'd be impressed but it's a hell of a target. Err, how long are your lines going to be?
500 Lines or Less (2016)
31–40 of 45 posts
Re: 500 Lines or Less (2016)
#32Hmm. I get the sentiment (500, i.e. not too short, not too long), but 500 lines will mean different things for different people and different programming stacks. It literally can mean 50000 vs 500 "lines of knowledge" required. I'm not sure why would you name your book like that. Consider: 500 lines of defensively written web server C++ code. 500 lines of C driver code. 500 lines of assembly. 500 lines of php script.…
Re: 500 Lines or Less (2016)
#33500 Lines or Less - https://news.ycombinator.com/item?id=12170182 - July 2016 (19 comments)
500 Lines or Less - https://news.ycombinator.com/item?id=11796253 - May 2016 (61 comments)
Re: 500 Lines or Less (2016)
#34Earlier quoted context omitted.
Normal lines (max 80) but I do prefer having each line do "one full thought", like putting `if then ... end` on a single line (if it fits) I wrote about the database here https://github.com/civboot/civboot/blob/main/blog/0012-dev-l...
Woof. Man, I really don't think you understand what goes into a DB if you think you can do D in 500 or even 5000 lines, unless maybe, maybe, you're aiming for something so simple it's merely a toy.
Re: 500 Lines or Less (2016)
#35Hmm. I get the sentiment (500, i.e. not too short, not too long), but 500 lines will mean different things for different people and different programming stacks. It literally can mean 50000 vs 500 "lines of knowledge" required. I'm not sure why would you name your book like that. Consider: 500 lines of defensively written web server C++ code. 500 lines of C driver code. 500 lines of assembly. 500 lines of php script.…
Re: 500 Lines or Less (2016)
#36I know all the cool kids are doing this, because it's only old people who care about the ease of reading things on the web. But... please... don't do stupid things like this.
That being said, it's easy enough to open dev tools and unclick the ``width: 68rem;`` clause or open it in lynx which replaces the web designer's styling stupidity with its own, more consistent styling stupidity. The content wasn't that bad.
Re: 500 Lines or Less (2016)
#37One of my goals is to rewrite all software for developing software, with each application at about (or less than) this sweet spot. Database, version control, runtime type system (Lua), proto-like serialization, code refactoring, parsing library... The list goes on. About the only heavy thing will be the text editor, and I'm still keeping that at a few thousand lines (+ a small core data structure library). When you c…
Arthur Whitney had a whole operating system, kOS, in a few hundred lines iirc (including bare metal storage drivers, screen drivers, file system and more), with a more-than-sql database in 200 lines and an editor in a few tens. The magic — other than Arthur’s genius - was the programming language K (also designed and implemented by Arthur). And from another direction, the STEPS project from Alan Kay did a metal-to-ev…
My favorite so far has been project Oberon. I've not seen how it's assembler works though. What I want is a full stack (assembly included) self-bootsrapping implementation
Re: 500 Lines or Less (2016)
#38One of my goals is to rewrite all software for developing software, with each application at about (or less than) this sweet spot. Database, version control, runtime type system (Lua), proto-like serialization, code refactoring, parsing library... The list goes on. About the only heavy thing will be the text editor, and I'm still keeping that at a few thousand lines (+ a small core data structure library). When you c…
Arthur Whitney had a whole operating system, kOS, in a few hundred lines iirc (including bare metal storage drivers, screen drivers, file system and more), with a more-than-sql database in 200 lines and an editor in a few tens. The magic — other than Arthur’s genius - was the programming language K (also designed and implemented by Arthur). And from another direction, the STEPS project from Alan Kay did a metal-to-ev…
Re: 500 Lines or Less (2016)
#39Earlier quoted context omitted.
Normal lines (max 80) but I do prefer having each line do "one full thought", like putting `if then ... end` on a single line (if it fits) I wrote about the database here https://github.com/civboot/civboot/blob/main/blog/0012-dev-l...
Woof. Man, I really don't think you understand what goes into a DB if you think you can do D in 500 or even 5000 lines, unless maybe, maybe, you're aiming for something so simple it's merely a toy.
Re: 500 Lines or Less (2016)
#40Earlier quoted context omitted.
Woof. Man, I really don't think you understand what goes into a DB if you think you can do D in 500 or even 5000 lines, unless maybe, maybe, you're aiming for something so simple it's merely a toy.
To be clear, it would depend on some (equally small) libraries, so it's not like 500 lines of no dependency C or something
You'll need a lot more than that as well. You will have to take a very high level view of things, ruthlessly componentised.
I understand and endorse what you're trying to do, but a low level infrastructure with a bunch of libraries isn't quite going to cut it.
Just my opinion anyway, take it as you will!