257m@lemmy.ml to Programming@programming.dev · 1 year agoWhat are your programming hot takes?message-squaremessage-square907fedilinkarrow-up1351arrow-down114
arrow-up1337arrow-down1message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming@programming.dev · 1 year agomessage-square907fedilink
minus-squarealcoholicorn [comrade/them, doe/deer]@hexbear.netlinkfedilinkEnglisharrow-up2·edit-21 year agoI use all 3. If it’s very short and there’s 2 or more in a row, I’ll put it all in one line. If there’s a bunch of nested if statements, I’ll use the second. If neither of those conditons, I’ll use the first.
I use all 3.
If it’s very short and there’s 2 or more in a row, I’ll put it all in one line.
If there’s a bunch of nested if statements, I’ll use the second.
If neither of those conditons, I’ll use the first.