Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Tabs vs Spaces

Name: Anonymous 2012-10-19 2:50

I personally prefer spaces for indentation.
Why?
Because i believe the best way to make my source code readable is to have
it displayed the same on all editors regardless of what tab-settings they're using.

Also, using only tabs tend to fuck up alignment, so then your only option
is to mix it with spaces, and you end up with a mud of tabs and spaces.. that
i up until now have tended to deal with using "unabbify" on the file, and then forget about it.

My friend however, accuses me for being a selfish piece of shit
for not using a "variable" indention consisting of tabs.
>Not everyone wants your 4 spaces.
ok.jpg

Is he right?

Name: Anonymous 2012-10-19 2:52

Your use of noko and ``filename meme'' leads me to believe you got lost on your way to /g/.

Name: Anonymous 2012-10-19 2:55

>>>2
I posted there, but the reply rate wasn't satisfactory.

Name: Anonymous 2012-10-19 3:29

>indenting
>letting other people see your code
>not single-line obfuscating
do you even prog?

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-10-19 4:24

One space is enough.

Easily replaced with tabs if you want, or vice-versa.

Name: Anonymous 2012-10-19 4:57

Tabs for indentation, spaces for alignment. It's the 21st century, people.

Name: Anonymous 2012-10-19 5:40

True GitHubbers use two spaces to indent.

Are you a true GitHubbers?

Name: Anonymous 2012-10-19 6:23

>>7
No, because git is shit.

Name: Anonymous 2012-10-19 7:19

>>8
Sure git is shit, but is it SVN tier shit?

Name: Anonymous 2012-10-19 12:58

Because i believe the best way to make my source code readable is to have
it displayed the same on all editors regardless of what tab-settings they're using.
I see a newbie who never programmed anything with another person.

The ultimate tabs-vs-spaces solution is >>6.  It's not that fucking hard.

- use tabs for indentation,
- use spaces to place things inside a single indentation level.

E. g.
[code]
var shit = new Shit(),
∘∘∘∘fecalMatter = [new Shit(), new Shit()],
∘∘∘∘flag;
if (shit.sucks()) {
   →   turds(argument, 0, 0, 0, 0, 0, 0, 0,
   →   ∘∘∘∘∘∘0, 0, 0, 0, 0, 0, 0);
   →   if (condition) {
   →      →   explode();
   →   }
}

Don't change these.
Name: Email:
Entire Thread Thread List