Hypothesis: If you keep your source code as short as possible, you will in the process reduce it to the "Legos" your idea is comprised of, and when you need to add something, you will usually be able to using those Legos plus at most a few new ones.
-
Show this thread
-
I don't have a very large sample size for this, but it's been true of every program I've written. One reason it's true is that in practice the things you add aren't random. They're related to things you already have, so can share a lot of the same code.
7 replies 7 retweets 107 likesShow this thread -
(The reason I said Legos instead of something more concrete like modules is that in the best case the Legos are of many different types: sometimes modules, sometimes libraries, sometimes language features, sometimes how you represent data.)
4 replies 6 retweets 97 likesShow this thread -
This Tweet is unavailable.
Replying to @amasad
Good point in general, but composability varies a lot between languages.
11:45 AM - 17 Mar 2019
0 replies
0 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.