Tabs vs Spaces

Another thread made me curious about the age old debate...

Fight!

  • Tabs
  • Spaces

0 voters

But why fight when you can have either?
image

2 Likes

Just meant for humor @Ryan780

1 Like

I know....but I figured I'd be the peacemaker for a change. :clown_face:

3 Likes

Tabs...

I've been coding since I used 5 1/4" floppies to store code.. Back then whitespace mattered and that's how we were taught. It has just kinda stuck since.

1 Like

Spaces. :slight_smile:

I do too much python to give any other answer.

(yes, I know you can do tabs in python, but that is a a never ending cluster *** in my opinion and leads to nothing but trouble)

1 Like

I prefer tabs converted to spaces on save. Each darn editor seems to have their own defaults that drive me crazy. I about 10 years ago I settled on spaces with 4 spaces per tab.

1 Like

Ok Dad (sorry, couldn't resist) :rofl:

3 Likes

I will turn this hub around and go straight home!!! :wink: :rofl:

3 Likes

I welcome any and all whitespace!

1 Like

No tabs or spaces. For that matter, no CRLF if you can put multiple commands on the same line. Most of my PCs only have 8,589,934,592 bytes of memory so we need to make code as efficient as possible. Screw readability!

1 Like

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

(shamelessly copied from the BrainF**K Wikipedia page - Hello World!)

1 Like

Gotta love obfuscated code. Programmers Quote: "If it was hard to write, it should be hard to read."

4 Likes

What is a tab, but a mere family of spaces.

—Aristotle’s thoughts on Syntax and Abbreviation (365 B.C.)

1 Like

Wow.. this is closer than I thought

I have not had a TAB in decades.
The same goes for FRESCA.

5 Likes

:point_up_2::rofl::rofl:

I use tabs... because I make sure my editor of choice (Notepad++) is configured to automatically put 4 spaces for tabs. So, both?

1 Like

When I’m coding I use tabs
Before release all my code gets all the tabs, line breaks & white space removed.
The code looks horrible then.
(But why should I make it easy to read or copy?) :crazy_face:

Now I wait for the complaints :slight_smile:

Andy

2 Likes

You are just "optimizing" for greater efficiency.. :rofl:

1 Like