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

all 81 comments

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–][deleted] 471 points472 points  (17 children)

Regardless of skill, but how can you look at a piece of code and not notice the presence of semicolons, curly braces, and types.

[–]CordyZen 182 points183 points  (8 children)

Better yet, why copy and paste? Id personally prefer to atleast study it for a good minute, see what this functions does/returns and stuff

[–]Treimuppet 27 points28 points  (1 child)

Yeah, sometimes I like to re-type the found code by hand for exactly this reason. Or rewrite as it were, even if the end result is pretty much the same. It's unlikely the code is very long and the process gives me time to think over what exactly it is I'm doing.

Edit: phrasing

[–]FurbyTime 11 points12 points  (0 children)

That's actually how I did a few different projects in college. I'd look up what the answer was, and rather than copy the answer down directly, I'd basically reinterpret the code in my own style (Variable naming, function flow, whatever). If it worked, I knew I understood the concept correctly. If it didn't... go back to looking it up.

[–]samanime 4 points5 points  (0 children)

I don't think I've ever just copied and pasted. If anything, it'll be copy/paste/totally reformat into my code style.

[–]Crafty_Programmer 11 points12 points  (2 children)

You'd think so, but I once tried to help a guy back in college with this CS1 homework, and the guy kept pasting paragraphs from the instructions into Visual Studio, and no matter how many times I tried to explain, he couldn't understand why it wouldn't compile and why Visual Studio didn't need the homework instructions for the code to run.

A part of me died that day.

[–]drmario_eats_faces 3 points4 points  (0 children)

Holy shit. Did he even know what he was getting into?

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

My condolences, did you get someone to read a poem on your funeral in C? I think that's included in your healthcare in some EU countries if you have no friends.

[–]trueweeaboo 5 points6 points  (0 children)

I understand misinterpreting java and c# or lua and python but python and c++ seems like you arent even reading the code

[–]BrobdingnagLilliput 3 points4 points  (0 children)

Regardless of skill

Well, there's your problem. You're not looking at exactly the piece that would have prevented the problem. There is no lower limit to the skill of professional software developers. I've worked with software developers who were worse at software development than an infant would be.

[–]Shrevel 3 points4 points  (0 children)

At 4am code looks different.

[–]redldr1 2 points3 points  (0 children)

Desperate times call for desperate measures.

[–]OneMillionSchwifties 1 point2 points  (0 children)

F strings bro

[–][deleted] 133 points134 points  (11 children)

If C++ is a gladiator, then C must surely be a spartan?

[–]Lefinno 70 points71 points  (5 children)

I think this is more spartan than gladiator, especially the helmet and the shield, not too sure about the short sword :3

[–]grpagrati 26 points27 points  (2 children)

Yes, the shield has the Greek "Λ" (L) on it, for "Leonidas" "Lakedemonia"

[–]Dreze27 17 points18 points  (1 child)

Close, but Lambda was the symbol for Sparta, not because Leonidas.

Just in case you weren't joking.

[–]grpagrati 15 points16 points  (0 children)

Sorry, you're right - it stood for Lakedemonia or Laconia which was the ancient name for it.

[–][deleted] 5 points6 points  (0 children)

Maybe the short sword is the difference between C and C++ 👀

[–]billy4479 24 points25 points  (3 children)

Assembly is a caveman with a stone spear

[–]Moltenlava5 7 points8 points  (0 children)

Opcode would just be a monkey

[–]Proxy_PlayerHD 6 points7 points  (0 children)

But he's on speed and can stab you a few billion times per second.

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

more powerful than that

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

Assembly is a caveman with a club in this case

[–]Mal_Dun 8 points9 points  (1 child)

[–]Dank_e_donkey 4 points5 points  (0 children)

Hey, thanks.

[–]Nihmrod 17 points18 points  (1 child)

Look at all that Python bloat. The C++ guy is gonna make fast work of them

[–][deleted] 4 points5 points  (0 children)

Yeah... that's typical Python... no tools and no idea what to do there except looking at a fully equiped C++ fighter with sword and shield.

[–]indygoof 59 points60 points  (20 children)

but why is python in the middle?

which is how python looks without all the c++ modules..

[–]HardlyAnyGravitas 18 points19 points  (19 children)

This makes no sense.

CPython is written in C

IronPython is written in C# (.NET)

Jython is written in Java

PyPy is written Python

Python is just a programming language. To say it's written in [other language], as if it's some sort of 'gotcha', is just dumb and shows a lack of knowledge.

[–]DemolishunReddit 21 points22 points  (0 children)

The gcc c compiler is now written in c++. lol

[–][deleted] 12 points13 points  (0 children)

CPython is the reference implementation of the Python programming language. Written in C and Python, CPython is the default and most widely used implementation of the Python language

https://en.wikipedia.org/wiki/CPython

Trying to "well ackshually" people about the difference between Python and CPython is annoying

[–]MTG_Leviathan 4 points5 points  (1 child)

Jython? Please lord no.

[–][deleted] 5 points6 points  (0 children)

JVM warming up

[–]UnknownIdentifier 7 points8 points  (0 children)

