341 private links
Rust made me a better programmer as it let me fully embrace type driven development.
Why create automated tests?
Obvious: Automated tests ensure various properties of your code work and remain working.
Subtle: Writing tests forces you to think about the architecture and APIs you're implementing more carefully. Making code testable can lead to better architecture. This is the insight of test driven development.
Why write documentation?
Obvious: People (and now machines) can understand 5 the why and what of your software by reading the documentation.
Subtle: The act of writing the documentation can force you think about the architecture and APIs of your software. If you can't write about it, maybe you haven't gotten it right yet? That's documentation driven development.
Why write types?
Obvious: Statically check your code before it runs! Prevent runtime errors! Performance!
Subtle: You model the domain model using types, trying to make sure it hangs together. Enums are really valuable here. You express parse, don't validate in them. The types guide the architecture and APIs of your software.