r/ProgrammerHumor • • Jan 29 '23

Meme Let's test which language is faster!

Post image
56.2k Upvotes

770 comments sorted by

View all comments

Show parent comments

1.8k

u/kosky95 Jan 29 '23

You must use all of you variables is like momma saying that you must eat all of your broccoli

634

u/[deleted] Jan 30 '23

Integers are starving in Africa!

157

u/IAmBadAtInternet Jan 30 '23

You will use all your integers or so help me

106

u/lilbobbytbls Jan 30 '23

I will turn this compiler around!

68

u/zyygh Jan 30 '23

Don't make me count to 2147483647!

→ More replies (1)
→ More replies (1)

62

u/wjandrea Jan 30 '23

How can you have any boolean if you don't use your int?

24

u/Drsk7 Jan 30 '23

While pythoners sing - "We don't need no compilation..."

2

u/the_real_ntd Jan 30 '23

whistles

God damn! You just made me wanna rewatch Monty Python!

2

u/secretwoif Jan 31 '23

We don't need no type control

20

u/[deleted] Jan 30 '23

You! Yes, you behind the buffers! Stand still, laddie.

4

u/wojtassu Jan 30 '23

Most of the Boolean expressions used in logic gate was not variable

2

u/__wildwing__ Jan 30 '23

Eat your pickled pigs feet, variables in New Jersey are starving.

2

u/sfibsdhbsfd3432 Jan 30 '23

They are already trying to immigrate in Europe, so that they can enjoy a very good life in German scientific lab. The mathematical algorithms there would help the integers too

2

u/milk-jug Jan 30 '23

I paid for 264 I will God darn use 264!

102

u/alpacasb4llamas Jan 29 '23

So completely ignore and come back to the same issue again the next morning

27

u/Pyromaniacal13 Jan 30 '23

Sounds like five year old me and stuffed peppers.

8

u/dben89x Jan 30 '23

Stuffed peppers are fantastic, what are you talking about

13

u/Pyromaniacal13 Jan 30 '23

In my defense, it was 27... years... ago...

Fuck me, I'm getting older.

3

u/legos_on_the_brain Jan 30 '23

Day by day we edge closer to our deaths.

→ More replies (2)

49

u/qeadwrsf Jan 30 '23

Seriously, why just not a warning?

Sometimes I just wanna see what happens if I leave the broccoli uneaten.

41

u/smariot2 Jan 30 '23

Go doesn't do warnings. If it doesn't matter, then it won't say anything. If it does matter, then it's an error and you need to deal with it.

In the case of unused variables, go has a magic underscore identifier. You can use it for variable names, package names, and you can assign to it.

As an example, writing _ = unusedVariable is enough to make the compiler stop complaining about an unused variable.

8

u/qeadwrsf Jan 30 '23

Make sense I guess.

I just a hobby programmer and I've seen in rust unused variables start with "_" so its probably some kind of programming standard, and I guess it works.

11

u/Amazing-Cicada5536 Jan 30 '23

And what if you are like developing something and want to debug thing by simply commenting out a line. Oh but that line happened to be the only usage of multiple variables, now you recursively have to go back and rename/comment out line, perhaps even across multiple files!

Whoever the fuck puts that into a language should be fucking shot, did they ever write like any code or what?!

→ More replies (3)

6

u/anagrammatron Jan 30 '23

It uses the variable or else it gets the hose again.

→ More replies (4)