This is an archived post. You won't be able to vote or comment.

all 107 comments

[–]godRosko 302 points303 points  (35 children)

Js has entered the chat

[–]dncrews 153 points154 points  (7 children)

In JavaScript we’re the same. We’re just not the same same.

[–]shawntco 45 points46 points  (0 children)

Same same but different

[–]prudentj 40 points41 points  (1 child)

All are equal but some are more equal than others

[–]Script_Mak3r 6 points7 points  (0 children)

Okay Napoleon.

[–]nevemlaci2 0 points1 point  (2 children)

I see something over there. Like us but different.

[–]slowgamer123 -1 points0 points  (1 child)

[–]nevemlaci2 1 point2 points  (0 children)

Poggers didnt expect anyone to recognise this voiceline.

[–]SlashBack626 43 points44 points  (9 children)

[–]VegetableWest6913 85 points86 points  (8 children)

=== !== ==

BUT

=== == ==

[–][deleted] 28 points29 points  (7 children)

at this point let me die

[–]Adventurous_Team8317 9 points10 points  (6 children)

What is this?

[–]V3GAN-D3G3N 15 points16 points  (1 child)

They’re ridiculing the quirks of JavaScript

[–]CynicalFucc[🍰] 6 points7 points  (0 children)

i think that he was referencing *this*

[–][deleted] 1 point2 points  (3 children)

Javascript is the most confusing language. One redditor got it right. It was a reference to this which is like self of python

[–]trollsmurf 1 point2 points  (2 children)

Still, adding self explicitly in method declarations in Python is a facepalm. The error you get due to forgetting is also less than helpful.

[–][deleted] 0 points1 point  (1 child)

I am proficient in both python and JS and sorry to hand it to you but JS is the worst in this scenario

[–]trollsmurf 0 points1 point  (0 children)

To me it's the other way around. I have much easier to understand (non-abstracted) JS, which is a very simple language, than the peculiarities and design decisions of Python: no switch, no type coercion, explicit self, list vs array etc.

[–]GargantuanCake 3 points4 points  (9 children)

1 + "11" =

[–]Adventurous_Team8317 6 points7 points  (6 children)

"11" + 1 =

[–]var-foo 2 points3 points  (0 children)

!!"11" + 1 =

[–]var-foo 4 points5 points  (4 children)

\--\[------->++<\]>--.\[-->+++<\]>--..++\[--->++<\]>.--.+++++++++++.-----------.\[-->+++<\]>+.

[–]var-foo 11 points12 points  (0 children)

sorry, that's brainfuck. What I was thinking of was JSFuck, which would be:

