Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
yearsLeft would be undefined. or set to a wrong number. This would cause bugs where a person is dead but still has yearsLeft. (this would work with subscriptions.
-
myss45095y@0x0000FFFF it all depends how you look at it. Maybe he was in a future and knows exact day when he'll die 😅
-
zankar20755yBut... Only if they die on their birthday. Or it's not their birthday at all but their somehow predicted death-day...??
Wait I'm confused -
zankar20755y@K4R71K i understand that but the number doesn't necessarily have to change on a birthday unless they die on their birthday :)
-
saas13045y@zankar okay. It could be...
@highlight
maxAge = 80;
currentAge = 40;
yearsLeft == 40;
yearsLeft--; // on birthday;
/* Assuming that the guy believes in God and thinks that he was born with his fate */
There are two kinds of people:
Age++
&
random