Some programming memes Part 2

Sep 24, 2020 6:12 AM

techieayushp

Views

123759

Likes

1924

Dislikes

36

6 years ago | Likes 2 Dislikes 0

define recursion: see recursion

6 years ago | Likes 1 Dislikes 0

That moment when you spend 12 hours on a function only to find an infinitely better solution to the same problem

6 years ago | Likes 10 Dislikes 0

Chins doesn't have gender pronouns when spokeen but it is written with gender

6 years ago | Likes 1 Dislikes 0

OP: should I fix these bugs? Nah, first post some memes on imgur.

6 years ago | Likes 4 Dislikes 0

#1 Is a secret lair, I think.

6 years ago | Likes 2 Dislikes 0

TOO SHORT GIVE ME MOOOOOAAAARRRRRR

6 years ago | Likes 10 Dislikes 1

Haha! Stay tuned!

6 years ago | Likes 3 Dislikes 0

6 years ago | Likes 9 Dislikes 0

Rule 34 has it's limits

6 years ago | Likes 1 Dislikes 0

6 years ago | Likes 1 Dislikes 0

v

6 years ago | Likes 2 Dislikes 0

All recursion has an end. If you did it right, it's a base case. If you did it wrong, it's a stack overflow.

6 years ago | Likes 3 Dislikes 0

@op I’m guessing you a programmer as well, what do you specialize in?

6 years ago | Likes 2 Dislikes 0

Sarcasm and Frontend

6 years ago | Likes 2 Dislikes 0

I’m pessimism and back end, good too meet yah

6 years ago | Likes 4 Dislikes 0

Good to meet you too ◉‿◉

6 years ago | Likes 2 Dislikes 0

I guess the stairs start at the height of the tallest fire ladder in the area. Feeling so damn smart now!

6 years ago | Likes 1 Dislikes 0

#1 It's like the one mushroom in the code for both Super Mario Galaxy 1 and 2. They found a way to remove it for 3D All-Stars, though.

6 years ago | Likes 1 Dislikes 0

Any good tools to help getting into programming? Might as well do something with my time.

6 years ago | Likes 1 Dislikes 0

What would you like to program? Web backend, web frontend, mobile apps, desktop apps, etc.? The best way to start is to solve problems for /

6 years ago | Likes 1 Dislikes 0

yourself. Start with small tools or websites. Learn about security implications and watch others works. For examples there are a lot of /

6 years ago | Likes 1 Dislikes 0

tutorials on Youtube that give a nice broad direction for you to dive into. But the best way is just go and break stuff. /

6 years ago | Likes 1 Dislikes 0

Make backups and have fun!

6 years ago | Likes 1 Dislikes 0

The 2 states of a programmer

6 years ago | Likes 104 Dislikes 0

Further expressed as "I AM A GENIUS" or "I AM AN IDIOT".

6 years ago | Likes 3 Dislikes 0

"I AM A GENIUS" *NullPointerException* "OH NO"

6 years ago | Likes 1 Dislikes 0

I printed this out for my office once and added googly eyes for the second picture. Much improved

6 years ago | Likes 4 Dislikes 0

Also the third and slightly rarer: "I now understand why this doesn't work. I do not understand how the hell it worked up until now."

6 years ago | Likes 44 Dislikes 0

I'm in this picture and i don't like it.

6 years ago | Likes 8 Dislikes 0

UGH this makes me SICK. too accurate

6 years ago | Likes 5 Dislikes 0

6 years ago | Likes 88 Dislikes 0

I've thought "I don't need to waste time commenting, I'm the only one who will ever use it and it's obvious how it works" before.

6 years ago | Likes 6 Dislikes 0

Me looking at my code I added to a project

6 years ago | Likes 10 Dislikes 0

I've downvoted stupid answers on Stack Overflow before, only to be greeted with "You cannot vote on your own posts"... more than once.

6 years ago | Likes 59 Dislikes 0

Ah, yes. You go from "what idiot wrote this?" to "Of course I know him. He's me."

