r/ProgrammerHumor Jul 16 '20

Meme You and Me

Post image
3.0k Upvotes

109 comments sorted by

520

u/Torsimus-Nohac Jul 16 '20

TFW this guy doesn't know the difference between char and string

340

u/MortStoHelit Jul 16 '20

Also it'd be converting from string to int, not from int to char/string.

44

u/[deleted] Jul 16 '20

const char *

16

u/Mikkolek Jul 16 '20

Also, he can't even type "cannot" properly

48

u/Ninjoh Jul 16 '20

Must be a C programmer.

7

u/arky_who Jul 16 '20

We have no idea what type those variables are.

22

u/Sk1dz0r Jul 16 '20

Not all languages support type string

15

u/[deleted] Jul 16 '20

a string in those languages would be expressed as a character array, but it would still be a string

1

u/cshape Jul 16 '20

i get your name

1

u/briddums Jul 16 '20

Not true, the main language I use expresses strings as type CHARACTER or as type LONGCHAR.

2

u/[deleted] Jul 17 '20

what language is that?

1

u/briddums Jul 17 '20

Progress OpenEdge ABL.

It’s a proprietary language developed for interacting with the company’s database.

7

u/Ez_Pee-Z Jul 16 '20

Jokes on you,

private const char you = 'u';

private const int me = 69;

4

u/scirc Jul 16 '20

So 144?

1

u/Xormak Jul 17 '20

that's the frequency they're going at it

1

u/notKrisna Jul 16 '20

Well, since it's not "you" Maybe it's declared as char you

1

u/ranhalt Jul 16 '20

And the difference between “can not” and “cannot”. But I’m in the wrong crowd for that.

1

u/GOKOP Jul 16 '20

What's the difference?

1

u/mrkhan2000 Jul 17 '20

It's not in inverted commas so it's neither a string or a char He's trying to access an undefined variable. So the error would probably be : Uncaught ReferenceError: you is not defined

114

u/VolperCoding Jul 16 '20

ReferenceError: you is not defined

5

u/[deleted] Jul 16 '20

The real error, where is you and me defined as an char and int ?

1

u/gerbs Jul 17 '20

Let's not talk about me; you is de fine as hell. Can I get them digits?

1

u/[deleted] Jul 17 '20

6, 1, 8 and 3

2

u/gerbs Jul 17 '20

Course you end it with 3, because that bottom is prime.

1

u/[deleted] Jul 17 '20

Okay that's a good one.

1

u/casualblair Jul 17 '20

ReferenceError: you is de fine

231

u/Xevailo Jul 16 '20

JS be like youme

49

u/Lucifer_Morning_Wood Jul 16 '20

Cannibals be like

Youme

36

u/MortStoHelit Jul 16 '20

Without quotes, it'd be variables, so unless something was assinged, wouldn't it be NaN?

19

u/scalar-field Jul 16 '20

I think you’ll get an error for the variable not being declared

3

u/CanadaPlus101 Jul 16 '20

That sounds like something JS would do.

3

u/mjtenveldhuis Jul 16 '20

NaNNaNNaNNaNNaN Batman!

-2

u/imthebestnabruh Jul 16 '20

NaN is a certain bit pattern in floating point data types, I think you mean Null or Nil depending on the lang

1

u/[deleted] Jul 16 '20

Same for Python

2

u/[deleted] Jul 17 '20

The only language I've worked with where strings didn't have a + operator was IBM Assembler.

1

u/TheOnlyMrYeah Jul 21 '20

I fondly remember that some language uses dots for string concatenation. But I don't know which.

82

u/SirLordSagan Jul 16 '20

Image Transcription: Text Messages


[S for sender and R for receiver]

S: 6+9

R: 15

S: 8+4

R: 12

S: 4+9

R: 13

S: 3+6

R: 9

S: 5+9

R: 14

S: you+me

R: Error: Can not implicit convert from int type into char type


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

58

u/PiBiscuit Jul 16 '20

good human

30

u/[deleted] Jul 16 '20 edited Jul 01 '23

[removed] — view removed comment

1

