General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Andrea Laforgia
Continuous Delivery
comments
Comments by "Andrea Laforgia" (@andrealaforgia) on "5 Ways to Improve Your Code" video.
I totally disagree. Tests are indeed a way of documenting the code, but they have to be written the right way. Keep your test methods short, with just three phases: given/when/then or arrange/act/assert sections, and what the code does will be obvious. When reviewing someone else's code, the first place to go to is tests. When someone asks me about a certain behaviour of the system is correct, I go look at the tests, not the code, to see what it does. You write down intent by making it clear what the expectations are.
1