r/ProgrammerHumor • • 21d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.6k Upvotes

224 comments sorted by

195

u/youtubeTAxel 20d ago

Sure...

Like C wouldn't just segfault

28

u/Oblivious_catalyst 20d ago

i had this really weird bug in a C program i wrote once where for some reason running this random function would cause my program to make argv point to garbage data. spent days debuging it. turns out it was because i forgot to allocate memory to an array and it was overwriting the pointer.

→ More replies (2)

122

u/Stemt 20d ago

The programmer is the one that told C to cause a segfault, C just does it.

12

u/MrRamRam720 20d ago

C would create 200 CVEs to be discovered 10 years later

→ More replies (1)

17

u/jediorange 19d ago

These make no sense for the most part. I don't see any humor here.

→ More replies (1)

14

u/svenissimo 20d ago

You know when your old. Developed in all of these

10

u/Stackitu 21d ago

What about HolyC?

3

u/Oblivious_catalyst 21d ago

what joke do i even make for that?

14

u/PGSylphir 20d ago

"That is heresy"

7

u/D3PyroGS 20d ago

"If the LORD wills it so"

27

u/SuitableDragonfly 21d ago

HolyC says, "I asked God, he said not to."

371

u/STEMpsych 21d ago

I'm uncomfortable with the implication that the only thing wrong with javascript is its speed.

15

u/prehensilemullet 21d ago

speed isn't a big problem with JS these days anyway, V8 is quite fast

4

u/Oblivious_catalyst 21d ago

debatable

10

u/prehensilemullet 21d ago edited 20d ago

It’s not comparable to native languages but it’s faster than any PHP, Python, Lua, or Ruby interpreter/JIT out there afaik.  It’s way faster than you would think for a scripting language.  Google has put a shit ton of work into optimizing it.  If you haven’t experienced it firsthand then you would very likely be surprised

Edit: apparently LuaJIT is close and sometimes faster, I missed that in my googling

8

u/Oblivious_catalyst 21d ago

i'll give you the other 3 (not that it's a high bar) but from my experience lua is actually blazing fast for an interpreted language. sure as hell blows nodejs out of the water. (and i like nodejs)

→ More replies (1)

249

u/Ri_Konata 21d ago

i more interpreted it not as a speed thing, but as a "it has a mind of its own" thing, causing ut to do whatever it wants and it'll only do what you want it to do if it aligns with JavaScript's wishes

124

u/javascript 21d ago

I do have big wishes

→ More replies (2)

11

u/Scientific_Artist444 20d ago

I interpreted it as asynchronicity.

→ More replies (2)
→ More replies (2)

30

u/jam_pod_ 20d ago

JS: your request makes no sense but I’ll do my best to figure something out!

29

u/throwaway563125685 20d ago

in javascript (!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]] and "tears" are the same thing, and that was done on accident

→ More replies (2)

13

u/AvidCoco 20d ago

It’s not a speed thing, it’s an async thing.

→ More replies (4)

8

u/Flat_Initial_1823 21d ago

I thought that was more of a #JustAsyncThings

7

u/HugoNikanor 20d ago

I read it as a joke on "everything" being async.

→ More replies (2)

8

u/read_eet 20d ago

I don't see Delphi in the list

6

u/Oblivious_catalyst 20d ago

enlighten me.

2

u/read_eet 20d ago

I was just curious what developers think of it as a language.

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

4

u/visualdescript 20d ago

No Perl is the bigger miss, sad

→ More replies (4)

14

u/garlopf 21d ago

TIL I'm the undertaker

3

u/Oblivious_catalyst 21d ago

huh?

9

u/garlopf 21d ago

"it's your funeral" all day long

7

u/gtiger86 20d ago

Where is a Basic? Any version

3

u/Oblivious_catalyst 20d ago

has anyone used basic since like 1999?

3

u/amatulic 20d ago

Visual Basic is still alive and well. It's the only macro language available for Excel, and I have used it extensively.

As far as I know, HP Rocky Mountain Basic is also still in use, in test & measurement environments. I used it long time ago, and it had builtin support for complex math and matrix math, as well as instrumentation control.

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

24

u/GarThor_TMK 21d ago

Having used rust for a bit, I feel like it should be more like...

No.

Lua should be starts sweating... 😅

5

u/Oblivious_catalyst 20d ago

in my head i think of rust as deeply paranoid with crippling anxiety that overprepares for everything

6

u/metaltyphoon 20d ago

It's more "My way or the highway" or "You are doing it wrong"

→ More replies (1)

4

u/Beastmind 20d ago

Nah, cargo would tell you how you failed your life because you tried to borrow some shit you already borrowed earlier

→ More replies (1)

799

