500 Lines or Less (2016)
aosabook.org
500 Lines or Less (2016)
1–10 of 45 posts
Re: 500 Lines or Less (2016)
#2Re: 500 Lines or Less (2016)
#3Re: 500 Lines or Less (2016)
#4What about useless program ?
Re: 500 Lines or Less (2016)
#5What about useless program ?
Re: 500 Lines or Less (2016)
#6Re: 500 Lines or Less (2016)
#7Re: 500 Lines or Less (2016)
#8What about useless program ?
https://github.com/egeozcan/gifDisco
Being able to write silly stuff because you can is immensely satisfying.
Re: 500 Lines or Less (2016)
#9Consider: 500 lines of defensively written web server C++ code. 500 lines of C driver code. 500 lines of assembly. 500 lines of php script. 500 lines of java server app. 500 lines of c# .net desktop app. 500 lines of electron javacript code.
When I imagine the amount of a "useful program" I can write in 500 lines of C (or other low level statically typed language) while using minimal amounts of library code versus the "useful program" I can write in 500 lines of Javascript while using maximum amounts of Electron library code (i.e. all the functionality of chromium + node + electron), the difference is staggering ( try writing a cross platform video player in C vs Electron.. ). That doesn't mean Electron is better, especially if you need maximum resource budget usage or maximum control.
It's never about the number of lines, it's how you use them ;)
Re: 500 Lines or Less (2016)
#10Database, 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 cut requirements you can make things small and easy to understand. I'm only concerned about big-O and keeping things simple :)