Better HN
topnewbestaskshowjobs
Log inSign up

revfried

9 karma · joined Feb 8, 2017 (9y ago) · 5 submissions

[ my public key: https://keybase.io/revfried; my proof: https://keybase.io/revfried/sigs/84XasU7qlKPoEexAiRzU4xSypdcych1YVqSRSMkq18c ]
Submissions

comment 8y ago · link · parent

A little bit of a catch 22 you think?

C++ has clangfmt.

Black has a good momentum right now it very well might be the clear winner in a few months

comment 8y ago · link · parent

using black is the no cognitive load in my book.

comment 8y ago · link · parent

Science. 88 produced smaller files than 80. And 90 and above didn’t noticeably shorten files.

Like Raymond Hettinger said in his talk beyond pep8, 90ish is better than a strict 80. If you have 81 characters on a line its a waste of time to move that to three lines and now harder to read. So there should be some buffer. that buffer is 10%. The goal is 80 but we are ok with up to 88.

comment 8y ago · link · parent

I find as I write code I no longer worry about alignment or long lines. When I have vim paste a section of code and its at a different indentation I just run black.

comment 8y ago · link · parent

yapf is not consistent, you can rerun it on source and it will reformat it multiple times. The rules for how it formats are also hard to understand