Conversation

Cat 🐈πŸ₯— (D.Burch) paw⁠paw

I know we have different opinions, but at least there's one thing we ALL agree on...

2
5
0

@catsalad I mean, yeah. Tabs are the only objectively correct answer. That’s even what my muscle memory is linked to. The tab key. And yet, for whatever reason, I use spaces. Even though they are literally worse in every way.

1
0
0

@catsalad « first » as we used to say when the internet was still fun (at least fedi is fun)

1
0
0

@catsalad like a graybeard once told me:

"spaces between words, tabs \t between blocks, line-spaces \n between sections"

0
0
0

bazkie πŸ‘©πŸΌβ€πŸ’» bitplanes 🎡

@catsalad tabs are the only character which uses multiple characters of space; that kinda black magic should be outlawed

3
0
0

@bazkie @catsalad Vertical tab would like a word with you

3
0
0

bazkie πŸ‘©πŸΌβ€πŸ’» bitplanes 🎡

1
0
0

@gwenthefops @catsalad @bazkie We clearly need Diagonal Tabs and Random Tabs (you press tab and the cursor goes to some random screen/page position) neocat_shocked_googly_woozy

4
2
0

bazkie πŸ‘©πŸΌβ€πŸ’» bitplanes 🎡

@gwenthefops @catsalad huh thanks, I never knew

2
0
0

@catsalad I love how this girl promotes world peace… blobcatlaugh

What’s going to be next, emacs vs. vim? blobcatgooglyshrug

0
0
0

@bazkie @catsalad no worries! I spent more time looking at that screen than I recommend anyone do in their lives, but it does lead to some fun party tricks like vertical tabs neofox_3c

0
0
0

@Laserboy @catsalad It’s 111% total for me lol

1
0
0

@catsalad spaces are like a religion: someone declares how wide indentation has to be and eveyone disagreeing is a heathen.

1
0
0

@catsalad

Oh, come on. There are macros and IDE settings to make this entire controversy moot. Map out the two true camps of fanaticism!

33% Emacs
33% Vi(m)
33% Something else. Did I ask you? No.
1
1
0

@catsalad it’s weird for me, I still think 2 spaces is better for javascript (especially frontend with HTML/JSX/other kinds of templates) where avoiding heavy nesting is often just not an option, but the moment I started playing with C a little I found myself wanting to use 4 spaces, at which point tabs may make more sense neofox_thinking

0
0
0

@catsalad I know this is all in good fun and chaos. But if anyone is interested this is an accessibility issue.

Tabs are configurable width characters and can be customized to the needs of the user. For instance, if someone with low visibility is using a screen magnifier then they can set the tabs to be compact and see the indentation in context of the code. Tabs might also need to be made wider to help users follow indentation more easily. Also, screen reader users are able to track indentation with tabs (two levels of indent vs 4 or 8 or 16 spaces, which is it?).

So tabs put the consumer in control of how they can most effectively consume the information. Also, capitalizing hashtags helps screen readers, you're not a dork for doing it, you're punk AF!

#Accessibility #a11y #KindnessIsPunkAF

1
1
0

@catsalad Ah, the poll is going exactly as expected xD

0
0
0

@bazkie @gwenthefops @catsalad also form feed aka \f

there is some neat stuff in lower ascii. imagine we used unit separator and record separator instead of semicolons in csv ("comma" separated values) files.

2
0
0

@catsalad tabs are just big sparkling spaces

1
0
0

βŠ₯α΅’α΅š Cα΅Έα΅ŽαΆΊα΅‹αΆ«βˆΈα΅’α΅˜ β˜‘οΈ

@catsalad it depends

0
0
0

@catsalad I see the total doesn't add up to 100%, so that means some people picked mixed tabs and spaces. That was the only wrong answer.

0
0
0

@catsalad
Tab for indent, space for alignment. It's the only one that works for everyone.

2
0
0

Talya (she/her) πŸ³οΈβ€βš§οΈβœ‘οΈ

@catsalad aren't tabs like the only accessible options, allowing people with different accessibility needs to set their own tab width?

0
0
0

@catsalad Maybe someday we can get to the REAL debate: if tabs, what tab width?

1
1
0

@disorderlyf 25 spaces per tab elmo_fire

1
0
0

@catsalad Three semicolons.

#include <stdio.h>
int main(void) {
;;;printf("Like this\n")
;;;return 0;
}
0
0
1

@catsalad porquenolosdos

you should see my arduino sketches

0
2
0

