Claim: "I don't have time to write tests or types"
Claim: "I don't have time to write tests or types".
Reality: They'll save you time.
Skipping types and tests may save a little time today.
But it wastes a LOT of time later.
Warning: Both can be taken too far.
Spending hours trying to type something probably isn't worth it. But if it's this hard, the code likely needs refactored.
Spending hours striving for 100% coverage may not be worth it. But writing no tests is rarely the right choice.
I'm currently rescuing a project.
The app is partially complete, but buggy.
The app is huge. It's too big to test manually. And the datatypes are unclear.
My solution is simple:
1. Add types
2. Write tests