u/New_Salamander_4592 20d ago • Popcorn Bravo

C++: answer my make file riddle of three if a compiled program you wish to see

69

u/-Kerrigan- 20d ago

Ask me the questions bridge keeper compiler, I am not afraid!

23

u/gerbosan 20d ago

What's your favorite keyword?

29

u/Oblivious_catalyst 20d ago

in C++ mine would probably be volatile

→ More replies (1)

11

u/gerbosan 20d ago

Well, I don't know. Aaaaiiieeee!!

→ More replies (2)

4

u/Classic_Appa 20d ago

What is your filename?

100

u/Ignitrum 20d ago

Well pack it up guys, we're not beating this jewel of a joke

→ More replies (1)

4

u/unknown_pigeon 20d ago

Have you ever used python?

There will always be a convenient library written in C that will make your script almost as fast as if it was written in that language.

19

u/Oblivious_catalyst 20d ago edited 20d ago

so essentially the best way to use python is to not use python?

2

u/Leather-Persimmon254 20d ago

1

u/Oblivious_catalyst 20d ago

i know what abstraction is. i get the concept. my point being if the only way to make your language fast is to exclusively call functions from C libs then what's the fucking point?

4

u/NullOfSpace 20d ago

The intent of python as a scripting language is as a convenient wrapper and way to use existing tools. It’s not a language for writing software, it’s a language for performing tasks using said software.

→ More replies (1)

2

u/unknown_pigeon 20d ago

Well well

3

u/Oblivious_catalyst 20d ago

fuck is that supposed to mean?

→ More replies (1)

5

u/JorgiEagle 20d ago

I mean….. you’re not wrong

1

u/Oblivious_catalyst 20d ago

have you ever used any language other than python?

141

u/Popstar403 21d ago

godotscript:

here, let my child do it:

here, let my child do it:

here, let my child do it:

here, let my child do it:

here, let my child do it:

here, let my child do it:

...

108

u/readf0x 20d ago

I audibly laughed at APL, truly the most illegible programming language

24

u/WystanH 20d ago

Same. That one felt like the most arcane reference. It has a logo? That APL?!?

The syntax existed before the implementation. The author didn't imagine anyone would try to type it.

5

u/JollyJuniper1993 20d ago

Gotta do it with abbreviations in the IDE, like with Julia or Latex.

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

15

u/Daniikk1012 20d ago

It's surprisingly not, once you learn what the symbols mean. In fact, the symbols become an advantage once you get used to them, sort of like how it is more readable to use "+" rather than "plus" in math expressions

9

u/StCreed 20d ago

Yeah... I feel like you're kinda on your own here 😀

5

u/JollyJuniper1993 20d ago

You might wanna check out Uiua then, that one‘s even worse

65

u/Daniikk1012 21d ago

If you were to keyboard mash for APL, at least do it with the proper characters:

⌶⍫⍒⊖⍋⍟⍱⍲⌽¨¯<>≠∨=∧⍺⌈∊⌊⍴↑↓⍳○⌈⌊_⊥⍹↑↓⍷⍸⍥⌊∆_∩⍤

9

u/OuPau 20d ago

it's a meme, not a faithful representation

→ More replies (1)

45

u/Ben_0 20d ago

Lua: Done!

checks output

Output: nil

39

u/urbanek2525 21d ago

LISP: (((Sure)why)not)?

27

u/LJonReddit 20d ago

SQL: I can, but I really shouldn't. Go ask C#.

27

u/xXHomerSXx 19d ago

No COBOL, if you die the world dies.

→ More replies (1)

25

u/CirnoIzumi 21d ago

Swift: only if you bring my buddy Xcode

25

u/da_dragon_guy 21d ago

Can we get more of those old ‘Star signs in different situations’ shitposts but instead of astrology it’s coding languages?

38

u/Ex_Federa 20d ago

As yes, C. Famously the easiest language to do things in.

36

u/b183729 20d ago

Oh, it will do it. It will do exactly what you tell it to. That's the problem. 

25

u/da_Aresinger 20d ago

It is though.

C doesn't fail on complexity. It fails on convenience and safety.

24

u/ncatter 20d ago

In my admittedly small experience C does exactly what you asked for, no questions asked.

9

u/evilcandybag 20d ago

Unless you do something undefined. Then it's demons out of your nose.

8

u/amatulic 20d ago

Yup. You want it to write data beyond the bounds of an array? No problem. You asked for it.

I remember a quotation from when Pascal was taught in schools. You could say the same about Python nowadays:

"Pascal gives you a water pistol filled with distilled water. C not only gives you a loaded .357, it points it at your head as a default. Why do you think Pascal is taught in school? And which would you rather have when there is a hungry bear in the area?"

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

