devilish666@lemmy.world to Programmer Humor@programming.dev · 1 year agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square28fedilinkarrow-up161arrow-down11
arrow-up160arrow-down1imageAaargh....my eyes......my eyes......lemmy.worlddevilish666@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square28fedilink
minus-squareEnoril@jlai.lulinkfedilinkarrow-up1·edit-21 year agoI don’t see the benefit of this long naming convention… It still allow bug to exist… like the fact that, with this code, the player can still play with 0 Hp. Should have been better to put a “if(health <= 0)” instead of “< 0”
minus-squarestockRot@lemmy.worldlinkfedilinkarrow-up1·1 year agoIt sounds like the only concern you have with code is its bugginess, which is short sights. This is unfortunately better documented code than stuff I’ve seen in production. Obviously no one should do this, but let’s not act like there’s no benefit
minus-squarejoshfaulkner@lemmy.worldlinkfedilinkarrow-up1·1 year agoI asked this question on this post on a different instance, but would there be issues being that the code compares a float to integer zero “0”?
I don’t see the benefit of this long naming convention…
It still allow bug to exist… like the fact that, with this code, the player can still play with 0 Hp.
Should have been better to put a “if(health <= 0)” instead of “< 0”
It sounds like the only concern you have with code is its bugginess, which is short sights. This is unfortunately better documented code than stuff I’ve seen in production. Obviously no one should do this, but let’s not act like there’s no benefit
I asked this question on this post on a different instance, but would there be issues being that the code compares a float to integer zero “0”?
Came scrolling for this ^^