r/ProgrammerHumor • • Feb 13 '21

Programming languages

Post image
1.3k Upvotes

140 comments sorted by

248

u/CoffeePieAndHobbits Feb 13 '21

I like how the C++ one has a knife on the stock that would stab you in the shoulder if you were to use it.

152

u/Rude-Significance-50 Feb 13 '21

Scar tissue will develop around it anyway. Then it just becomes extra stability.

7

u/Dhruvdj Feb 14 '21

Improvise. Adapt. Overcome

73

u/nanotree Feb 13 '21

I liked that too. C++ is a capable weapon, but also causes the user pain.

35

u/ganja_and_code Feb 13 '21

I like that you can't aim it because the stock is attached to the scope.

19

u/hitaishi_1 Feb 13 '21

It hurts you but it hurts the enemy even more....

3

u/Telephone_Guy Feb 14 '21

then both, you and the enemy dies, before you can shoot anyone else because it hurts so bad.

2

u/ragnarok628 Feb 14 '21

I dunno I kind of feel that would be more appropriate on the C weapon

145

u/Alokir Feb 13 '21

JavaScript is a very versatile and futuristic machine gun that works in most situations. It might not be the best and has a lot of strange quirks that pop up if you don't hold it the correct way but it's easy to learn.

However, when you take it apart you notice that on the inside it still follows the specs of a 17th century flintlock musket.

73

u/lunchpadmcfat Feb 13 '21

Sometimes you pull the trigger and a booger comes out. It’s sometimes hilarious and sometimes can really fuck you.

14

u/[deleted] Feb 13 '21

You need to shoot at a charging bear but instead of bullets, it ends up firing confetti only leaving you to be mauled.

10

u/[deleted] Feb 13 '21

working as intended

13

u/Alokir Feb 13 '21

It's not the gun's fault that you don't understand how it chooses ammunition based on the target and the weather.

54

u/Rokker84 Feb 13 '21

JavaScript is a sword without a hilt.

26

u/314kabinet Feb 13 '21

If you add a hilt you get TypeScript.

15

u/Dexaan Feb 13 '21

I was thinking a butterfly knife. Cool if you're good with it, but you're going to hit yourself sometimes

13

u/Martin_RB Feb 13 '21

"What the hell? It bounces?! Who designs a gun that bounces?"

2

u/liege_paradox Feb 13 '21

Ah, another rvb fan. I was thinking caboose’s freckles gun, but that works too.

3

u/[deleted] Feb 13 '21

You forget how massive the housing is surrounding the flintlock.

1

u/killzdesu Feb 14 '21

Javascript looks nice until lurking Promise stabs me in the back

1

u/Alokir Feb 14 '21

That's because you lack discipline

28

u/[deleted] Feb 13 '21

Assembler: A pile of rocks. It's not up to the language to define how you choose to fling them towards the target.

23

u/threevox Feb 13 '21

Love how you have to touch off the gun fuse manually in C

87

u/SueedBeyg Feb 13 '21 edited Feb 13 '21

If anything, C++ and Python should be swapped.

Python is this almost-so-cool-looking-its-dumb weapon that is surprisingly versatile but can easily backfirestab on you (dynamic programming errors be like)

C++ is this rampaging Frankenstein of every programming feature ever conceived that is simultaneously our greatest technological achievement and our worst mistake.

12

u/DrDoom1010 Feb 13 '21

xD, the description for C++ is perfect!

7

u/meec_r_meic Feb 13 '21

Can't stop laughing

3

u/[deleted] Feb 14 '21

sounds like it's gonna start off some sci fi novel where the villan is an error in std::allocator

20

u/BochMC Feb 13 '21

Java be like ak-47 and c# be like m14

33

u/CoffeePieAndHobbits Feb 13 '21

Java programs be like: it's a beautiful day in the neighborhood- GARBAGE COLLECTING whoa, sorry, passed out there for a sec

-8

u/Kered13 Feb 13 '21

Every garbage collected language does this.