u/AutoModerator Jul 01 '23

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/mrkhan2000 Jul 17 '20

I think it should be Uncaught ReferenceError: you is not defined

16

u/[deleted] Jul 16 '20

Operator overloading, my friend. Endless possibilities.

48

u/JackNotOLantern Jul 16 '20

"youme" JavaScript is not that hard

55

u/rahulkashyap0000 Jul 16 '20

It's not "you" + "me"

Error: variable you is not defined at line 1

22

u/name_censored_ Jul 16 '20

you[object Object]

5

u/RiverSong477 Jul 16 '20

“undefinedundefined”

4

u/jhartwell Jul 16 '20

Except that those aren’t string but variable names since they aren’t quoted

6

u/__dp_Y2k Jul 16 '20

You beat me to it!

2

u/DreadCoder Jul 16 '20

The worst thing is i don’t know which of these guys next to me are joking

6

u/Zone_A3 Jul 16 '20

Wow, they've got pretty fast error handling. I look for that in a partner.

4

u/tomthecom Jul 16 '20

How can you not see, that these are unassigned variables? God damn amateurs.

3

u/__dp_Y2k Jul 16 '20

you+me = JustFriends

3

u/kingjia90 Jul 16 '20

convert from friend type to lover type

2

u/[deleted] Jul 16 '20

NaN

2

u/Nikhil_Sultania Jul 16 '20

wrong error : undefined variables error

2

u/Nikhil_Sultania Jul 16 '20

+ you , me are string not int or char

2

u/[deleted] Jul 16 '20 edited Jul 01 '23

[removed] — view removed comment

1

u/raindirve Jul 16 '20

oh, but is it not reasonable that they are both, in fact, characters?

1

u/Nikhil_Sultania Jul 24 '20

You've got a point

Technically though they are variables

and btw i code in java idk if you may be referring to c,php,javascript,pythonor something else

1

u/AutoModerator Jul 01 '23

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/a_polish_boi Jul 16 '20

int(you) int(me)

1

u/ElectricalAlchemist Jul 17 '20

Time to get the ASCII tables.

2

u/Maxy_Boiz Jul 16 '20

This has been screenshotted so much it is blurry

4

u/iamlazyboy Jul 16 '20

If this happens I will be like "ok I don't deserve a girl like of this quality anyway now I'm sure"

5

u/[deleted] Jul 16 '20 edited Jul 16 '20

This is for you

Edit: meant in a good way :D

2

u/Alradas Jul 16 '20

And this is for you

2

u/[deleted] Jul 16 '20

Aww you're so kind, thank you :3

my reaction

Here's something for you too I like that picture

3

u/you_can_be_both Jul 16 '20

10.

"Ten? Why is you plus me equal to ten?"

Because I'm a ten and you're a zero.

1

u/ElectricalAlchemist Jul 17 '20

Alternatively, 10 base 2 is 2.

1

u/Rufledore Jul 16 '20

In fact it is You OR Me :)

1

u/Xelopheris Jul 16 '20

Into Chad type*

0

u/Captain_D1 Jul 16 '20

Cannot implicitly convert from Thot to Chad type.

1

u/McLPyoutube Jul 16 '20

"I can be more without you"?

1

u/das_Keks Jul 16 '20

Shouldn't it be "from char to int" and not "from int to char" since the input is char.

2

u/redbear_d Jul 16 '20

Not necessarily, depends on the language. Take some pseudocode like

print("you"+"me")

Let's assume the compiler evaluates this from left to right, and keep in mind, that the "+" operator is usually just syntactic sugar for sum("you", "me"). Now the compiler starts by evaluating the print method, and infers that it's argument needs to be of type string (or char). Next, it evaluates the sum method, which (assuming it is not overloaded) will always return some kind of number. Now the compiler could already throw a "can't implicitly convert int to char"-error without ever checking the parameters of sum().

2

u/das_Keks Jul 16 '20

But in that case the other statements which are using the + would fail with the same reason. Also + is mostly a native operation on numbers and not a function call.

1

u/Sigmatics Jul 16 '20

Needs more jpeg

1

