News for hackers. Stuff that matters.
Re:Black, the uncompromising Python code formatter, is stable by spiderice on Saturday January 29, 2022 @05:07PM (#30131051)
My only response to this would be “get used to it”.

I used to think 2 space tabs made code harder to read than 4. Now I used 2 spaces and I’ve gotten used to it and can read it fine. And I have no doubt you could learn to read the black formatted code just as easily. I can, since that is how I format my code anyway.

Re:Black, the uncompromising Python code formatter, is stable by bfung on Saturday January 29, 2022 @07:16PM (#30132105)
Agreed - end of day, code formatting is not that important in the context of how end users utilize the product.

Read a lot of different code and programming languages. They all look pretty much the same after awhile, formatting and syntax.

Re:Black, the uncompromising Python code formatter, is stable by solarmist on Saturday January 29, 2022 @09:12PM (#30133130)
I think it just doesn't matter anymore because almost all editors support code folding and visual markers for it, making it MUCH easier regardless of 2 vs. 4.
Re:Black, the uncompromising Python code formatter, is stable by Alex3917 on Saturday January 29, 2022 @08:50PM (#30132956)
> I used to think 2 space tabs made code harder to read than 4. Now I used 2 spaces and I’ve gotten used to it and can read it fine.

I might be in the minority, but it's an empirically testable proposition. Given the thousands of people taking Python quizzes for toptal, triplebyte, etc., it should be possible to see which version results in a lower time to answer or a higher accuracy rate.

Re:Black, the uncompromising Python code formatter, is stable by d12bb on Sunday January 30, 2022 @04:15AM (#30135255)
And that’s the reason everyone should use tabs. You like 2, I like 4, someone else one the team likes 3, 6, 8, whatever? No problem if tabs are used, everyone can set tabstop to their liking!