Re:Woodworking as an Escape from the Absurdity of Software
by tayo42 on Saturday May 04, 2024 @10:57AM
(#40258152)
>We all read through comment threads on HN where each is written in it's own style and nobody has a problem understanding it.
That's not true. Walls of texts get ignored or complained about. Grammar nazis show up if you use the wrong to/too.
If your typing on a phone autocomplete more or less enforces grammar and punctuation.
Consistency is dramatically overrated. We all read through comment threads on HN where each is written in it's own style and nobody has a problem understanding it. I read through open source repos all the time, which all have their own styles and which are often not self-consistent; my comprehension is not impaired. I have worked with teams that enforce linting with a religious fervor and teams where anything goes. The anything goes team is probably more productive and with a comparable rate of bugs (but I don't have the metrics to prove it). Personally, I don't feel like my comprehension is better or worse in one setting or the other.
The difference I do notice is that when there are no linters, nobody wastes time trying to figure out how to work around it for a few lines. A great example is Eigen matrix initialization through the stream operator overload [1]. You really want to manually format that so each row is on it's own line. If you use clang-format in such code, it will be littered with
which adds a ton of unnecessary noise which does impair reading.[1] https://eigen.tuxfamily.org/dox/group__TutorialAdvancedIniti...