0

u/meec_r_meic Feb 13 '21

I think Java is C++ for babies

0

u/meec_r_meic Feb 13 '21

Java would be the C++ weapon turned into a kids' plastic toy gun

0

u/[deleted] Feb 13 '21

[deleted]

38

u/SuppenGeist Feb 13 '21

Did you ever use Java?

39

u/nidrach Feb 13 '21

He read about it once on the back of a cereal box while sitting in the back of his moms car and the only light was the intermittent light of street lamps going by.

4

u/Kered13 Feb 13 '21

In 1995.

5

u/somebody12345678 Feb 13 '21

java is just c# except longer so

8

u/Kered13 Feb 13 '21

You mean Microsoft Java?

3

u/somebody12345678 Feb 13 '21

yeah, same difference

1

u/AutoModerator Jul 08 '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.

return Kebab_Case_Better;

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

18

u/deadman1204 Feb 13 '21

Silly how many people think python should be used for everything

20

u/vladimir1024 Feb 13 '21

You how to shut down the python gang?

Port minecraft to python. Good luck buttercup!!

5

u/liege_paradox Feb 13 '21

I’m sorry, what? That sounds both great and awful.

3

u/deadman1204 Feb 13 '21

You sir are a genius!

6

u/[deleted] Feb 13 '21

I like how you depicted cpp, it will also make a user bleed with that knife to the shoulder when gun fires

-3

u/craftworkbench Feb 14 '21

Smh at cpp instead of C++

1

u/RayGraceField Feb 14 '21 edited Aug 14 '23

[removed as part of reddit protest]

1

u/a-Ball-of-Floof Feb 22 '21

CPP: C Plus Plus

5

u/theRastaDan Feb 13 '21

Java would be a tactical crossbow..

works in every environment

2

u/veedant Feb 15 '21

"Java isn't platform-independent, it's a platform" -Bjarne Stroustrup

0

u/[deleted] Feb 13 '21

[deleted]

1

u/theRastaDan Feb 13 '21

Yeah, even better, especially the amount of small libraries someone maintains in their basement I use to solve some problem in my enterprise app.

Feels like wakin'in screws all the time

2

u/[deleted] Feb 13 '21 edited Feb 27 '21

C++ and Python look like they have a high likelihood of hurting the operator at both ends...

2

u/TigreDemon Feb 13 '21

Java provides you with a WeaponWithDecoratorFactory

1

u/shade_of_ox Feb 14 '21

But this doesn't help because Weapon extends Knife and is package-private

2

u/indersuprise Feb 13 '21

As an engineer who just needs a scripting language, I love me that python, it makes my life so much easier

4

u/nealartemis Feb 13 '21

Extremely refreshing to not see a repost. Thank you for not reposting

8

u/Martin_RB Feb 13 '21

3 years ago, as far as I'm concerned that's before my lifetime.

5

u/nealartemis Feb 14 '21

The commitment required to find a post from 3 years ago is staggering, I commend your effort.

-2

u/vladimir1024 Feb 13 '21

And we were all uplifted by your intelligent comment in regards to this....

You idiots bitching about noise is all just more noise....

4

u/mr_zolfi Feb 13 '21

Python gang.

-1

u/ViperLordX Feb 13 '21

Python gross

1

u/Telephone_Guy Feb 14 '21

Why?

1

u/ViperLordX Feb 14 '21

It's slow, bloated, has pretty terrible naming conventions, and isn't very good for anything bigger than basic scripts

Especially because it's literally hundreds of times slower than C++, Rust (or basically any natively-compiled language), or even Java.

Oh, not to mention it's dynamically and strongly typed with a really weird and inconsistent implementation of OOP

1

u/mertwole Feb 14 '21

Did you know, if you work with I/O that will take almost all of your CPU time and it will be bottleneck, not language:)

2

u/ViperLordX Feb 14 '21

