Hacker News new | ask | show | jobs
by ris 2182 days ago
I spend so much of my time doing an invisible facepalm over dogma that developers believe, but can't ever justify why. It's always stuff that sounds sensible, but the lack of nuance makes them so destructive in practise. Whether it's "I try not to make my classes go over 250 lines", "make a function do exactly one thing well" (nothing does only one thing! bonus points for mentioning the "unix philosophy"), "functions with a cyclomatic complexity over x should be split up" (thanks, you've just made my analysis of this code n^2 times harder).

Meanwhile I count the days go by as people fight with linters and otherwise muddy git history trying to achieve an "A" "code quality" score. It's amazing people are paid to do this.