Re:Black: An uncompromising Python code formatter
by zestyping on Friday May 25, 2018 @05:22PM
(#17158110)
A double-quote is more noisy than a single-quote, and W is more noisy than V.
The difference is that " and ' are equally usable options in the context we're talking about. Quotes are very common, so the visual noise adds up when your screen is full of quote marks. Given that they mean the same thing, and one is both harder to type and harder to read, it makes sense to prefer the other.
Re:Black: An uncompromising Python code formatter
by mixmastamyk on Friday May 25, 2018 @07:48PM
(#17159140)
> Given that they mean the same thing, and one is both harder to type and harder to read, it makes sense to prefer the other.
Nailed it.
Re:Black: An uncompromising Python code formatter
by prawl on Friday May 25, 2018 @10:34PM
(#17159847)
A double quote is in no way harder to read. Only on Hacker News.
Re:Black: An uncompromising Python code formatter
by abiox on Friday May 25, 2018 @11:25PM
(#17160021)
this seems a bit reductive.
Re:Black: An uncompromising Python code formatter
by mixmastamyk on Friday May 25, 2018 @04:05PM
(#17157395)
Yes, why www. was dropped, and quotes are used everywhere in most Python code. The triple doubles for doc strings are the worst example, though I have no illusions pep8 will be changed any time soon.
The visual noise complaint is interesting. Do you also consider the letter W to be more noisy than the letter V? Should we discourage the use of noisy letters in the alphabet?