logoalt Hacker News

zeroCaloriestoday at 12:14 AM1 replyview on HN

You should have a style guide, or adopt one. Having uniform code is incredibly valuable as it greatly reduces the cognitive load of reading it. Same reason that Go's verbose "err != nil" works so well.


Replies

brabeltoday at 7:41 AM

Style guidelines should be enforced automatically. Leaving that for humans to verify is a recipe for conflict and frustration.