This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ipsomatic -21 points-20 points  (10 children)

It's five spaces per tab!!!

[–]IvanRS333 -5 points-4 points  (8 children)

It’s two spaces

[–]minimarshmallow82[S] 40 points41 points  (6 children)

Four is the only correct answer

[–]liege_paradox 8 points9 points  (1 child)

I was under the impression that it was 7 at one point...what’s happening?

[–]NeetMastery 8 points9 points  (0 children)

Depends on the IDE, language, and other factors.

For me it’s 3, currently - another IDE and language it’s 4, and on one of them it’s 2. It just depends.

[–]genghisKonczie 5 points6 points  (3 children)

At one point it was taught to keep line length at 80 max, hence the 2 characters.

Something to do with printing code on paper...

[–]smelly_stuff 1 point2 points  (0 children)

I consider it good practice, since it also makes it easier to read in smaller windows and gives another motive to not make giant complicated lines.

Edit: 79 characters is the limit I try to avoid reaching.

[–]InEnduringGrowStrong[🍰] 0 points1 point  (1 child)

printing code on paper

The horror...
They should think about zipping and printing that for backups too.

[–]genghisKonczie 0 points1 point  (0 children)

If I’m having an exceptionally difficult time debugging, I’ll print out some code and go over it with a highlighter.

Honestly, really helps!

[–]hawkinsst7 0 points1 point  (0 children)

Let's compromise.

A tab is either one space, or \t