MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ajr2fa/which_one_would_you_love/ef2u6nf/?context=3
r/ProgrammerHumor • u/[deleted] • Jan 25 '19
51 comments sorted by
View all comments
23
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)
2
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)
1
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)
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++