Attached: 1rent.jpg (500x281, 19K)
TABS vs spaces
Jonathan Morgan
Other urls found in this thread:
Camden Myers
TABS, then they should be four spaces in length
Ethan Clark
just stop bikeshedding and write some actual working code you mong
Parker Bailey
im just taking a break from work geez calm your tits fag
Dylan Diaz
Tabs
Owen Foster
they should be indistinguishable in a proper code editor
Asher Phillips
tabs
Nicholas Richardson
you mean eight
Landon Roberts
correct, but they should be two spaces.
the choice is very obvious: you use tabs, and a decent editor that handles it for you. the actual characters should be two spaces, but deleting one deletes the two, behaving as if it was a tab.
there is no other choice.
Angel Flores
>:set expand(Your)tab
nothing personal kid
Parker Roberts
Femanon here. What's the difference? I always thought tabs is a shortcut for 4 spaces. uWu
Alexander Perez
using tabs is the pajeet way.
there is no reason why anyone would use tabs over spaces.
David Roberts
People who use spaces purely for indentation earn more on average, 2nd place is people mixing spaces and tabs, people using tabs only earn the least on average of the three groups.
Logan Ross
tits or gtfo
Brayden Evans
tabs, tabstop = 8
Lucas Hernandez
Phd in math
Write code with tabs
Any job I want
$300k starting
Cameron Hill
I'm female too uwu
Carter Collins
>Phd in math
>doesn't know what an average is
ok, dumb neet
Kayden Wilson
fpbp
Adam Martinez
>Phd in some abstract intangible shit
>My skills are marketable, right Jow Forums? right?
Oliver Gomez
Tabs, 16 spaces.
I code exclusively in assembler and I want 4 columns of 16 characters each:
labels, instruction, operands, comment.
Bentley Moore
Silly n00bs
Asher Jenkins
Explain
Brayden Hughes
spaces are kinda more universal
space is space on every platform
when i hit space four times i know it will be four spaces to whoever looks at the code
Lincoln Murphy
spaces are reddit tier
Jackson Gonzalez
tabs for indentation, spaces for alignment, everything else is brainlet tier
Hunter Ward
Tbh that actually sounds comfy
Ethan Moore
>people care about tabs vs spaces rather than if the code meets the requirements of the task
Benjamin Baker
Ayden Martin
>she literally hits space four times
the retards who made this show... normies should be killed
Chase Allen
wtf?
You press your autocomplete button and it puts the spaces or tabs there, nobody presses space multiple times.
Ryder Brooks
This. Tabs and spaces have different meanings, different semantics.
Asher Clark
what the fuck is wrong with you
Carson Taylor
what do you expect from mactoddlers
Hudson Ross
4 spaces
But correct on other parts
Dominic Thompson
2 spaces because style guide and to keep line length
Austin Kelly
Tabs for indentation.
Spaces for alignment.
Also is there any editor that supports nesting indents?
Eg. You have function that have lambda as one of it's arguments, so you indent your code with tabs, align arguments with spaces and then indent body of lambda using tabs again.
Camden Young
In ASCII tabs and space have different encryption.
Dominic Johnson
sorry user you seem to have made a mistake. i clearly wrote that 2 spaces are the correct opinion.
David James
Maybe she's using vi
Brandon Rogers
well not sure about vi but if you are editing in VIM you are most likely using some autocomplete library.
Robert Smith
There is no need in Vim, it handles indentation out of the box.
Michael Parker
I do this in theory, but in practice, I very rarely space-align anything. Almost any situation where I might use space aligning, I usually prefer to not align at all.
Dominic Rodriguez
The correct answer is whatever the standard is for the code base you're working on.
Where I work, one of the founders dictated at the company's inception that all python will use tab indication rather than space indentation.
Sebastian Rivera
>opinion
That's exactly what it is.
4 spaces is the defacto standard.
You can clearly see it's indented, unlike 2 spaces. And it will fit on mostly any screen, unlike 8 spaces
Xavier Anderson
>71200282
Tabs:
+Everyone gets to choose preferred indent size
+Only one character per indent, so less disk space
+Compatible with dumb text editors
And don't give me the
>but code should look the same everywhere
I'f you're not forcing font and color scheme it will look different anyway.
Austin Barnes
tabs
1) exactly one byte
2) can be of any length you want it to be
3) defines one level of identation
if you use spaces for identation you're a pajeet python shitter or Goy pr*grammer
kill yourself
Dylan Kelly
also this
Kevin Morgan
Superior layout. Fuck space alignment.
Jonathan Allen
Tabs for indentation, spaces for alignment.
Brayden Lewis
>Female
How much was the op?
Logan Clark
seething poojeet
Brody Rivera
if your indentation is not also your alignment, go away forever
Liam Martinez
what the hell? you realize it's going to look completely off if your tabstop is different?
Christopher Nelson
No, it won't. That's sort of the point.
Chase Campbell
If unironic, pls kys. Your code deservedly remains unread by actual people
Ian Lee
whatever happens when you hit tab on the keyboard because your IDE should abstract this detail away so you can focus on getting work done.
Asher Ross
i mix them and tabs are 2,3,4,6,8 spaces in random files
Jack Bell
If you don't use tabs youre wrong. Everyone can configure their editor to display tabs in whatever size they want
Christopher Gonzalez
Is this true?
Matthew Young
I think this might be correct
Asher Kelly
this goes here
Brayden Clark
Is that your email to your gay boyfriend? Indeed!
Juan Rogers
Tabs, 3 spaces in length. Fight me.