Re:Write code that is easy to delete, not easy to extend (2016)
by revskill on Monday October 28, 2024 @04:49AM
(#41968960)
Write test, not code.
[ Parent
| on HN ]
Re:Write code that is easy to delete, not easy to extend (2016)
by ttyprintk on Monday October 28, 2024 @05:17AM
(#41969132)
Specifically, write tests that identify disposable code. More specifically, you hopefully wrote some disposable code that is a modular extension of something close to the core. Write tests that demonstrate which of those deserves to be core, and which is necessary for a requirement but disposable. Since the article brings up shared apis, hopefully when you arrive on a new project, those are well understood as requirements paired with test cases. Repeat in the opposite direction in dependent projects.