Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 2 years agoBill is a pro grammersh.itjust.worksimagemessage-square96fedilinkarrow-up1803arrow-down198
arrow-up1705arrow-down1imageBill is a pro grammersh.itjust.worksCows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 2 years agomessage-square96fedilink
minus-square18107@aussie.zonelinkfedilinkarrow-up8arrow-down1·2 years agoA better comment would be delay in seconds as that is the one thing not obvious from glancing at the code.
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up13·2 years agoOr just name the variable delaySeconds if you really want to store it as an int. Bonus is that every use of the variable perfectly communicates what it is.
A better comment would be
delay in secondsas that is the one thing not obvious from glancing at the code.Or just name the variable
delaySecondsif you really want to store it as an int. Bonus is that every use of the variable perfectly communicates what it is.