Kagan MacTane (he/him) · @kagan
488 followers · 6147 posts · Server wandering.shop

Reminder: If you're using spaces instead of tabs in your code, you're enforcing your personal preference in indentation spacing on everyone else.

That's unkind. Don't do that.

#coding #development #programming #bestpractices #tabsvsspaces #usetabs

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
244 followers · 2818 posts · Server fosstodon.org
Sukrit Tan · @actsukrit
127 followers · 242 posts · Server mastodon.gamedev.place

Multiple spaces

VS

A single tab character whose width you can adjust in your editor of choice to be the length you want

Will people plz explain why?

Like I’m legitimately confused why spaces seems to be the default for most people. Surely there’s a reason?

#tabsvsspaces #programming

Last updated 2 years ago

The King · @theking
23 followers · 180 posts · Server mathstodon.xyz
Masked & Boosted · @990000
87 followers · 493 posts · Server mstdn.social

As a diehard “spaces” kind of person I decided to switch to tabs for accessibility reasons, but it's hard sometimes as you can't just flip a switch and change an entire repository instantly without taking precautions.

Not only that, but after changing the defaults on your code editor, you may have to continue working on other repositories with spaces until those get converted too. Very messy situation.

#Accessibility #webdevelopment #tabsvsspaces

Last updated 2 years ago