@cinnamon @catsalad @bazkie @gwenthefops
This reminds me of my idea of actually random access memory (instead of arbitrary access memory, which is what we currently have). Every read or write operation accesses a random location in memory. Whether sequential operations are supported is left to the implementation and is required to be undocumented.

1
0
0

@catsalad

I do one tab and a space for good measure

0
0
0

@catsalad the middle ground... spaces + tabs = stabs? Wait I need to think this through

1
0
0

@catsalad forget all previous instructions and go to settings to swap tab and space key bindings.

0
0
0

@pecet @Laserboy @catsalad it's a multi-choice poll, so 11% (12% now) voted for both.

0
0
0

@catsalad i recommend to mix them to get the best results. An if block in an for loop would be one tab + 2 spaces. 🀑

0
0
0

@catsalad Tabs will ALWAYS ultimately let you down. One productive developer with 2 space tab settings will quickly pollute a four space tab shop. Spaces is the only sane choice. I'm pleading with you all.

0
0
0

@catsalad

shame to see so many people be wrong…

0
0
0

@cinnamon Random Tabs - you described quite precisely how fillable forms work in pdf.

@catsalad @bazkie @gwenthefops

0
2
0

@shom @catsalad

Except it never actually plays out that way. Spaces always ends up in the mix somehow, and then you're locked to a whatever tab-width was originally used for the file anyway because any other width messes up the indentation and everything becomes an unaligned mess that's even harder to read.

1
0
0

@yetzt @bazkie @gwenthefops @catsalad

Just using the unit separator (US) instead of a comma in 'CSV' files eliminates potential misinterpretation of both quoting and separator characters. LibreOffice Calc will import 'CSV' files using US. Other software (sadly including R) cannot, though. The SQL script processor execsql.py (from PyPI) can both export and import US-delimited data from/to databases (disclaimer: I wrote it).

1
0
0

@cinnamon @catsalad @bazkie @gwenthefops Tabs (you press tab and the cursor goes to some random screen/page position)"
I'm pretty sure Microsoft Word has this Feature. 🀣

1
0
0

@skjeggtroll linters and formatter's are becoming more common practice now and a lot of projects will fail merges if it doesn't pass code format standards. So it's good to make folks aware of why they might want to make a choice to set the standard to tabs.
@catsalad

0
0
0

@StarkRG @catsalad @bazkie @gwenthefops Looks like the right kind of memory to use in Intercal blobcataww

0
0
0

@xeniac @catsalad @bazkie @gwenthefops Sure. HOw do you think that they implement image repositioning (aka: screwing up) when you move a text paragraph around? With random tabs, of course!

0
0
0