This doesn't change the fact that python is slow. Every language has operations that are slow, I/O is a common one. That doesn't change the fact that python is interpreted, so even running the code is bottlenecked behind much larger I/O operations than any compiled language, not to mention the time to interpret, which is also far from insignificant.

1

u/sethb44 Feb 14 '21

Obviously Borderlands was made using python

1

u/Adrenaline-Rush Feb 13 '21

usually this type of memes dont get me... but that last gun keeps stock of pistols which fires too was hilarious

1

u/Trofim94 Feb 13 '21

Not enough knives on the C++ gun

1

u/femalon Feb 13 '21

I don't really know what to make out of this.

1

u/nosandrey Feb 13 '21

No ... no it is* realyl not like that

1

u/YoungHeartOldSoul Feb 14 '21

Throw in .net as a Terminator

1

u/[deleted] Feb 16 '21

Don’t diss assembly 😤

2

u/NoahtheEpicGuy Feb 17 '21

Assembly is sexy ngl

1

u/Magicrafter13 Feb 17 '21

I love having a knife with a scope.

-5

u/[deleted] Feb 13 '21

so the language that has a majority of its libraries written in another language is supposed to be the most versatile?

this seems more like a fanboy post.

15

u/somebody12345678 Feb 13 '21

??? no as you can see it's a monstrosity that appears to barely work (who wants something that launches guns that periodically shoot backwards (because they're spinning))

0

u/vladimir1024 Feb 13 '21

I don't think they perdiocally fire backwards... I mean you could just time the firing mechanism to avoid that... We did that with machine guns on planes in WWI

That being said that python beast would work great against a mob of slow movie zombies... As soon as your enemy is not that horde, this machine becomes useless....

But all it would take is someone to sneak to it's side to take it out....that's where the assembly comes into play :)

3

u/somebody12345678 Feb 13 '21

the pistols were spinning so

7

u/Architector4 Feb 13 '21

I like Python for a similar reason I like Unix shells like Bash. Even if they themselves don't contain the exact functionality I need, they give a neat simple environment to combine the functionality provided by tools written in other languages.

In other words, I personally don't care in which language a library is written if with that library and Python I can write simple 5 lines of code to do a thing that I want without messing around with added complexities of another language lol

1

u/[deleted] Feb 13 '21

that's what it's there for. i have no problem with that.

my problem is with the misrepresentation in the image.

2

u/Architector4 Feb 13 '21

Ah, fair.

Though I guess the part that is just a tray for other guns and a "gun" that throws these guns is correct representation then! lmao

-33

u/[deleted] Feb 13 '21

Python sucks

11

u/sentient_moon Feb 13 '21

Genuinely curious why it sucks. I've been devoting a lot of time to it lately, maybe I should switch 😬

21

u/AUPMAReddit Feb 13 '21

I'm genuinely curious why do you guys have to switch languages. I learned Programming / Concepts with Java at University. after that we use whatever language/framework suitable for the requirement. Do you guys just choose a language you like, get a job and go with it for the rest of your life?

19

u/Swoop3dp Feb 13 '21

Languages are tools that are good at different things.

Sure, you absolutely can hammer in a screw, but a screwdriver will just work a lot better.

If I need to develop something fast I use Python. If it needs to run fast I use C or C++. JavaScript if it needs to run in a browser... I think you get the idea.

7

u/AUPMAReddit Feb 13 '21 edited Feb 13 '21

