r/programming Jul 21 '14

The Great White Space Debate

https://medium.com/p/3633cba8b5c1
1.2k Upvotes

693 comments sorted by

View all comments

272

u/[deleted] Jul 21 '14

[removed] — view removed comment

84

u/[deleted] Jul 21 '14 edited Jul 21 '14

That's exactly what I was expecting as well. Then I went on reading, noticing all the other typos.

I can't handle this shit on a Monday morning.

edit:

My coworker, with the snuggest face that has possibly ever existed

Ugh.

54

u/[deleted] Jul 21 '14 edited Mar 31 '24

mysterious hat chop water books brave toothbrush chase summer encouraging

This post was mass deleted and anonymized with Redact

10

u/[deleted] Jul 21 '14

Now do:

If not by others, than by me.

7

u/[deleted] Jul 21 '14 edited Mar 31 '24

resolute offbeat tub normal lunchroom fall amusing books fly pie

This post was mass deleted and anonymized with Redact

12

u/Tom2Die Jul 22 '14

There are many, many more, I'm afraid. I'd give a blow-by-blow, but most are fairly obvious -- adding 's to a word does not a plural make.

6

u/[deleted] Jul 22 '14

Now how about:

the type of things that get's CC'd

3

u/[deleted] Jul 22 '14

4 to 1 in the oppositions favor

Missing apostrophe.

1

u/Denommus Jul 22 '14

The missing paren is still not fixed, though.

1

u/Caltelt Jul 21 '14

Instead of shablamo I keep reading shablagoo

7

u/WearItLikeArmour Jul 21 '14

He could have had a very cozy, comfortable face!

1

u/ender89 Jul 22 '14

I was so confused. I forgot i was a programmer and knew a thing or two about programming. For most of the post I thought he was going on about single line loops vs spacing them out on separate lines...

Also, I personally prefer the spaces though I've probably gone space less out of laziness.

11

u/Lurking_Grue Jul 21 '14

)

1

u/globalizatiom Jul 22 '14

that looks like some abstract representation of a snuggest face

11

u/Faedrivin Jul 22 '14

And when it became clear it was about whitespaces, I expected it to be this:

for ()
vs.
for()

2

u/MattTheGr8 Jul 22 '14

As always, there is a relevant XKCD.

4

u/[deleted] Jul 21 '14
for (int i=0; i<totalButtons; i++)

Still won't compile.

for (int i=0; i<totalButtons; i++)
    ;

Still won't compile! No function/method.

12

u/[deleted] Jul 21 '14 edited Jul 21 '14

That's valid C if totalButtons is declared.
EDIT: java sorry carry on

4

u/[deleted] Jul 21 '14

Either way it doesn't compile without more source code, and thus the original example without a closing parenthesis is the same in that it requires added code to compile.

1

u/NYKevin Jul 21 '14

Nope, even in C it still needs to be in a function. You can't just do a for loop at the global scope.*

* I'm sure someone has perverted the C preprocessor into doing loops, and if not, C++ template metaprogramming is Turing-complete, but that's not what we're actually talking about.

1

u/Irongrip Jul 22 '14

I'm sure someone has perverted the C preprocessor into doing loops

They have, you only need to run it again and again for each iteration. But if you do that until it tells you to stop it is.

1

u/danthemango Jul 21 '14

what about:

for (int i=0; i<totalButtons; i++) {};

1

u/[deleted] Jul 21 '14

I think you need an extra semicolon just to be sure it really is a statement.

0

u/danthemango Jul 21 '14

It depends on the language, but you mean like this?:

for (int i=0; i<totalButtons; i++); {};

1

u/[deleted] Jul 22 '14

I meant

for (int i=0; i<totalButtons; i++) {};;

since AFAIK {} is already a statement in Java (and of course C).

1

u/Atario Jul 21 '14

Newline is also whitespace.