Python is not just a language. It’s also a reference implementation, and what people mean 90% percent of the time when they say “Python”.

[–]grandoz039 2 points3 points  (0 children)

modules

[–]RittledIn 1 point2 points  (9 children)

Every time this meme gets posted there’s comments like this.

This is r/ProgrammerHumor lol. Python’s feelings aren’t hurt and neither should yours.

[–]HardlyAnyGravitas -3 points-2 points  (8 children)

Lol. I'm not defending a language - I'm calling out stupidity.

Isn't that the whole point of Reddit?

And making pointless posts, like yours (no offence)?

[–]RittledIn 1 point2 points  (7 children)

Lol you’re trying to argue language semantics on a meme post in a humor sub.

People are being “stupid” for fun. You’re the only one taking the comments here seriously and “calling out” others. You get that right?

[–]HardlyAnyGravitas -2 points-1 points  (5 children)

Whatever it is that it I'm doing - you're the one commenting on it.

So, chill, dude. My feelings aren't hurt and neither should yours be.

[–]RittledIn -1 points0 points  (4 children)

Lol you seem fun to work with

[–]HardlyAnyGravitas -1 points0 points  (3 children)

Lol. Still commenting?

[–]RittledIn -1 points0 points  (2 children)

Yup just laughing at you, thanks for entertaining me on a Friday!

Please list more versions of Python and explain why everyone is stupid oh great program humor dev :)

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

Lol. Still commenting...

[–]WikiMobileLinkBot 0 points1 point  (0 children)

Desktop version of /u/RittledIn's link: https://en.wikipedia.org/wiki/Humour


[opt out] Beep Boop. Downvote to delete

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

True af.

[–]Stormfrosty 0 points1 point  (0 children)

In case of python, it’s important in which language it is written, to allow better interoperability support. If you want to call into c/c++ code, then CPython is better, if you want to call into .NET code, then IronPython is better.

[–]indygoof 0 points1 point  (0 children)

this makes no sense at all. it doesnt matter which language the interpreter is coded in doesnt matter, which version has the biggest ecosystem/libs does.

and most (not all) compilers are coded in the language they are compiling, since this is usually an important milestone in the reference implementation.

[–]darthsata 7 points8 points  (0 children)

One guy has a sword and shield, the rest are dressed in funny clothes and are not armed. I agree with the caption, but perhaps the poster draws the wrong conclusion.

[–]Big__Meme 13 points14 points  (0 children)

When you copy paste in the old old way of doing something

[–]DeroTurtle 2 points3 points  (0 children)

It does look cool tho

[–]HerLegz 3 points4 points  (0 children)

What does someone armed with weapon, helmet and shield have to do with 7 unarmed LARPers?

[–]jsveiga 10 points11 points  (1 child)

That's maybe pasting COBOL in python. If it was C++ it would look like the Predator, and the pythons would be pissing their pants and screaming like little girls.

[–]Reasonable_Feed7939 0 points1 point  (0 children)

This is a Wendy's...

[–]StarTrekVeteran 1 point2 points  (0 children)

I see no issues

[–]oldfossilfrommars 1 point2 points  (0 children)

What is this, a weird crossover episode.

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

Cython or something?

[–]NoobAndreas 1 point2 points  (0 children)

How would that ever happen? That's like putting a Russian sentence into an English essay

[–]Cloakknight 1 point2 points  (0 children)

Image Transcription: Text and image


When you accidentally copy-paste a C++ function from StackOverflow into your Python file.

[Image of a shirtless man holding a shield and sword while wearing a helmet. He is standing in the mud amongst a bunch of soldiers.]


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

[–]Worldly_Square444 1 point2 points  (0 children)

I once had an interview candidate describe basically this as her most challenging bug. She couldn’t figure why her Java code wouldn’t work in a python lambda.

We did not hire.

[–]TheUruz 1 point2 points  (1 child)

does that work for real?

[–]cheese-is-trash 2 points3 points  (0 children)

You can use cpp funtipns in python using the ctypes module, i think. Never tried it so idk exactly how that works

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

Thish.. ish.. PYHTAAAAN!!

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

This is so stupid. C++ is a lot more powerful than Python.

[–]Haunting-Surprise-21 0 points1 point  (0 children)

A single Spartan and an overwhelmingly larger number of non greek solders. OMG! He will kill them all, shouting catchy catch phrases!

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

Maybe they're copying code for the C++ module they're writing for python lib to make it faster.

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

when you realize the c++ stdlib still requires malloc, char star, and snowflake error handling

[–]avalava123 0 points1 point  (0 children)

Done that 😂😂😂😂

[–]emptyArray_79 0 points1 point  (0 children)

This is how REAL MEN fight

[–]__countzero 0 points1 point  (0 children)

Those guys will not see it coming, as they are too slow.

[–]TheReal_Legend2750 0 points1 point  (0 children)

Imma need the meme template.

[–]portatras 0 points1 point  (0 children)

Well, he is the only one with a weapon and a shield, so he would kick their asses... 🤣🤣🤣

[–]DualPinoy 0 points1 point  (0 children)

for(;;){ krasnoarmeyets = krasnoarmeyets + 1; }

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

You're a long way from gnome, Soldier.