manton
manton

Because we are a very small team, I’ve always been good with “use whatever coding style you want!” I try to adapt to the conventions used in other people’s projects. But lately, I just want to go all-in on mandating real tabs. I’m getting too old to deal with tabs-as-spaces.

|
Embed
Progress spinner
SimonWoods
SimonWoods

@manton Oh this feels like the kind of thing that could be helpful even to contributors. Like if it was stated on GitHub, even if it was just to let people know "this is the preferred style" when submitting a PR. Honestly I wouldn't even be bothered if it was mandated there, although I assume people have feelings about that due to the nature of voluntary work on open source projects.

|
Embed
Progress spinner
jeromechoo@masto.ai
jeromechoo@masto.ai

@manton were a small team too and often we just divide and conquer our own parts of the code base to avoid fighting over tabs vs spaces.

When we do collide, I just reindent the entire script LOL

|
Embed
Progress spinner
jimmitchell
jimmitchell

@manton Uh oh… I see Micro.blog controversy on the horizon. Team tab here, so I’ve got your back. 🤣

|
Embed
Progress spinner
manton
manton

@jeromechoo Haha. Yes, I'm tempted to do that often but it really wrecks the version history.

|
Embed
Progress spinner
kirk
kirk

@manton I had never known that you were a monster. #GiveMeSpace

|
Embed
Progress spinner
In reply to
sod
sod

@manton Are you sure you don't want to go with spaces? 😉 Developers Who Use Spaces Make More Money Than Those Who Use Tabs.

|
Embed
Progress spinner
manton
manton

@sod No amount of money would make me change my mind. 🙂

|
Embed
Progress spinner
fabio
fabio

@sod oh fruck, correlation or causation?? Let's go with statisticsssssssss 😁

|
Embed
Progress spinner
jsonbecker
jsonbecker

@manton it is my firm belief that every project should have a formatter that runs in CI at a minimum, and even better as a pre-commit hook. In languages like Elixir where you can just do mix format very fast on save at all times, I don't care or think about style. It's not a choice thing, this is just how it's done. It's great.

|
Embed
Progress spinner
JohnPhilpin
JohnPhilpin

@sod it also looks like with experience spaces fall away .. which says something?

|
Embed
Progress spinner
ptrck
ptrck

@manton whenever I see this surfacing into an online debate I'm reminded of the Silicon Valley episode where it ends a seemingly perfect romantic relationship. 😁

|
Embed
Progress spinner
jmccance@mastodon.social
jmccance@mastodon.social

@jsonbecker @manton I joined a team that didn’t use a formatter last year and it was maddening. I’d forgotten how nice it is to just not think about formatting and still get a consistent style.

|
Embed
Progress spinner
sod
sod

@JohnPhilpin 🤔 Is that reflected in the raw data? From the article, it seems like salary differences diminish somewhat around 11–15 years of experience. However, that doesn't mean people start preferring spaces less as they gain experience, right?

And just for the record, for anyone following this thread: I don’t have a preference when it comes to spaces vs. tabs. 😊 I just use whatever the project I’m contributing to uses. When I start new projects on my own and actively think about indentation (which I rarely do), I choose whatever is most common in the language I’m coding in. (For example, spaces for Ruby and JavaScript, and tabs for C and Go.)

|
Embed
Progress spinner
vincent
vincent

@manton Uh oh... that feels aimed at me 😬

|
Embed
Progress spinner
lmika
lmika

@manton You may like the way Go does it. The community has a pretty strict formatting convention, to the degree that most Go code editors will auto-format a file on save. It took a while for me to adjust, but now I think it's great: I can just rely on the formatter when writing new code. And yes, they've adopted tabs over spaces.

|
Embed
Progress spinner
manton
manton

@vincent I promise not aimed at you! It’s more aimed at everyone. 🙂

|
Embed
Progress spinner
vincent
vincent

@manton Haha, just pulling your leg because I exactly know I am a spaces guy without even using the spacebar (by pressing tab) 😂

|
Embed
Progress spinner
JohnPhilpin
JohnPhilpin

@sod

Not sure about the ‘raw’ data .. just looking at the graph …

As you say, salaries paid to both ‘spaces’ and ‘both’ so slow down at the 11 to 15 year mark, whereas the ‘tab’ curve just keeps going.

My inference is that with experience the only way to keep your salary increasing at the same rate is sticking with Tabs - anything else and it starts to drop off.

Conclusion - the people that pay the bills recognize that ‘Tabs’ is the way to go and reward accordingly.

I also freely accept that the data is almost certainly not connected.

#JustTryingToStartAConspiracyTheoryHere! 😆

|
Embed
Progress spinner
sod
sod

@JohnPhilpin Love this take! 🥰

|
Embed
Progress spinner
cheesemaker.me
cheesemaker.me

@manton Trying to start a flame war, I see!

|
Embed
Progress spinner
mattypenny
mattypenny

@manton if I didn't like micro.blog so much I would unsubscribe immediately!! 😃

|
Embed
Progress spinner
manton
manton

@mattypenny Haha.

|
Embed
Progress spinner