6 years ago | Likes 8 Dislikes 0

#6 I think this is secretly the issue behind many of my troubles.

6 years ago | Likes 6 Dislikes 0

Can someone explain [object Object]?

6 years ago | Likes 2 Dislikes 0

They tried to render an JavaScript object as a string.

6 years ago | Likes 2 Dislikes 0

this is beautiful I have looked at it for 5 hours now

6 years ago | Likes 34 Dislikes 0

Sounds about right lol

6 years ago | Likes 2 Dislikes 0

You are so useless that even my code seems better ?‍♂️

6 years ago | Likes 8 Dislikes 0

funny you sound like my parents

6 years ago | Likes 8 Dislikes 0

I would love to get to the point where I can code without needing a tutorial of some sort, but I fear that day will never come.

6 years ago | Likes 3 Dislikes 0

At some point you just learn enough to know exactly what you don't know, and then you google the question and find a stack overflow thread

6 years ago | Likes 1 Dislikes 0

As a sysadmin that hates programming now expected to program to save money for share holders I feel this so hard!

6 years ago | Likes 1 Dislikes 0

Find some small projects and make them by Googleing each individual problem. Then you will understand the tech better than seeing it all.

6 years ago | Likes 1 Dislikes 0

To understand recursion, we must first understand recursion.

6 years ago | Likes 521 Dislikes 0

The first meeting of the Tautology Club is the first meeting of the Tautology Club

6 years ago | Likes 2 Dislikes 0

Better yet: "To understand recursion, we must first understand recursio"

6 years ago | Likes 1 Dislikes 0

6 years ago | Likes 3 Dislikes 0

Congrats, you failed to write a base case. You will now recurse until you crash due to stack overflow.

6 years ago | Likes 1 Dislikes 0

If you don't know what a base case is just look it up on stackoverflow.

6 years ago | Likes 2 Dislikes 0

understEND

6 years ago | Likes 1 Dislikes 0

6 years ago | Likes 77 Dislikes 0

6 years ago | Likes 3 Dislikes 0

You are freaking out ... man ....

6 years ago | Likes 1 Dislikes 0

To understand recursion, we must first understand recursion.

6 years ago | Likes 4 Dislikes 0

6 years ago | Likes 45 Dislikes 0

Same thing applies for monads.

6 years ago | Likes 1 Dislikes 0

[deleted]

[deleted]

6 years ago (deleted Oct 21, 2024 11:51 PM) | Likes 0 Dislikes 0

[deleted]

[deleted]

6 years ago (deleted Oct 21, 2024 11:51 PM) | Likes 0 Dislikes 0

Heh

6 years ago | Likes 6 Dislikes 0

Lol?

6 years ago | Likes 9 Dislikes 0

To understand recursion, we must first understand recursion.

6 years ago | Likes 24 Dislikes 0

I hear that an infinite loop is a good place to start.

6 years ago | Likes 4 Dislikes 0

Once you're in, it's just finite.

6 years ago | Likes 3 Dislikes 0

And to understand recursion, we must first understand recursion.

6 years ago | Likes 12 Dislikes 0

But before we understand recursion, we must first understand recursion.

6 years ago | Likes 4 Dislikes 0

One of my linguistics text books had the term 'recursion' in its index; it just said "see 'recursion' " :'-)

6 years ago | Likes 59 Dislikes 0

What the hell I think #5 is actually my oc from Twitter!

6 years ago | Likes 2 Dislikes 1

Can you explain it for my friend

6 years ago | Likes 2 Dislikes 0

Here is it is: [Object object]

6 years ago | Likes 2 Dislikes 0

In JavaScript, if you stringify an object, you get [object Object]. Posting it as feedback will potentially make a developer see it and 1/2

6 years ago | Likes 2 Dislikes 0

Thanks for explaining =] JavaScript is not a language I've touched so it meant nothing to me

6 years ago | Likes 1 Dislikes 0

They might believe they have a bug, because it implys something weird has happened. They will search for ages and never find the bug.

6 years ago | Likes 3 Dislikes 0

