4 ms·
> just hack away until it works, and fix it if it ever crashes. This also makes collaboration really hard. Types are a form of documentation. But unlike commen
by sgeisenh 5y ago
> just hack away until it works, and fix it if it ever crashes.
This also makes collaboration really hard. Types are a form of documentation. But unlike comments, types are enforced by the compiler. Invariably, lots of comments in a codebase are wrong. Many of those probably started out correct but the code changed and the comment didn't.
- DonHopkins 5y ago...to the point where you can improve code quality by deleting comments.
- scns 5y agoIn Elixir (and Rust too IIRC) example code in comments is checked by the compiler.