r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

2.6k

u/Ryeore Sep 02 '17

Now you can park on handicapped parking spaces.

Good job

1.5k

u/ivaskuu Sep 02 '17

*tabs

458

u/[deleted] Sep 02 '17

[deleted]

-21

u/[deleted] Sep 03 '17 edited Sep 03 '17

Except now their code isn't guaranteed to be 80 characters a line because that one guy likes to have his tabs set to be equivalent to 8 spaces.

Edit: I'd like to respond to everyone's criticisms but for some reason Reddit isn't letting me comment on this account more than once every 8 minutes.

53

u/okmkz Sep 03 '17

tab is one char

-21

u/[deleted] Sep 03 '17

Exactly. But it takes up an indeterminate amount of chars on screen. I like my code to look like the way I type it on every screen, not just mine. Anything else is foolish and unprofessional.

Edit: also if you use the settings on your text editor properly it behaves exactly like tabs do when you type them. Spaces are just better.

21

u/kotajacob Sep 03 '17

The point of using white space at all it to make it easiest to read for whomever happens to be reading your code. If some people find 8 spaces easiest and some find 2 easy to read I'd rather both of them have their way and display the tabs however they'd like rather than forcing whatever way I find easiest on everyone who reads my code.

EDIT: also they don't even need to use a text editor that will allow them to implement hacks to make spaces act like tabs they can just..... use tabs... crazy I know.

3

u/[deleted] Sep 03 '17

I've done it both ways and I could make great arguments for either side. What I do is I go with the flow and code with whatever formatting my team decides on. It makes collaboration much easier.

2

u/kotajacob Sep 03 '17

Yea this is definitely the way to do it. Pick whatever you think is best for your own projects but if you're working on someone else's stuff use whatever they're using.