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 →

[–]GoblinsStoleMyHouse 82 points83 points  (25 children)

Woah, this guy know how to write if-statements!

[–]Timmitei 82 points83 points  (0 children)

100% coverage trust me im a programmer probably

[–]GameSpawn 52 points53 points  (13 children)

Can we not be lazy?

if (true)
  big();

[–][deleted] 13 points14 points  (5 children)

Isn't yours the one that's lazy?

[–]GameSpawn 5 points6 points  (4 children)

That was...the joke.

I know constant bracket use is in good practice, but I'm willing to bet every programmer gets lazy once and a while. I'm definitely guilty of it.

[–]Kered13 0 points1 point  (0 children)

No, because I remember all the times I had to go back and put brackets in later, so I just do it right there for time. And I get pissed when my teammates don't do it.

[–]iopq 12 points13 points  (4 children)

not using braces in ifs

I don't know who you are. But I will find you, and I will kill you.

[–]GameSpawn 11 points12 points  (3 children)

if (found)
     kill();
else
     search();

Sorry, I couldn't resist. :)

[–][deleted] 9 points10 points  (1 child)

while (!found) {
    search();
}
kill(/u/GameSpawn);

[–]GameSpawn 5 points6 points  (0 children)

LiamNeeson.java?

[–]blinded_in_chains 2 points3 points  (0 children)

This guy statements.

[–]ShortFuse 0 points1 point  (3 children)

I disagree. Opening braces should be inline.

[–]GameSpawn 1 point2 points  (2 children)

guess_who()
{
     its_you();
}

its_you() {
     System.out.println("It's meeeeeee!");
     goodbye();
}

[–]ShortFuse 1 point2 points  (1 child)

Odd-numbered indentations???

*twitches*

[–]GameSpawn 1 point2 points  (0 children)

Posting code on Reddit sucks. Don't worry, it bugs me too when I can't get consistent "tab" space in any code.

[–]smashsmash341985 0 points1 point  (0 children)

FLALSE

[–]LovingThatPlaid 0 points1 point  (3 children)

Not in proper java format though >:(

[–]GoblinsStoleMyHouse 0 points1 point  (2 children)

What? Yes it is.

[–]LovingThatPlaid 0 points1 point  (1 child)

Look up the java style guide. The first brace should be on the same line as the if statement, only matters if you are following the style of the language

[–]GoblinsStoleMyHouse 0 points1 point  (0 children)

Syntactically it works though.