10

u/conundorum 21d ago

FORTRAN: So far away.

2

u/hraath 21d ago

"if this isn't a matmul job, I'm out"

10

u/ancientstraits 20d ago

What did my goat Lua do...

19

u/creeper6530 20d ago

Nothing 

65

u/Independent-Tank-182 21d ago

Child when making dumbass memes:

45

u/hraath 21d ago

Rust: please call back in 2-4 business weeks for compiling to be completed

24

u/WilkerS1 21d ago

nah, that's for the language server. it takes longer to actually compile

10

u/Usual_Office_1740 21d ago

Monomorphization no go brrr?

→ More replies (1)

8

u/redditor50613 21d ago

i saw something about floppy disks being used in some govt agencies and thought oh probably COBOL.

7

u/SuitableDragonfly 21d ago

Go should say, "I'm not responsible if something goes wrong, k?"

6

u/Just-Signal2379 21d ago

TS: I'm sorry you're not my type, also js come here for a sec

6

u/Cootshk 20d ago

Lua should say nil

15

u/nicodeemus7 21d ago

VBScript: "Please don't use me"

5

u/notexecutive 21d ago

CoaxedIntoBiasedProgrammerHumour

5

u/vanteli 21d ago

sad D language noises

5

u/Smalltalker-80 20d ago

"It's your funeral" LOL

5

u/Selentest 19d ago

Perl:

I guess i'll die

9

u/HeavyCaffeinate 20d ago

I will not accept this Lua slander

8

u/gerbosan 21d ago

well you don't really need Rails for it to work. Perhaps rbenv or mise. Mise is fine.

I think Java could be asking for:

4

u/xX_UnorignalName_Xx 20d ago

Haskell: you want me to WHAT?

4

u/CaptainHawaii 20d ago • Bravo

I'm in this image and I don't like it ... Java was my first language and that's literally my usual first question....

7

u/TSCCYT2 20d ago

WTF is APL?

10

u/Key_River7180 20d ago

A language with a lot of ✨ Unicode ✨

4

u/amatulic 20d ago

APL literally means "A Programming Language". See Wikipedia for more information.

3

u/AstroCaptain 20d ago

A Programing Language (APL) from the 60s that most terminals and displays of the time couldn't even display the character set properly of

3

u/Daniikk1012 20d ago

You were already told about the character set it uses, so let me say more about the rest.

APL is the language that pretty much invented the array programming paradigm, like the one you would see in NumPy. In APL, typing 1 2 3 + 4 5 6 gives you 5 7 9, automatically applying addition to each element. It has a lot of other symbols for many different kinds of operations like reversing, sorting, transposing, reducing, scanning, searching, etc. This allows you to write programs very concisely, without using loops or branching

→ More replies (2)

3

u/ExtraTNT 21d ago

Haskell: i will it evaluate it, once i evaluated, that it’s really needed, to do that, i will use monoids in the category of endofunctors.

3

u/armahillo 20d ago

Ruby stan here — Ruby is actually a really awesome language on its own, without rails.

My day job is predominantly in rails (with some plain ruby scripts) but i write a lot of plain ruby scripts outside of work.

6

u/Sea-Fishing4699 20d ago edited 20d ago

I hate to admit but… python is the only one willing to do the job… python talks to cpython and the job is done

4

u/polandreh 20d ago

If you touching SQL makes you drop the entire database, then you shouldn't do SQL, like at all... leave it to the DBAs...

2

u/meinkr0phtR2 20d ago

INTERCAL: please

2

u/amatulic 20d ago

I would have liked to see Ada in that list.

1

u/SimonsOscar 20d ago

Shouldn't there be some coherent logic behind these? Like a good extended analogy, no?

1

u/MagicBandAid 20d ago

Ada: I'm going to need to see some ID.

1

u/Mountain-Ox 20d ago

Actually, Go doesn't understand what this "try" word means. Do or panic, there is no try.

1

u/Coffee_exe 20d ago

“Lua: no” damn.

1

u/Aelig_ 20d ago

This post can't have been made by a human. Is anyone human in this thread at all? This has to be the most appalling thing I've seen in this sub in years.

1

u/tubbstosterone 20d ago

Correction:

Python: "Hey C, can you come over here for a sec..."

1

u/Mysteryman5670_ 20d ago

Rust: yes, but you will need 5 brazillion dependencies and you won't actually be able to compile it because rustc will get oomkilled or otherwise seize your entire bloody machine.

1

u/sagotly 20d ago

dont get the go one

1

u/JAXxXTheRipper 20d ago

TIL SQL is a programming language

1

u/PossibleAthlete2988 20d ago

Omg lua is here

1

u/[deleted] 19d ago

