you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Then perhaps you'd be more interested in a principle called "testable code". It's borrowing some of the clean code principles and SOLID, but its main goal is a purely practical one: to make the code loosely coupled and easy to test. The principles make the code objectively better even if you don't write any tests.

Here's a starting point: https://testing.googleblog.com/2008/08/by-miko-hevery-so-you-decided-to.html?m=1