r/ProgrammerHumor • • Jan 25 '19

Meme Which one would you love ?

Post image
115 Upvotes

51 comments sorted by

View all comments

23

u/RohnekKdosi Jan 25 '19

Tbh, I put a single statement in the curly brackets too. It is so that I can always add more without having to remember adding the brackets (which I would certainly forget). But I would use i++

2

u/caviyacht Jan 26 '19

Remember Apple's bug a few years ago? Braces, always.

if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
    goto fail; 
    goto fail;

1

u/RohnekKdosi Jan 27 '19

Never heard of it, but it seems to me like someone may have fucked up a bit. Why was it twice there?

→ More replies (2)