3 ms·
You seem to be sitting on two chairs here. The split of the long lines aren't bad, but they are also bad because the long lines are inherently too complex. Of
by BurningFrog 8y ago
You seem to be sitting on two chairs here.
The split of the long lines aren't bad, but they are also bad because the long lines are inherently too complex.
Of course some times our broken up lines are too complex, and should ideally be restructured, but...
1. The mechanical way Black does it is rarely the best way to decomplexify things.
2. Often the long line wasn't complex at all. It just contained a simple but long string. Line length is a weak measure of code complexity, but as a dumb script, it's all Black can use.
That said, my main beef is really with the 88 char line length. If it was 120 or 140, I wouldn't like Black either, but I'd only be kinda annoyed. Coupled with 4 char indentations, 88 s an absurdly small space to fit code in, when we have the biggest screens in history. It's an incomprehensible madness to me.
Not sure what your final section says. I hope it's not that humans should learn to read code just like computers do?
To me, one of the most important quotes about our job is this:
“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”
- arusahni 8y agoFWIW, Black now allows line-length customization via the `--line-length` argument.
- BurningFrog 8y agoYeah, we actually looked at that today, and I'm impressed by how it repairs what it tore apart in "88" mode. We might change things up and I might be OK with my 'black life after all.