Linter wants me to put a complete sentence with enclosing HTML tags all on one line but I want to put it indented to match style elsewhere but linter says "Haha but *this* sentence is short so you could fit it all in 80 columns; one line it is!"
-
-
Show this thread
-
But as vexing as having this argument with a machine is it is FAR FAR SUPERIOR to having arguments like this with other engineers at the company, which is the inevitable consequence of not having a linter. I would seriously avoid sitting with a human linter at lunch.
Show this thread -
One of best cultural hacks I've ever heard of for pull reviews is that you're allowed to make stylistic arguments ONLY by PRs against the linter; style that passes the linter is Officially Good Company Style. Style that doesn't breaks the build. Neither requires comments on PRs.
Show this thread -
I also think that any language ever developed in the future which doesn't ship with the equivalent of "go fmt" is missing one of the smartest innovations in the history of programming management.
Show this thread -
You can write "go fmt" in any language but the genius of "go fmt" is that it creates a Schelling point for the community: "Good go code is unmodified by go fmt; you should expect *functionally no* code samples, OSS code, or libraries to disagree with The One True Nitpicker."
Show this thread -
(The other genius is that it is fast enough to run on basically every keystroke.)
Show this thread
End of conversation
New conversation -
-
-
I dislike style linters because they have a habit of making diffs bigger than necessary. Minimal diffs are very important if you're trying to figure out what someone did 30 years ago.
-
A work around I've done is to have an initial PR with just the linter and then another with the actual change.
- 1 more reply
New conversation -
-
-
One of my favorite professors in college used to refer to the gcc compiler in a similar anthropomorphized manner. “No Uday, compiler would reject that and you. Valgrind wouldn’t even have a chance to see it.” Now whenever I’m working on a compiler, I always hear his voice.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I think all developers go through the same mental cycle: New task! Code and learn. Works! Doesnt work ? How did it ever work? CURSE ALL LIFE AHHHHH I WAS NEVER CUT OUT FOR THIS Fixed I think. Ok. Bedtime.
End of conversation
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.