Re:Ask HN: Where do I find good code to read?
by alserio on Thursday August 24, 2023 @09:25AM
(#37248475)
"write code that is easy to throw away" is generally a good piece of advice
[ Parent
| on HN ]
Re:Ask HN: Where do I find good code to read?
by bluefirebrand on Thursday August 24, 2023 @12:59PM
(#37251415)
With the caveat that "easy to throw away" means "easy to understand the implementation front to back so you can know the full impact of throwing it away without crossing your fingers"
Re:Ask HN: Where do I find good code to read?
by alserio on Thursday August 24, 2023 @01:49PM
(#37252238)
I don't know about front to back, a good module should be explicit on what it affects and _ideally_ abstract its implementation.
We were talking about what a module should aim to be, and that aim is a good proxy for a lot of properties of well architected applications, even when not perfected. And even when you don't plan to ever throw the module out.