DEV Community

Cover image for Meme Monday
Ben Halpern
Ben Halpern

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 (26)

Collapse
 
max24816 profile image
Max

Image description

Collapse
 
ben profile image
Ben Halpern

omg

Collapse
 
juanfrank77 profile image
Juan F Gonzalez

This only applies with C++.

Collapse
 
sherrydays profile image
Sherry Day

meme monday

Collapse
 
rasheedmozaffar profile image
Rasheed K Mozaffar

Image description

Your majesty 👑

Collapse
 
nlxdodge profile image
NLxDoDge

Image description
I am a man of evil I guess >:)

Collapse
 
jjbb profile image
Jason Burkes

meme monday

Collapse
 
schemetastic profile image
Schemetastic (Rodrigo)

Hahahahah, I know the feeling... just add a position value to your element and maybe a display value.

Collapse
 
dreama profile image
Dream

meme monday

Collapse
 
theaccordance profile image
Joe Mainwaring • Edited

Image description

A poetic mashup for someone so obsessed with the letter X

Collapse
 
juanfrank77 profile image
Juan F Gonzalez

Professor X?

Lol

Collapse
 
j471n profile image
Jatin Sharma

No one.

JavaScript:

Image description

Collapse
 
cmgustin profile image
Chris Gustin

I know I’m being the guy that overexplains the joke, but in case anyone new to JS sees this and is curious about what’s going on:
The + operator in JS can either be addition or string concatenation. JS decides based off of the types you’re trying to add together. JS may also change the type of a variable on the fly if it thinks what you’re trying to do doesn’t make sense.

  • Line 1, two numbers so the “+” sign is addition
  • Line 2, two strings so the “+” sign concatenates them (same as “Hello “ + “world” would result in “Hello world”)
  • Line 3, first variable is a string so the “+” concatenates. JS coerces the second variable, a number, to a string so the concatenation will work
  • Line 4, first variable is a number, and the extra “+” sign converts the second variable, a string, to a number, so the output is addition. In JS, you can put a “+” before a variable to convert it to a number, like “const num = +my_var;”
  • Line 5, all variables are numbers so the “+” is for addition
  • Line 6, all three variables are strings, so the “+” concatenates the first two. However, the “-“ operator is always used for subtraction so JS coerces the concatenated “33” and the last “3” string to numbers in order to complete the subtraction operation, giving 30

These quirks can be annoying, especially starting out, but as you learn the language and understand how the dynamic typing system works, it gets easier. The important thing is to always know the types of your variables and make sure they’re explicitly typed (e.g. numbers are numbers and not strings that look like numbers) rather than relying on JS’ built-in type coercion, which can cause unexpected bugs.

Collapse
 
bernert profile image
BernerT

meme monday

Collapse
 
nlxdodge profile image
NLxDoDge

I always wondered what the default IDE is...

Is that notepad? But it's not an integrated development environment right?
Intellij is the standard, but not by default installed on our computers where I work.

Collapse
 
saptakbhoumik profile image
SaptakBhoumik

I think the memeis referring to any ide without any modification(like a freshly installed version)

Collapse
 
dinerdas profile image
Diner Das

meme monday

Collapse
 
drsensor profile image
૮༼⚆︿⚆༽つ

Anything build in Rust is blazingly fast by default
batman blazing slap

Collapse
 
duncan_true profile image
Dun

meme monday

Collapse
 
jaredgeddy profile image
Jared

Makes you wonder who really created that narrative...

Collapse
 
nchandan profile image
NChandan

Image description

Collapse
 
highcenburg profile image
Vicente G. Reyes

Image description

Collapse
 
nlxdodge profile image
NLxDoDge

Image description

Never did this myself of course 🙄🙈

Collapse
 
potuss7 profile image
Pedram Riahi

The only thred I follow every week!

Collapse
 
khairunnisaas profile image
Khairunnisaas

me too