My god that's evil. I love it.

6 years ago | Likes 3 Dislikes 0

Can someone please explain #6? I have no idea what that one does.

6 years ago | Likes 13 Dislikes 0

{ ... return true; } // returns "true" ...most of the time

6 years ago | Likes 1 Dislikes 0

Rand() % 100 returns a random number between 0-100, so this defines "true" as having a 2% chance of being true.

6 years ago | Likes 6 Dislikes 0

6 years ago | Likes 1 Dislikes 0

*98%

6 years ago | Likes 5 Dislikes 0

* pseudorandom. * 0-99. * 99% chance

6 years ago | Likes 4 Dislikes 3

Yes 0-99 but 98% chance since both 99 and 98 both not less than 98.

6 years ago | Likes 1 Dislikes 0

It's < 98, not <=. Valid numbers are 0-97 with 98 and 99 being invalid i.e. 2 out of 100 possible values. It's 98%.

6 years ago | Likes 2 Dislikes 0

In programming true and false are binary terms, on/off. This redefines the 'on' state or true to have a 2% chance to be false or 'off'.

6 years ago | Likes 9 Dislikes 0

Well, no. #define replaces all instances of the first argument with instances of the second *before* compilation. So any booleans without

6 years ago | Likes 1 Dislikes 2

the statement “true” will be unaffected.

6 years ago | Likes 1 Dislikes 2

if someone were to type if (true) it would succeed 98% of the time.

6 years ago | Likes 24 Dislikes 0

So it's basically going to screw up "=true" types of binary checks in the code?

6 years ago | Likes 10 Dislikes 0

Yes, which means that 2% of the time your logic statements will fail which means you will have a bug that’s near impossible to find :)

6 years ago | Likes 11 Dislikes 0

Heh, yeah, once I realized it's replacing that check/variable with a 2% chance to randomly fail I realized how evil that was.

6 years ago | Likes 2 Dislikes 0

#1 was usually a printf() on embedded systems left in for debug.

6 years ago | Likes 22 Dislikes 0

Lol yeah

6 years ago | Likes 4 Dislikes 0

In the spaghetti I inherited and have been slowly murdering.. there's this one off program called "do_nothing". The source is literally /

6 years ago | Likes 6 Dislikes 0

nothing but printing to the screen "I did nothing" and if I delete it the whole stack crashes.

6 years ago | Likes 6 Dislikes 0

Nice! what language?

6 years ago | Likes 3 Dislikes 0

That particular one is about 8 million lines of shell script. It's like spaghetti met a cheese grater.

6 years ago | Likes 5 Dislikes 0

If you had not said shell script I would think that brief jump was changing the output of the assembler or optimizer.

6 years ago | Likes 4 Dislikes 0

We're moving to a new product, boss asked me what I was doing to do to port the code forward to the new system. Told him I wasn't going to /

6 years ago | Likes 3 Dislikes 0

He's like "but the customers are used to using it" and I'm just like "and they're learning an entire new product. They won't expect it /

6 years ago | Likes 3 Dislikes 0

Last time I saw one like that, it was a recursive function that set value "pizza" to 0. "pizza" was never seen anywhere else in the code, 1/

6 years ago | Likes 2 Dislikes 0

and the function was called upon by nothing else. But may all the gods help you if you deleted it. 2/2

6 years ago | Likes 2 Dislikes 0

Did you ever try assigning pizza to something else?

6 years ago | Likes 1 Dislikes 0

Something was probably doing questionable pointer arithmetic and removing pizza changed the memory layout

6 years ago | Likes 6 Dislikes 0

I don't even want to know how they arrived at "pizza" as the solution.

6 years ago | Likes 2 Dislikes 0

I wouldn't be surprised if their recursion assignment in college or a textbook involved pizza and as they tailored the example pizza stayed

6 years ago | Likes 3 Dislikes 0

but when you don't reference it the optimizer removes it, shifts another variable off a word boundary breaking a pointer reference.

6 years ago | Likes 2 Dislikes 0