5 ms·
500 Lines or Less
- adamnemecek 10y agoI'm liking this trend. Basic ideas of full blown pieces of software often take surprisingly few LOC to implement. Anyone willing to guess how long the first release of git was?. https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23ca2e25604af290 https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23...
- saghm 10y agoWhat blows my mind is that it's actually like 15% shorter than since that includes the makefile and readme
- 0xmohit 10y agoA URL shortener made literate (43 lines) [0] [0] http://bitemyapp.com/posts/2014-11-22-literate-url-shortener.html http://bitemyapp.com/posts/2014-11-22-literate-url-shortener...
- deleted 10y ago[deleted]
- 0xmohit 10y agoThe source for the book is available at https://github.com/aosabook/500lines https://github.com/aosabook/500lines
- cponeill 10y agoAwesome. Can't wait to dig through this.
- sidcool 10y agoSuch a short life and so much awesome to learn. Very promising book.
- jplasmeier 10y agoShouldn't it be "500 Lines or Fewer"?
- madsushi 10y agoThey wanted to save the 1 character.
- wlievens 10y agoThe web is dark and full of errors.
- jake-low 10y agoHistorically, yes, but current usage has relaxed. See [1]. Personally, I read the title to be a pun on "30 minutes or less", a phrase American pizzerias sometimes use to advertise guarantees about their delivery times. The book is promising to show you useful programs in "500 lines or less, guaranteed!". [1]: https://en.wikipedia.org/wiki/Fewer_vs._less https://en.wikipedia.org/wiki/Fewer_vs._less
- deleted 10y ago[deleted]
- bhrgunatha 10y agoI like the Wikipedia article [1] especially the historical use section: "Less has always been used in English with counting nouns." Over the years I've changed from prescriptivist to descriptivist. Surprisingly because once I started to teach English my eyes opened to the vast discrepancy between formal grammar and actual use. Eventually I began to realise that language is what people use, not what people tell you to use. I still correct people when they are learning English but I'm only strict where it interferes with meaning. Using less instead of fewer certainly does NOT confuse the meaning. [1] https://en.wikipedia.org/wiki/Fewer_vs._less https://en.wikipedia.org/wiki/Fewer_vs._less Edit: jake-low beat me to it - I'll leave the link though
- flashman 10y ago
- codepie 10y agoPrevious discussion: https://news.ycombinator.com/item?id=11796253 https://news.ycombinator.com/item?id=11796253
- greglindahl 10y agoThe crawler looked so pretty that I'm hacking away on a real crawler based on coroutines: https://github.com/cocrawler/cocrawler https://github.com/cocrawler/cocrawler