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
Explore this link on the map →saved by
related reading
- Why Good Developers Write Bad Unit Tests · mtlynch.iomtlynch.io
- The Joel Test: 12 Steps to Better Code – Joel on Softwarejoelonsoftware.com
- How I side project | thesephist.comthesephist.com
- Notes on Managing ADHDborretti.me
- Software Engineering at Googleabseil.io
- CSC 151 - Unit Testingeikmeier.sites.grinnell.edu
- Crafting High Quality Unit Tests: Tips and Best Practicesmarclittlemore.com
- Test Driven Development with pyteststackabuse.com
- How To Learn Stuff Quickly • Josh W. Comeaujoshwcomeau.com
- My Approach to Building Large Technical Projects – Mitchell Hashimotomitchellh.com
- Tao on “blue team” vs. “red team” LLMs | Hacker Newsnews.ycombinator.com
- A Bunch of Programming Advice I'd Give To Myself 15 Years Ago | Marcus' Blogmbuffett.com