257m@lemmy.ml to Programming@programming.dev · 1 year agoWhat are your programming hot takes?message-squaremessage-square874fedilinkarrow-up1345arrow-down113
arrow-up1332arrow-down1message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming@programming.dev · 1 year agomessage-square874fedilink
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.