DEV Community

Cover image for Meme Monday
Ben Halpern
Ben Halpern Subscriber

Posted on

Meme Monday

Meme Monday!

Today's cover image comes from last week's thread.

DEV is an inclusive space! Humor in poor taste will be downvoted by mods.

Top comments (28)

Collapse
 
jjbb profile image
Jason Burkes

meme monday

Collapse
 
sreno77 profile image
Scott Reno

Too real...

Collapse
 
ben profile image
Ben Halpern

Let's kick things off with this week's awful AI-generated meme

Meme monday

Collapse
 
ben profile image
Ben Halpern

Don't you just lche it?

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

so nus libdares to use! I lche ipen source so much. Oio source is so much better.

Collapse
 
best_codes profile image
Best Codes

I used AI to generate a DEV post!

post

Collapse
 
ansilgraves profile image
Ansil Graves

meme monday

Collapse
 
cwrite profile image
Christopher Wright

meme monday

Collapse
 
duncan_true profile image
Dun

meme monday

Collapse
 
chariebee profile image
Charles Brown

meme monday

Collapse
 
schemetastic profile image
Schemetastic (Rodrigo)

You are right! BUUUUT!!!

Then stuff like this happen:
ZeroToHeroGuy79: “Wait a minute cowboy! You didn't do type verification on this one, better try this one:”

if (typeof x == "number"){
   return  x % 2 !== 0
} else {
    throw TypeError(`Value on x is not a number, is: ${typeof x}`)
}
Enter fullscreen mode Exit fullscreen mode

But then someone will tell you:

Brogrammer1024: hol'up brother! typeof is not that reliable, and you can not trust the user, NaN values (Not a number) are considered numbers with typeof and that method will always return true.

DarkDenoBunVader4: “Yeah, the same will happen with Infinity and -Infinity”

Better try this one:

if (typeof x == "number" && !isNaN(x) && isFinite(x)){
   return  x % 2 !== 0
} else {
    throw TypeError(`Value on x is not a valid number`)
}
Enter fullscreen mode Exit fullscreen mode

And it can go on on forever.

Collapse
 
best_codes profile image
Best Codes

x % 2 !== 0 can be wrong. Sometimes, x is not an integer, due to JavaScript's floating point bug.

console.log(NaN % 2 !== 0); // => true
console.log('abc' % 2 !== 0); // => true
Enter fullscreen mode Exit fullscreen mode

Those don't work either. :D

Collapse
 
sawyerwolfe profile image
Sawyer Wolfe

meme monday

Collapse
 
fred_functional profile image
Fred Functional

meme monday

Collapse
 
hbthepencil profile image
HB_the_Pencil

Ah, the meme that is actually only funny to people who know what it means... I could show my mom some of these and she would laugh. I'd be the only one laughing at this one XD

Collapse
 
avanichols profile image
Ava Nichols

meme monday

Collapse
 
jerryhargrovedev profile image
Jerry Hargrive

meme monday

Collapse
 
richmirks profile image
Richard Mirks

meme monday

Collapse
 
blenderman profile image
BBM

meme monday

Collapse
 
youngfra profile image
Fraser Young

meme monday

Collapse
 
bernert profile image
BernerT

meme monday