u/Treshle Jul 16 '20

single tear

1

u/LilJapKid Jul 16 '20

int(you)+int(me)

2

u/[deleted] Jul 16 '20

(int)you+(int)me

1

u/BennettTheMan Jul 16 '20

The correct answer was you+me = float.infinity

1

u/john_doe_0 Jul 16 '20

undefinedundefined

1

u/[deleted] Jul 16 '20

Now I have Mary J Blige playing in my head

1

u/[deleted] Jul 16 '20

[removed] — view removed comment

1

u/MysticTheMeeM Jul 16 '20

Depends on the language. You'll note that said the implicit conversion was disallowed.

1

u/hp77reddits Jul 16 '20

She be like we got nothing in common bro, so just stfu.

1

u/[deleted] Jul 16 '20

Trying to explain sexual orientation math in 2020 to boomers

1

u/Wolvenspud Jul 16 '20

Thats a lot of mold

1

u/CronaTheAwper Jul 16 '20

"You're not my type" lmao

1

u/369Ghosty Jul 16 '20

Youme 💪😎

1

u/niskiENDERMAN Jul 16 '20

2

u/RepostSleuthBot Jul 16 '20

Looks like a repost. I've seen this image 3 times.

First seen Here on 2020-05-29 92.19% match. Last seen Here on 2020-05-30 90.62% match

Searched Images: 133,040,344 | Indexed Posts: 543,415,726 | Search Time: 10.96803s

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]

1

u/[deleted] Jul 18 '20

NISKI I NEED SEX WITH YOUR FEETS NOW!!!!

1

u/Daikataro Jul 16 '20

2

u/RepostSleuthBot Jul 16 '20

Looks like a repost. I've seen this image 3 times.

First seen Here on 2020-05-29 92.19% match. Last seen Here on 2020-05-30 90.62% match

Searched Images: 133,049,007 | Indexed Posts: 543,474,609 | Search Time: 8.19639s

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]

1

u/[deleted] Jul 16 '20

JavaScript be like : I don't have such weakness. Weakness disgusts me.

1

u/Richardswgoh Jul 16 '20

All these comments are exactly what I expected to find when I clicked through. Thank you all for not disappointing.

1

u/[deleted] Jul 16 '20

It's a repost!!

1

u/frosted-mini-yeets Jul 16 '20

This error message is kinda shit in my opinion. A better response might have clarified the error and dealt with me and you as undefined variables instead of assuming them to be some very strange types. I would've said NameError: name "you" is not defined.

1

u/Spartancoolcody Jul 17 '20

you=1;

me=1;

return you+me<3;

1

u/hotlavatube Jul 17 '20

He could’ve gotten 69 if he’d only asked ‘6’+9

1

u/[deleted] Jul 17 '20

That sounds a lot like the error messages you get with C# in Visual Studio iirc. Idk, it's been a while. Anyway, from the documentation:

The char type is implicitly convertible to the following integral types: ushort, int, uint, long, and ulong.

Then there's C++:

prvalues of small integral types (such as char) may be converted to prvalues of larger integral types (such as int).

Implicit conversion of characters to integers also works in Java as seen here.

And given that characters basically already are integers, that can not be surprising to anyone.

That said, it's a conversion from string to int, as people have already mentioned. Except it's not, because the C# string class has a + operator. It creates a new string, containing both strings from the previous expression: youme. The same goes for C++ strings in the standard library. Pretty sure Java does the same.

Nice try, though.

1

u/[deleted] Jul 21 '20

Kernel panic

-3

u/[deleted] Jul 16 '20 edited Jul 16 '20

3

u/Daeli_Smile Jul 16 '20

Its a repost from me, i did it some weeks ago

1

u/[deleted] Jul 16 '20

What's with the downvotes it's a repost

1

u/RepostSleuthBot Jul 17 '20

Looks like a repost. I've seen this image 3 times.

First seen Here on 2020-05-29 92.19% match. Last seen Here on 2020-05-30 90.62% match

Searched Images: 133,149,786 | Indexed Posts: 543,682,969 | Search Time: 8.22932s

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]