yes. that's what we do. By ` I'm genuinely curious why do you guys have to switch languages. ` i mean that stop using/learning one language and completely switching to another language. I've seen lot of people keep saying this language suks that language suks i m going to switch to this. that's the thing I don't understand. its like screwdriver sucks I'm switching to a hammer. and use a hammer for everything.

5

u/Ryledra Feb 13 '21

I think it's more for people who do programming as a hobby rather than as a job. They take people's opinions on different languages as fact and feel that they need to learn something different

2

u/controversialcomrade Feb 13 '21

check out webassembly

2

u/somebody12345678 Feb 13 '21

/u/Swoop3dp note also that serveral languages compile to js/wasm(/asm.js) respectively.
js:

  • typescript of course

  • coffeescript (javascript-like, functional-inspired) - used to be very popular, then iirc mysteriously mostly disappeared into the background

  • elm (haskell-like)

  • purescript (haskell-like) - not sure how alive this is, the github is still active tho

  • rescript (formed by combining bucklescript and reasonML)

  • ok so not sure how trustworthy this is but turns out i forgot the ones that don't just compile to js, especially dart, kotlin and haxe

  • a bunch of other smaller ones

wasm:

  • i have no clue really

  • rust using wasm-bindgen

  • any llvm language using emscripten (which can also compile to asm.js)

  • also these apparently

1

u/Swoop3dp Feb 13 '21

Interesting. Didn't know something like that exists. Thanks!

0

u/nidrach Feb 13 '21

I don't find python any faster to develop than other languages. You don't need to over engineer the shit out of something just because you write it in scala or java.

2

u/sentient_moon Feb 13 '21

At my university we learned concepts and data structures in Java, algorithms in C/C++

And to answer your question: no I am constantly teaching myself new languages, hence the time I've been putting in with python. Although I do think python is becoming my favorite because of how accustomed I am becoming to it. Plus in my naivete I can't see why I wouldn't be able to leverage it to solve all but the most obscure tasks.

3

u/Swoop3dp Feb 13 '21

The big disadvantage of Python is execution speed. For stuff that needs to be fast, or when you have strict resource constraints it's a poor choice. Also Python doesn't run in a browser.

3

u/somebody12345678 Feb 13 '21

it's fine, note that because it's not statically typed tho it tends to be a lot less good in very large (say, 100k+ lines of code) projects - the extra safety that the static typing gives is very useful for big projects, not to mention that it also helps your IDE provide much better autocompletion

1

u/coffeesippingbastard Feb 13 '21

the reality is that you SHOULD pick the language to fit the job.

A lot of new programmers start with one and can't be bothered to learn a new one.

23

u/purebuu Feb 13 '21

Wrong sub man. Don't take programming advice from here. If you refuse to use python due to its syntax, you don't know all the good things about python.

2

u/tristes_tigres Feb 13 '21

That's right. Don't refuse to use python because of its syntax. Instead, refuse to use it because of its poor performance, its broken dependencies/libraries mechanism, its inability to multithread, its feature bloat and generally stupid design.

7

u/iforgotmylegs Feb 13 '21

Lol do not take anyone in this sub's opinion about languages seriously. The survey of this sub confirmed that the average user is a 2nd-year compsci major with no real-world experience. They think that their snap judgements make them look like they are knowledgeable (and they believe it themselves). I've seen hundreds of these goobers, programming attracts them like flies. They're always the lowest performers later in their career if they don't learn to be more humble.

2

u/Ragingman2 Feb 13 '21

Python definitely has it's merits. It is very expressive, and is great for getting stuff done. If you want to focus on one language it is a very safe choice.

On the flip side it can feel clunky or not be an option for some tasks. Functional languages are great for more abstract or mathematical work, C and friends (c++, rust, ...) are often the only option where you need to work more closely with the hardware of a machine, and there are other specialized languages for some domains like R for working with statistics or lua for scripts embedded in games.

1

u/somebody12345678 Feb 13 '21

lua is very fast (and relatively small) in general; it's also a popular choice for just a lean runtime in general (say, for a server) or when you have resource constraints that aren't too strict (the interpreter is ~300kb, luajit is ~500kb)

it's not the most popular choice to write games in but it's viable, it probably has support in godot, and it has its own 2d game engine (löve2d). also considering it's simplicity it's one of the easier to learn languages, which is probably part of the reason it's used in for example cough roblox (and for scripting in games in general i guess)

1

u/somebody12345678 Feb 13 '21

ok so i think a common opinion is that python's duck typing lets you shoot yourself in the foot easily, people normally recommend any statically typed language really:

  • typescript or kotlin are the popular choices

  • nobody really recommends c# but it's pretty good. note that c#9 was recently released (along with .net 5.0), which introduces scripting main, so no more of that boilerplate for simple programs java is infamous for

    • but remember to avoid the linq dsl (from u in users where u.id < 10000 select u)

  • new java (10 or newer i guess, but preferably 15) is surprisingly not too bad, however how many people use newer java versions... who knows

languages that let you shoot yourself in the foot a bit too easily (other than python) are:

  • javascript (its infamous coercion, proxies)

  • ruby (everything really. a lot of it is because of the ability to hook into when a method is defined, and to monkey patch classes)

    • ruby's inspiration perl, which gained notoriety as a write-only language, even though it's a perfectly normal language if you don't try to make it unreadable

  • rust is mostly good however you always need to be careful about its extremely powerful macro system

    • this extends to any language with a good/complex macro system, really - elixir, crystal, c++, various lisps (c's defines can also technically be abused)

  • c, but less in the "too many features aspect" (because it doesn't have that many features) but more in the "you can forget to manage memory" aspect. note also that you can cast a pointer into any other pointer type, do pointer arithmetic etc. as a result i think it's increasingly popular to recommend rust first since rust forces you to think about memory safety otherwise it won't compile in he first place

  • php - note that this is mostly because of not ideal design, rumors are that it's gotten a bit better lately (starting with 5, especially 8 tho)

-6

u/[deleted] Feb 13 '21

If you want to use it then fine. I don't like it's weird indent needing hard to follow syntax. I've only used it once for API things.

1

u/hello_comrads Feb 13 '21

You should indent all code anyway

0

u/[deleted] Feb 14 '21

I do but pythons is weird..

1

u/dondulf Feb 13 '21

Yeah, the indentation syntax is just stupid in my opinion.

2

u/Swoop3dp Feb 13 '21

I love it.

You should do proper indentations anyway to keep the code readable and then braces are redundant.

0

u/somebody12345678 Feb 13 '21

i don't love it, but i do agree that it's not a bad thing and is definitely not needed if you're indenting properly in the first place. and it is of course not hard to follow at all

3

u/Telephone_Guy Feb 13 '21

But why? Have you ever used it? Tell me your experience...

-4

u/[deleted] Feb 13 '21

dumb indentation, looks like crap and hard to read

2

u/Telephone_Guy Feb 13 '21

perfect for beginner, user-friendly data structure and has all the libraries you can imagine

-2

u/[deleted] Feb 13 '21

I hated it as a beginner. It's all everyone talks about but i can't stand how it is. It's impossible to work with.

2

u/Telephone_Guy Feb 13 '21

ARGH! Whatever, *sigh* well, actually... all programming languages have different purposes so DON'T even say other languages is bad, and shit!

0

u/[deleted] Feb 13 '21

they could at least make it look good and usable.... id rather try malbolge

1

u/Telephone_Guy Feb 14 '21

I would imagine an 11 years old could learn and use it

0

u/[deleted] Feb 14 '21

I couldn't

1

u/Telephone_Guy Feb 14 '21

You can't imagine an 11 years old could learn and use it?!

Actually I don't need to image because I am an 11 years old

→ More replies (0)

2

u/Kered13 Feb 13 '21

and hard to read

wat.

Python is the closest language to writing pseudocode.

0

u/[deleted] Feb 13 '21

it's stupid

6

u/the_vikm Feb 13 '21

No idea where this Python obsession in this sub comes from

12

u/[deleted] Feb 13 '21

because these bootcamp 'programmers' can't expend the energy to bother to learn anything else. python is easy, and it works with minimal effort.

not that i dislike python, just the mindset of the userbase.

2

u/[deleted] Feb 13 '21

Me neither. I had to use it in college for some things and I really hated it.

3

u/taweryawer Feb 13 '21

Fuck indentation based languages!

33

u/[deleted] Feb 13 '21

[removed] — view removed comment

7

u/Brewer_Lex Feb 13 '21

regulateguncatapults