devilish666@lemmy.world to Programmer Humor@programming.dev · 3 months agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square88fedilinkarrow-up1249arrow-down112
arrow-up1237arrow-down1imageAaargh....my eyes......my eyes......lemmy.worlddevilish666@lemmy.world to Programmer Humor@programming.dev · 3 months agomessage-square88fedilink
minus-squareEnoril@jlai.lulinkfedilinkarrow-up12arrow-down1·edit-23 months 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-squarejoshfaulkner@lemmy.worldlinkfedilinkarrow-up2·3 months 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”?
minus-squarestockRot@lemmy.worldlinkfedilinkarrow-up1·3 months 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
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”
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 ^^
Kreed rule.
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