Re:Black, the uncompromising Python code formatter, is stable
by antihero on Saturday January 29, 2022 @09:41PM
(#30133323)
One thing I liked about Python was that PEP8 existed and was some sort of fairly aged standard for formatting. I’m not sure why people feel under deviation to suit their personal preferences is more valuable than consistency.
[ Parent
| on HN ]
Re:Black, the uncompromising Python code formatter, is stable
by andreareina on Saturday January 29, 2022 @11:32PM
(#30134051)
Consistency is not in and of itself valuable. What is valuable is when it makes things clearer, or otherwise easier. Tabs vs spaces has absolutely no effect on my comprehension of the code. Being able to use spaces for alignment would actually help in some cases but oh well, that's not allowed in python. The way black splits [] expressions is actually harmful when it's used in a chain with method calls as is not uncommon in pandas.
Re:Black, the uncompromising Python code formatter, is stable
by tda on Sunday January 30, 2022 @10:49AM
(#30138162)
to anyone with even the slightest levels of OCD,(like say 95%? of software developers) consistency for the sake of consistency has a lot of value. The reason I like Black is not because of the authors opinions, but because it is consistent (due to the absence of configuration/user preferences).