Fighting Distraction With Unit Tests | Matthew C Dev
While I won’t go so far as to diagnose myself with ADD without consulting a doctor, those who know me know I can be distracted quite easily. So recently, I decided to do something a little different with a personal project I started a few weeks ago (link to come). I wrote unit tests. That may seem rather uninspired, but I’ve always poo-pood the idea of test-driven development (TDD), as it seems wild to me to write a test for something that you don’t know what it needs to do yet.
While I won't go so far as to diagnose myself with ADD without consulting a doctor, those who know me know I can be distracted quite easily. So recently, I decided to do something a little different with a personal project I started a few weeks ago (link to come). I wrote unit tests. That may seem rather uninspired, but I've always poo-pood the idea of test-driven development (TDD), as it seems wild to me to write a test for something that you don't know what it needs to do yet. It works great when there's a well-defined spec or an existing hole that you need to fit. TDD shines when refactorin
saved by
related reading
- Why Good Developers Write Bad Unit Tests · mtlynch.iomtlynch.io
- Notes on Managing ADHDborretti.me
- Cognitive load is what mattersminds.md
- How To Do Lessalexturek.com
- GitHub - mawrkus/js-unit-testing-guide: 📙 A guide to unit testing in Javascriptgithub.com
- How I side project | thesephist.comthesephist.com
- My Approach to Building Large Technical Projects – Mitchell Hashimotomitchellh.com
- Hacking ADHD - Strategies for the Modern Developer | Ledgerledger.com
- On Coding, Ego and Attentionjosebrowne.com
- Unit and Integration Testsmatklad.github.io
- Software Engineering at Googleabseil.io
- Test Driven Development with pyteststackabuse.com