C#: yeah give me a few years to compile

1

u/[deleted] 19d ago

Python in reality: “Give 3-5 business minutes”

1

u/Hm_bmb 19d ago

Delphi (Pascal): I can do it without any problem

1

u/namitynamenamey 19d ago

To be fair to python, it wanted to do research and development, not service industry code.

1

u/ekipan85 19d ago

Forth: ok

1

u/PrefectedDinacti 18d ago

I'm making a World of Warcraft addon and apparently Lua is indeed saying no

1

u/TSS_Firstbite 21d ago

Damn, I'm a student, have had some experience in a good chunk of these languages and the one that speaks to me the most is Lua refusing to do anything

-3

u/queen-adreena 21d ago

Programmer: Can you do some-

Rust: Done!

-11

u/Choice-Committee203 20d ago

what is wrong with c++? if we're talking about modern c++ (at least c++11 or even latest c++23) then it's a pretty good language, you can just... use the stl. it's not c with classes anymore, it has lots of lots of actually good features. you can literally just code without worrying about memory management like in c. c++ works on RAII, where object's constructor allocates memory (often automatically now) and destructor frees it (also automatically). it's much more similar to java, but with more features. i think nowdays you need to think more about memory in java, take string comparation or array copying for example, in java str == "meow" is compating the pointers so the result is almost always false, so you have to use ugly str.equals("meow") workaround. in c++, there's a thing called operator overloading, where you don't write the .equals() methods, but just overload the == operator itself for that object, so str == "meow" works as intended. or in java when you do array2 = array1 then it's again copying the pointers, so that array1 and array2 now again point to the exact object in memory. in c++, again, the std::array which you hopefully should use instead of c-style arrays, is again overloaded, so array2 = array1 actually deep copies the data from array1 to array2. if you keep using raw c pointers*, raw c arrays[], raw c malloc/free, raw c strings (char*) then OBVIOUSLY you're going to receive a segmentation fault some day, if you use safe std::unique_ptr/std::shared_ptr, std::array/std::vector, raii principles, and std::string, then c++ is a fucking modern safe language!!!! #stopcppstereotypes

anyways, about the image: c++ should be "On it, boss!" c should be "Segmentation fault (core dumped)

7

u/Choice-Mango-4019 20d ago

anything can give segfault if you're good enough

→ More replies (1)

-5

u/stupled 20d ago

What the F is Lua?

7

u/da_Aresinger 20d ago

A scripting language commonly used in video games and for end user programming.

It basically a drop in programming language that can be used to control other programs.

6

u/Ok_Confusion4764 20d ago

A scripting language used in some videogames (mostly older ones like Garry's mod). Basically it's made to serve designers who aren't full programmers but ended up serving nobody because it's a hassle for both the programmers and the scripters to maintain. Programmers can give it functions (sort of), but you're basically going to be wrestling a stack which will contain some relevant data and some data the scripter defined. 

What's a type? What's a definition? Sure you can set that to this, I ain't checking if it exists. Whoops, you did something wrong, do try and read out this stack entire stack! No, why would we implement some kind of intellisense, it's a scripting language so simple!

Hell, Gmod has achievements for getting a thousands of lua scripting errors. And I'm pretty sure they're achievable without ever downloading something from the steam workshop. 

3

u/MonMotha 20d ago

It's a scripting language specifically designed to be easy to embed within larger applications. It does that part pretty well, but the language itself can be a little weird (1-based indexing and "everything's a table").

It's useful for allowing less technical users to programmatically alter small parts of a larger program's behavior. That does make it popular in games.

2

u/mikachuu 20d ago

I’d tell you, but then you’d be crying too.

2

u/soowhatchathink 20d ago

It's a simple scripting language, people don't usually use it to make full apps but instead use it to let users write their own scripts. Roblox uses it (or a fork of it) to let people script in servers and Hammerspoon uses it to let you write automations you can run.

It's a fun language to use, I think. Its fairly limited but it's a step up from bash.

2

u/no-sleep-only-code 20d ago

It’s pretty terrible, but it’s a really really simple language where everything relies on the stack. Writing assembly is more fun.

2

u/FactoryNewdel 20d ago

The reason GTA V exists

2

u/sn4xchan 20d ago

It's kinda like even easier python. Feels more like inputing sever commands when playing on a game server, but with coding syntax

8

u/Bitter-Fuel-5519 20d ago

a i see Its C circle jerk

3

u/Oblivious_catalyst 20d ago

bro my most used langs are javascript and C#. circle jerk my ass.

1

u/zman0900 21d ago

Lisp: OK, bend over and spread em

1

u/The_Cre4tor 20d ago

Haskell: "Go k*ll yourself"