Last time I used the IDLE that came with python i used tabs and everything worked fine. I did a quick Google search and the IDLE changes tabs to spaces. It's 2023 after our Lord, your text editor should be able to change tabs to spaces by default.
Learn something new every day. - I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
I've been a professional C, Perl, PHP and Python developer. I'm an ex-sysadmin from the late 20th century. These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
It's not just a11y; different people just find different indentation widths the most comfortable to read and I don't want to force anyone looking at my code to be weirded out by my 3-space indentation preference.
Learn something new every day. - I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
Spaces will always look the same, no matter the text editor, font spacing, or IDE used.
This is a disadvantage. Code is not a fucking painting, and wanting everyone reading it to experience it the same way is nothing more than thinly veiled arrogance.
All the other non-arguments are just variations of this or the dishonest attempt to blame anything caused by mixed indentation on tabs. Spaces aren't immune to mixed indentation either; I constantly find files at work (we use spaces as company policy) where someone has committed a change with tabs.
There literally isn't a single good reason for spaces other than wanting to force ones own formatting preferences on others. Spaces are harmful, using them is dumb, defending them is toxic.
TL;DR: Don't use Tabs. It is not a "personal style decision"
With all the respect, but I strongly disagree with this, at least with the first part. I agree that it should be a personal decision, but stating that you should use spaces can be blatantly ignorant towards people who have accessibility needs. I suggest reading this post: reddit.com/r/javascript/comments/c...
Learn something new every day. - I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
How to start a flame war labeled as code smell.
Last time I used the IDLE that came with python i used tabs and everything worked fine. I did a quick Google search and the IDLE changes tabs to spaces. It's 2023 after our Lord, your text editor should be able to change tabs to spaces by default.
No flame war. Just polite arguments
Counterpoint:
Why we should default to Tabs instead of Spaces for an 'accessible first' environment
Alexander Sandberg ・ Jul 12 '19
Tabs vs. Spaces: It's an Accessibility Issue • Adam Tuttle
Tabs cost you nothing and give your team more options. They're the more accessible choice.
It's not just a11y; different people just find different indentation widths the most comfortable to read and I don't want to force anyone looking at my code to be weirded out by my 3-space indentation preference.
Accessibility is a very good point
This is a disadvantage. Code is not a fucking painting, and wanting everyone reading it to experience it the same way is nothing more than thinly veiled arrogance.
All the other non-arguments are just variations of this or the dishonest attempt to blame anything caused by mixed indentation on tabs. Spaces aren't immune to mixed indentation either; I constantly find files at work (we use spaces as company policy) where someone has committed a change with tabs.
There literally isn't a single good reason for spaces other than wanting to force ones own formatting preferences on others. Spaces are harmful, using them is dumb, defending them is toxic.
I actually arrived to the same conclusion after reading summaries of both sides arguments a few years ago, their is no valid argument to use space!
With all the respect, but I strongly disagree with this, at least with the first part. I agree that it should be a personal decision, but stating that you should use spaces can be blatantly ignorant towards people who have accessibility needs. I suggest reading this post: reddit.com/r/javascript/comments/c...
interesting post. thanks for mentioning
go fmt
enforces TAB and you shouldn't fight against the official code style.