3 ms·
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 i
by spiderice 5y ago
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.
- bfung 5y agoAgreed - 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.
- Alex3917 5y ago> 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.
- solarmist 5y agoI 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.
- d12bb 5y agoAnd 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!