NamtaoProductions / Decapsulate-com

The website for Decapsulate.com
https://decapsulate.com
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Over-unit-testing #4

Open nottrobin opened 3 months ago

nottrobin commented 3 months ago

This is not actually a controversial opinion, it's kind of just best practice, and many of the best experienced software engineers will already be on board.

But I think the concept is poorly understood. Most people think unit testing (or testing in general) should look like something quite different from how it actually should look.

This runs a bit into the clash of philosophies between the "small" function rules from Clean Code and the principles that come from A Philosophy of Software Design, such as modules should be deep. We might discuss that a bit too.

Also related is the way people tend to over-engineer error handling, to the detriment of their application.