nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · edit-21 year agotrashmessage-square43fedilinkarrow-up1597arrow-down16
arrow-up1591arrow-down1message-squaretrashnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · edit-21 year agomessage-square43fedilink
minus-squarewtry@lemm.eelinkfedilinkarrow-up0·edit-21 year agoI can’t believe he needs that much code for this: bool iseven(int number){ if (number % 2 == 0){ return true; } else { return false; } }
minus-squareTopRamenBinLaden@sh.itjust.workslinkfedilinkEnglisharrow-up1·1 year agoI like the example in the post better. It is more clear as to what is going on to an experienced dev like me. What’s this 2 percent nonsense?
I can’t believe he needs that much code for this:
bool iseven(int number){ if (number % 2 == 0){ return true; } else { return false; } }
I like the example in the post better. It is more clear as to what is going on to an experienced dev like me. What’s this 2 percent nonsense?