257m@lemmy.ml to Programming · 1 year agoWhat are your programming hot takes?message-squaremessage-square897fedilinkarrow-up1353arrow-down114
arrow-up1339arrow-down1message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming · 1 year agomessage-square897fedilink
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.