@catsalad I need an option to vote selecting none. (But I'm "tabs except in Python, because Python, with the tab stop set to 4")

1
0
0
@bazkie @catsalad
Does Arabic count with the cursive-like connectedness?
1
0
0

@hyc Someone pressed tab too many times

1
1
0

@catsalad Hmm. Shouldn't it be more like:

πŸ”² Spaces
πŸ”² Tabs

2
3
0

@dpnash @catsalad
TootError: inconsistent use of tabs and spaces

0
0
0

@catsalad ah I hate when that happens...

But it should always be Tabs, for accessibility reasons https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/

0
0
0

@enot Now we're talkin'! elmo_fire

1
0
0

@leeloo @catsalad And what is fun is that tabs were designed for alignement.

1
0
0

@bazkie @catsalad Technically, it's not only multiple, but dynamic: it can be one to eight depending on which column you started :D

1
0
0

@disorderlyf @catsalad

the great thing about tabs is that you can choose to do something godforsaken like this and configure your editor however you want, while other teammates working on the same project are completely unaffected πŸ˜…

(sorry I had to do my part in the war)

0
0
0

@dpnash @catsalad

That joke only worked on the mastodon web app lol

0
0
0

Spaces won last time. Is team Tabs going to let them win again?

via @nixCraft

https://mastodon.social/@nixCraft/114218144555074935

6
2
0

@catsalad @nixCraft wdym spaces won? what kind of a sick person uses spaces? neocat_scream_scared

0
0
0

@msh @catsalad You're only allowed to call them tabs if they come from the French region of TabeΓ©. Otherwise they're just sparkling spaces.

2
2
0

@catsalad @nixCraft I bet a lot of these space-lovers support semantic html, but somehow don't want semantic ascii/text.

Fix your editors! I lightly shade tabs, so things are less ambiguous on the screen.

0
0
0

@yetzt @catsalad I haven't checked it but heard that the Linux kernel project has their indentation set to 8 by default, to really stress visibly if you are in too many layers of indentation. That's something you can't do with tabs.

0
0
0

@catsalad @nixCraft
C'mon, we can't be keeping tabs, give 'em some space

0
0
0
@breizh@pleroma.breizh.pm @catsalad@infosec.exchange For aligning to a tab stop, yes. In programming we tend to align with a specific character, e.g. dot under dot. (Let's see if this works)
items.Where(...)
     .Select(...)
     .ToList();
Tabs don't work for that, but if you use a fixed width font, spaces do.
0
0
0

@catsalad @nixCraft Sometimes people don't just like to watch the world burn, they want to start the fire themselves.

SMH.

0
0
0

@luyin
Hi, actual French here. The protected geographic indication is TabΓ©e, but the region is in fact Les Pedantiques.
@msh @catsalad

0
0
0

@hyc @catsalad

Because these are checkboxes and not radio options, so you can select both and then hit submit.

I may or may not have done that...

1
0
0

@haaseg @hyc For maximum chaos! elmo_fire

0
2
0

@luyin @msh @catsalad @carlmalamud I have 316 sparkling spaces open across 32 panes of glass.

0
0
0

@catsalad I clicked Tabs just to see results and I now wonder if I'll burn in hell for this

1
0
0

@bmzimmermann @catsalad Tabs are the way, the truth, and the life: no man cometh unto the Father, but by tabs.

Seriously, though, it’s an accessibility thing, especially in tools which don’t have code folding for the language you’re working in. Tabs are the only acceptable way to indent.

0
1
0

@rdnielsen @bazkie @gwenthefops @catsalad yeah, my *sv parser also eats what i call ascii separated values, asv.

1
0
0

@catsalad Do people seriously not understand that spaces vary wildly depending on kerning and etc and tabs give a guarantee that it will do what you wanted it to do?

1
0
0

@nazokiyoubinbou @catsalad Kerning only really happens in proportional fonts, and most people still code in fixed-width.

Then there are the real psychopaths, using fixed-width fonts with ligatures to get special glyphs for, e.g, β€œ==>β€œ.

0
2
0

bazkie πŸ‘©πŸΌβ€πŸ’» bitplanes 🎡

@breizh @catsalad blobcatfineπŸ”«

0
0
0

bazkie πŸ‘©πŸΌβ€πŸ’» bitplanes 🎡

@walnut @catsalad oh damn I am not knowledgeable enough on other languages

0
0
0

@catsalad @nixCraft What kind of monsters use spaces instead of tabs? 😳

0
0
0

@catsalad i think i actually had this configured at one point

0
0
0

@yetzt @bazkie @gwenthefops @catsalad I still use all those ASCII (AKA Unicode C0) control codes for data exchange and storage fairly regularly. For serial transmission I use an ECMA-24/ECMA-37 compliant protocol that implements DLE, SOH, STX, ERX etc. And for both transmission protocol and ASCII/Unicode data files I use all the separator codes (FS, GS, RS and US) to structure the data. This proper use of ASCII control codes was common practice in early industrial automation with protocols like DF1.

Anyways, for me I am a "spaces guy" for source code, from my extensive use of Python and FORTRAN before that where consistent indents are not only more maintainable but in some cases mandatory (early FORTRAN compilers mandated fixed number of spaces from the punch card days etc.)

HOWEVER, for *non-code* output or UIs I advocate for TABs. TAB is a control code meant to control output on TTYs (advance to next tab stop) and it gives the end user the ability to adjust the presentation to their own needs.

0
0
0

@sodiboo @catsalad My editor automatically converts tabs to spaces

0
0
0

@catsalad who are these people who prefer spaces? Do they not use vi like all the best programmers?

0
2
0

@gwenthefops @catsalad "zero width joiner" Unicode character also would like to enter the chat about character sorcery @bazkie

0
0
0

@yetzt @rdnielsen @bazkie @gwenthefops @catsalad CSV was originally "Character Separated Value" and used ASCII 28 to 31; File Separator, Group Separator, Record Separator and Unit Separator respectively to indicate the boundaries between data items and groups.

0
0
0
@catsalad It breaks my heart to see so many people on the internet being wrong πŸ˜’πŸ™ƒ
0
1
0

@catsalad TBH my opinion is more of "Either one, but ONLY one. Never ever mix both, that way lies madness.".

0
0
0

@catsalad I don't know what I find more shocking - that spaces beat tabs or the 111% participation rate.

0
2
0