Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Imagine caring how someone indents their code whenever there's not a set coding style 🤡🤡🤡
-
@Frederick very low effort. At least put the words over the blacked out area ffs lol
-
C0D4681385yWhy settle for one.
When you can map your Tab key to 4 space keys.
You keep your tab, the code keeps its spaces.
Or for you sick bastards who enjoy 2 spaces for indentation 🙁 -
@C0D4 And it's impossible to navigate the code with the arrow keys and it's incredibly easy to accidentially screw up and have an uneven amount of spaces. Why would anyone in their right mind use spaces when they have to use an IDE to *pretend* they're tabs
-
kamen69955y@C0D4 You can change how wide a tab appears without changing the code. You can't do that with spaces.
-
@kamen that's the whole point of using spaces. The indentation is consistent, regardless of the text editor.
Moot point anyway. It's not like anyone has ever been convinced by such an argument. -
irene33945y@Stuxnet Spaces are less accessible for visually impaired people. It matters if you care about that.
-
@enigmamachine OP is bitching about a friend's project.
The chances of them looking at the code probably aren't that high.
Therefore, he's a fucking clown for caring this much. -
@12bitfloat better compression while compared to spaces according to Richard 😂 .if you know , you know
-
kamen69955y@Commodore That's the whole point of using tabs - default is most of the time four spaces' width, but what if one developer wants two spaces? Do you let him reformat the whole codebase because of that if using spaces? On the other hand, if using tabs, they can just set tab width to 2 and be done with it. Most IDEs and editors support that.
@Root I agree about vertical alignment; that might be the only downside of tabs I can think of; still, the next tab stop is usually good enough for me. -
SomeNone7135yI'll post this again, even though I'm repeating myself: https://stackoverflow.blog/2017/06/...
-
atombomb1275yI agree and I am completely pro-tab indentation - or more precisely, I see the tabs as designed specifically for the indentation and spaces as suitable for the alignment(in special cases).
That being said, chances of being the one creating the coding standard in a company are low and one often has to comply with the rules that he does not consider to be the best. The tabs vs spaces usage is an ongoing argument where neither side wants to give up and there will always be developers who prefer spaces.
Also, according to the stackoverflows survey, the spacers seem to earn more... (duh!) -
Hazarth95025y@josap I do a lot of python for my own projects and I always use nano for that. I don't know what it is, but Its more fun for me. In which case I prefer tabs. You can't even fuck up indentations in python, because if you do, it does something entirely different xD so an auto-indent feature would be counter intuitive anyway. And for this at least, tabs are the fastest, smallest and most cultural thing to use
-
@Hazarth Tbh it's more fun because IDEs for dynamic languages are bad so they can't help you in a meaningful way anyways
Related Rants
I had a friend once with this irritating habit.
joke/meme
meme
funny
java
python
tabs
indentation