179 points · by colinprince · 16y ago · 39 comments
Reminds me of an old presentation by Alan Kay. He was demoing some networked virtual world he'd written, including avatars, portals, and chat. He wrote it in Smalltalk, and said it summed to 60,000 lines. He said with a bit more effort, he could probably reduce it to 20,000.
There's something to be said for a complete lack of duplication in the system.
For instance, their TCP implementation is under 200 lines, implemented as a parser-expression-grammar for the ASCII-art diagrams from the RFCs: http://www.moserware.com/2008/04/towards-moores-law-software...
EDIT: Also, in the next version of jQuery, they plan to separate out the core code such that you can include only what you need, so that 23kb will drop to only what you need.
Also, jQuery means rarely declaring in-function variables therefore avoiding memory leaks.
Happy coders all round :)
It may not be true, but I like the story anyway.
Edit: Fixed quote
For added value combine with sloccount when removing code (I removed $200k value from our software, fixed 8 bugs, and removed that stupid limitation about green text today)...