News for hackers. Stuff that matters.
Re:Strong typing, a hill I'm willing to die on by spankalee on Wednesday October 04, 2023 @02:50PM (#37769832)
Comments are great, but they should usually explain why, not what.

Good, long variable and function names, along with breaking complex expressions into multiple statements with those nice variables names can help the code itself describe the what of the process. And then static types help describe the what of the types of data even more.

That lets you save the comments for more useful things than an ad-hoc type system, like "// We need to do this because..."

Re:Strong typing, a hill I'm willing to die on by hparadiz on Wednesday October 04, 2023 @03:19PM (#37770226)
Code coverage reports with complexity score for every function is the best teacher for this. I particularly love how Scrutinizer CI does this.