Why spaces and no tabs?
# announcements
d
Why spaces and no tabs?
c
because holy war 🙂
k
Dammit here we go.
😂 2
r
h

https://media.giphy.com/media/pUeXcg80cO8I8/giphy.gif

d
What I meant was, why is there a preference in the style guide?
I don't think Kotlin should be picking a side.
k
Consistency is definitely more important than either of the options themselves, and in the end Idea has to pick a default anyway, might as well specify it.
4
d
Hmmm, fair enough. There should've been a vote or something for which side to pick though.
c
Meh, money isn't all, I'm sticking with tabs, they're much more versatile. 😛
d
Because tabs are clearly built for indentation. 😜
k
Well spaces is the most used on GitHub, in Java land in general and it was already the default for Idea in Java.
Again, consistency consistency consistency!
I hate that spaces won too but I don't notice the difference anyway with how good the indentation in Idea has become.
d
Spaces might be most used but what do Kotliners want though.
c
To be honest, if I was the company behind an IDE it would've had tabs (which is my preference) as default. So in case of IntelliJ it's probably just that Jetbrains developers chose spaces for themselves at some point and naturally made them default 🙂
d
I don't notice spaces, til' I have to move my cursor through them lol.
c
I also wonder how many developers use spaces (got used to spaces, rather) just because it came as the default setting in their IDE
👍 1
d
Chicken and egg, I guess.
c
anyway my solution was to become a teamlead and put tabs in the team style guide 🙂 🧌
s
tabs were the default in my first “editor”
I am fully aboard the spaces train now, however
d
Hmmm.....
k
I used to care when I started out, I was missing the bigger picture I think. One day I reinstalled Idea and I couldn't be bothered to find the setting...
s
I mean, big same - it doesn’t end up mattering that much, and if I ever end up working for a shop that picked tabs in their style guide I won’t throw a fit
but if I were writing up a style guide like the JB folks were and had to pick between the two, I’m going with spaces
h
I use w/e my IDE inserts when I hit the tab key
a
I like to set my tab width on 4 and then do 3 spaces and 1 tab
😱 1