Skip to content

ยท 1 min read

Write Tests after Cleaning Code.

Placeholder

Quality of code determines the quality of the test.

An unclean code will lead to an unclean test.

Hence, the tests will be as hard to understand and modify as the code.

If one decides to improve code quality, then all of the tests to be refactored too.

Overall the workload will be about thrice more work than it needs to be.

A better alternative is to write code, clean it, and write tests.

Get new posts by email

No spam. Unsubscribe anytime. Or grab the RSS feed.

Mailto-based for now. ButtonDown / ConvertKit can replace this form later.


Comments lazy-load on scroll. Prefer GitHub? Giscus activates once PUBLIC_GISCUS_* env vars are set (see Giscus.astro).

Index

Index

Back to Blog