Re:Ten Years of “Go: The Good, the Bad, and the Meh
by z0r on Tuesday July 18, 2023 @02:29PM
(#36777170)
Writing and reading repetitive code leads to unintentional defects. This is why for loop syntax that directly iterates through a collection is less error prone than the equivalent loop built on indexed look-ups. "Clever" code, at least when it is shorter, is often clearer than "simple" code.
[ Parent
| on HN ]
Re:Ten Years of “Go: The Good, the Bad, and the Meh
by Veraticus on Tuesday July 18, 2023 @03:53PM
(#36778267)
I entirely disagree; defects are created by complexity, not repetition.
Re:Ten Years of “Go: The Good, the Bad, and the Meh
by soulbadguy on Tuesday July 18, 2023 @04:38PM
(#36778757)
> defects are created by complexity, not repetition.
Any reference for this ?
I though there was a pretty strong connection between the total number of line of code and the number of bug... That's the whole point of DRY.