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
-
c3ypt1c96547yThis kind of reminds me of my friend who wanted to add complexity to his code even though it was totally redundant to do so.
-
I assume this is a joke? I'm missing something. Is it supposed to be a comical example of overly verbose and complicated ways of achieving a trivial task. Also, and this may be deliberate, your array of evens is full of odds.
-
Bimpfi4307yIt's currently a meme. Especially in https://reddit.com/r/... there a many isEven functions which are more complicated as necessary
-
@irene but you cant do log -1. but yeah it is wrong. he tests for !<= 0 and then adds 1. But this whole function is rubbish so...
Related Rants
My own implementation for calculating if a number is even.
Full Code: https://ghostbin.com/paste/fkp6j
joke/meme
joke
my implementation
even