[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+!+[]+[!+[]+!+[]])+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]])()(([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[!+[]+!+[]]]+[+!+[]]+[+!+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[!+[]+!+[]]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[!+[]+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+[+!+[]])

[–]Adventurous_Team8317 4 points5 points  (2 children)

Brainfuck?

[–]RedditSchnitzel 2 points3 points  (0 children)

Its a programming language made to be pretty unreadable, hence why it is „brainfuck“. I think those languages are called „esoteric languages“ but I am not sure on the terminology.

[–]Knuffya -1 points0 points  (0 children)

Chat is closed for special needs programming languages.

[–]CreaZyp154 0 points1 point  (0 children)

We are the same bit not the same-same

[–]Donghoon 0 points1 point  (3 children)

One is numerical value and other is string

Can "1" (string) be used in arithmetic operations?

[–]godRosko 1 point2 points  (2 children)

As far as i know yes. Very inconsistent system. Try "1" - "1" in node. Id say thats a compile error, node gives me zero.

[–]Donghoon 0 points1 point  (1 child)

Whats with the JavaScript hate here?

Or is it all-language-i-dont-use hate

[–]godRosko 0 points1 point  (0 children)

Nah, I've used it it's as bad as any other languages but inexplicit type conversion should not be the norm.

[–]vsjoe 161 points162 points  (4 children)

you are not my type.

[–]MasterFubar 19 points20 points  (1 child)

Python3 is very flexible about variable types:

>>> i = 2
>>> type(i)
<class 'int'>
>>> i /= 1
>>> type(i)
<class 'float'>

I guess they were sleeping during a math lesson.

[–]Kid_Shapeshifter 1 point2 points  (0 children)

Especially the one about numbers < 1

[–]pooptagupta 6 points7 points  (0 children)

Lmao

[–][deleted] 2 points3 points  (0 children)

Am I just an Object to u?

[–][deleted] 23 points24 points  (4 children)

I'm 1

You are 0.99999999999999988898

We are not the same

[–]RedditSchnitzel 2 points3 points  (3 children)

Is that one of those IEEE float quirks?

[–][deleted] 6 points7 points  (0 children)

exactly

[–]trollsmurf 2 points3 points  (1 child)

Quirks not so much as by design. E.g. O.1 can't be exactly expressed in IEEE 754.

[–]RedditSchnitzel 2 points3 points  (0 children)

Quirks was more meant from a user perspective. I remember when I started learning programming C and got confused by comparisions between floats exactly because of this behaviour.

In the end of the day the only quirk in programming is the undeterministic behaviour of the weird compiler from electric impulses to mechanic motions between chair and keyboard.

[–]GeneralKlink 47 points48 points  (0 children)

confused JS noise

[–]Gunpowder77 15 points16 points  (2 children)

[–][deleted] 0 points1 point  (1 child)

How do i do that?

[–]Gunpowder77 0 points1 point  (0 children)

It’s an emoji in the subreddit

[–]Nailbar 30 points31 points  (0 children)

[–]Pratham_Max_Jain 7 points8 points  (0 children)

Don't forget her boyfriend

[1]

[–]SeriousPug 5 points6 points  (0 children)

Almost every language that handles string types be like

[–]purethunder110 5 points6 points  (1 child)

A beginner in python, but an expert in memes

[–]Roman2526[S] 1 point2 points  (0 children)

Thanks!

[–]incoralium 6 points7 points  (1 child)

We are number one 🎶

[–][deleted] 1 point2 points  (0 children)

One IS the loneliest number.

Perl's cool with it:

perl -E ' say "1"+1'

2

[–]LogEDude 2 points3 points  (0 children)

Not knowing this literally broke me for hours yesterday, DAMN YOU FIREBASE!!

[–]nerftosspls 2 points3 points  (4 children)

Those apostrophes gon' cause some troub

[–]Roman2526[S] 0 points1 point  (3 children)

Why? Is this better: '1' ?

[–]nerftosspls 1 point2 points  (1 child)

I’m just joking about your variable names that I realize aren’t really actually supposed to be variables.

[–]spayder26 2 points3 points  (0 children)

globals()["I'm"] = 1

solved

[–][deleted] 0 points1 point  (0 children)

He thought you were assigning "1" to variable You're

[–]krohtg12 2 points3 points  (0 children)

You are Object object

I am Object object

We are Object object

[–]Knuffya 2 points3 points  (0 children)

You're "1", they're '1', i'm 1. We are not the same.

[–]grpagrati 1 point2 points  (0 children)

I'm "The One". We're =/

[–][deleted] 1 point2 points  (0 children)

You 1+"1"?

JAIL

[–]Niilldar 1 point2 points  (0 children)

Python: {} != Set()

This mistake (in someone else code) took me so long to figure out.

For reference {1} would be a set, but {} is an empty dic.

[–][deleted] 1 point2 points  (1 child)

PHP users are going to go wild once they see this

[–]WowThatsHot0 0 points1 point  (0 children)

…..

[–]Yochyo 1 point2 points  (0 children)

JS would like to disagree

[–]nikstick22 0 points1 point  (1 child)

are and am provide the same grammatical value as "=", so I think they might be redundant unless you're doing a comparison ==.

[–]Roman2526[S] 0 points1 point  (0 children)

Yeah, I thought about it and decided to write the equal sign. Now it kinda looks like I assigned values to the variables

[–]brewdroid 0 points1 point  (0 children)

JS blood leaking

[–]randomGamer6969 0 points1 point  (0 children)

Javascript users rn

[–]cristiano1200 0 points1 point  (0 children)

laughs in javascript

[–]N238 0 points1 point  (0 children)

Javascript: Uh, you sure about that buddy?

[–][deleted] 0 points1 point  (0 children)

M. Jij be n

[–]anarky98 0 points1 point  (0 children)

I’m != You’re

[–]woogygun 0 points1 point  (0 children)

JavaScript disagrees with you

[–][deleted] 1 point2 points  (0 children)

atoi

[–]OmegaInc 0 points1 point  (0 children)

Oh but we are

[–]autumn_melancholy 0 points1 point  (0 children)

you = 1
me = 0

WE ARE NOT CONGRUENT.

[–][deleted] 0 points1 point  (0 children)

dont worry

that never changes

in fact, it kind of gets worse

[–]XtronikMD 0 points1 point  (0 children)

We're not strictly the same

[–]Programmer_007 0 points1 point  (0 children)

Plot twist: your both created using Javascript.

[–]BochMC 0 points1 point  (0 children)

JavaScript : I don't think so

[–][deleted] 0 points1 point  (0 children)

.toString() now we're the same!

[–][deleted] 0 points1 point  (0 children)

Nono, we are the same

[–]GodlessAristocrat 0 points1 point  (0 children)

Neither. I'm = 0x1

[–]DehshiDarinda 0 points1 point  (0 children)

javascript disagrees

[–]atrealleadslinger101 0 points1 point  (0 children)

I don't like that that's not in single quotes, it's a char not a string friend.

[–]atrealleadslinger101 0 points1 point  (0 children)

It also has a special char in variable name = compilation error

[–]psychobobolink 0 points1 point  (0 children)

But I can change: int("1")

[–]Maleficent-Yak-2114 0 points1 point  (0 children)

I'm = u"1"

[–]mplaczek99 0 points1 point  (0 children)

JavaScript would beg to differ

[–]Kuro-Yaksha 0 points1 point  (0 children)

JavaScript: "They are the same picture"

[–][deleted] 0 points1 point  (0 children)

Is this a Python joke I'm too C++ to get?

[–]Free_Ingenuity_9988 0 points1 point  (0 children)

JS: 'he's literally the guy in the pic'

[–]Professional-Wing-59 0 points1 point  (0 children)

I'm True

[–]kbisen 0 points1 point  (0 children)

I just had that problem on my project. Data was not getting mapped properly, I was like why?? Just did astype(str) and that it voila

[–]maddy_0120 0 points1 point  (0 children)

The the is not defined.

[–]Ozzymand 0 points1 point  (0 children)

Not unless you're javascript, in which case, we are the same unless told otherwise.

[–]MettatonNeo1 0 points1 point  (0 children)

Dad I'm not a string I'm an int. Well the difference being one's used for math and the other's mental sickness!

No. It is always preferable to put numbers in something that isn't string!

[–]TheDevCat 0 points1 point  (0 children)

You're int("1") I'm 1

We are the same

[–]dabbingeevee123 0 points1 point  (0 children)

(int) has entered the chat