#tabsvsspaces

PierreNick :apple_old_logo: 💾pierrenick@hachyderm.io
2025-03-27
Screenshot of the final scores of the linked survey. 

Let us settle things once, and for all: Tabs or spaces?

Tabs got 49%
Spaces (which I picked) got 51%

On 3592 votes.
2025-03-05

Oh Haskell, not you too...
#TabsVsSpaces #haskell

It's a shot of part of my laptop screen. GHCi, the Haskell interpreter is telling me that only losers use tabs.
Michal Jan_michaljan
2025-02-21

3 spaces in a tab?!

Niels Moseleytrcwm
2025-01-27

@Dtl perhaps they mean spaces?

Gary "grim" Kramlichgrimmy
2025-01-03

This is what I imagine people's code looks like when they complain about the forced indentation in .

And yes, this code is correct.

A very messy implementation of fizzbuzz mixing tabs and spaces, unaligned braces, inconsistent spaces around operators and semi colons and even more grossness.

The full code follows if you would like to try it out.

#include <stdio.h>
void main(void)
  {
  	for (int i = 0 ; i <100;i++)
{
		if(i% 15 == 0 ) {
			printf("fizzbuzz ");
		  }
	else   if(i % 3==0 )
	{
		printf("fizz " );
	 }
	 	else if ( i %5==0) {
	 		printf("buzz ")  ;
	 	}
	  else
	  	printf( "%d " ,  i);
  }
}
2024-11-27

Reading about how tabs for indentation are an accessibility issue for some suddenly makes me feel like I should switch to tabs in all my projects.

Are there any accessibility concerns that would actually point to using spaces instead of tabs? Or is it just familiarity? Assuming you work with a code style where you don't need to align things to columns that don't divide nicely to tab levels.

#a11y #TabsVsSpaces #programming

2024-10-10

I’ve always been team spaces, and then I read this one Reddit post today (found through this GitHub issue) and I’m immediately convinced.

I’m now going in to work tomorrow on a mission to convert (haha, punny) everyone else.

github.com/prettier/prettier/i

#softwaredevelopment #tabsVSspaces

2024-09-19

i hate having to read code on github with an 8 space tab width, afaik i can't view code using a custom width

i especially hate people who use spaces to indent their code

fuck all of you

#TabsVsSpaces

clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛clacke@libranet.de
2024-07-30

It's impossible for a computer nerd to hear "TABs" without thinking about the age-old conflict about tabs vs spaces for indentation of program text.

In the disability context #TabsVsSpaces could be about how people without disabilities go and design bad spaces that work only for them.

Just to confuse things. 😅

Frank Abelbeckfrank@troet.cafe
2024-05-06

New Kate instance, new setup. Tabs, not spaces!

#tabsvsspaces

@thleemhuisfoss

Das sind doch eigentlich eher user-settings und sollten im Quellcode nicht relevant sein.
Müsste Quellcode nicht eigentlich in so etwas wie JSON oder eine Datenbank koddiert sein?
Das würde doch auch das ganze Quellcode-Management vereinfachen.

#Linux #Kernel #LinuxKernel #Tab #TabsVsSpaces

2024-04-18

My latest blog post looks at my code formatting styles. Give it a read and tell me your thoughts!

https://vale.rocks/posts/my-code-formatting-guidelines

#Blog #Blogging #TabsVsSpaces #Formatting #FrontendDev #Frontend #FrontendDevelopment #WebDev #WebDevelopment

Thorsten Leemhuis (acct. 4/4)thleemhuisfoss@social.tchncs.de
2024-04-18

Gut, dass moderne Medien auch noch über die wichtigen Dinge in der #Linux-Welt berichten, und nicht nur über Sachen, die viele Klicks erzeugen! 🙃 🥴 😆

golem.de/news/linux-kernel-lin

#Kernel #LinuxKernel #Tab #TabsVsSpaces

Thomas GanterThomas@blog.fami.ga
2024-04-18

«#Torvalds really doesn’t like spaces – as in, #tabs vs. #spaces – and got a little annoyed that a commit removed a hidden tab because it “apparently showed breakage in some third-party #kernel config parsing tool”. So, Torvalds decided to add some hidden tabs to trigger breakages like this, and is threatening to add more hidden tabs if necessary.»

#TabsVsSpaces ist annähernd so religiös wie die #ViVsEmacs Diskussion — die zwei Grunddiskussionen der #Hacker.

#Linux

osnews.com/story/139334/linus-

Kagan MacTane (he/him)kagan@wandering.shop
2024-02-08

Really not happy with tools like `npm init` creating a package.json file that's indented using spaces instead of tabs. It contributes to new devs thinking that tabs are an acceptable way to indent things.

In a codebase that multiple people will be working on, this is not true.

Tabs. Not spaces. Tabs are the way.

(Yes, I'm going to keep banging this drum until the #webdev and #software #development worlds catch up.) #coding #SoftwareDevelopment #WebDevelopment #TabsVsSpaces #TabsNotSpaces

2023-10-04

@LexGear I realized I couldn't remember and looked up what I'd done, and found soft tabs and a mixture of 2 or 4 spaces? Shit. Sometimes I indent top-level class/function bodies 4 spaces and then all other loop/conditional/struct/yaml blocks 2 spaces. Which in retrospect is super cursed.

(Best-case scenario this was caused by maintaining the style of existing code. But it was probably written by past-me, so that rubbish excuse is of limited value.)

#TabsVsSpaces #code #development

Kagan MacTane (he/him)kagan@wandering.shop
2023-09-06

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

2023-09-05

The only sane way to do indentation and alignment of programming code:

tabs for indentation,
spaces for alignment.

This is called smart tabs: emacswiki.org/emacs/SmartTabs

:boost_requested: Spread the word.

#TabsVsSpaces #SmartTabs #tabs

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst