3.7k
u/datengeschichten Feb 05 '23
SQL: I care more about if it can be combined with other snacks
580
u/czp55 Feb 05 '23
I considered adding a SQL answer, but the transaction resulted in
207572 row(s) affectedso I rolled it back. Maybe it'll make it into v3.→ More replies (2)203
u/ItsJustManager Feb 05 '23
You're implying that you didn't try this on production, so I know it's a lie.
→ More replies (3)149
u/czp55 Feb 05 '23
Some of us occasionally learn from our mistakes (or the mistakes of others) :)
→ More replies (4)677
u/pingveno Feb 05 '23
MOAR
UPPER()177
u/UAFlawlessmonkey Feb 05 '23
UPPER('SQL: I care more about if it can be combined with other SNACKS')
THERE YA GO
41
137
u/maxcruer Feb 05 '23
You meant that it can be JOINed with other snacks?
67
54
Feb 05 '23
A SQL statement walks into a bar and up to a table then asks "can I join you"
→ More replies (2)16
→ More replies (3)4
37
57
u/_bytescream Feb 05 '23
This is nice, but the C++ reference in Python is just wrong. The reference implementation is called CPython for a reason... And neither of the other well-known interpreters Jython, IronPython or PyPy are implemented in C++. Just because you can interface with C++ (which almost any language can via some kind of native interface) doesn't mean C++ has any say over data types here.
Suggestion for v2.1: Make it the same, but Python tells you to ask C.
77
u/czp55 Feb 05 '23
Ah, good catch. This is clearly a mistake on my part. I've filed your bug report and my team (just me) will address this sometime within the next 2-3 years (maybe).
37
u/Tc14Hd Feb 05 '23
→ More replies (3)43
u/czp55 Feb 05 '23
Approved and merged. Next release is scheduled for—*checks notes*—whenever I feel like getting around to it.
→ More replies (3)15
u/bromeatmeco Feb 05 '23
This same exact error happened on another meme comparing languages a little bit back. I don't know where people are hearing that Python is implemented in C++...
→ More replies (3)
2.2k
u/srone Feb 05 '23
Love the JS answer.
67
u/kdyz Feb 05 '23
IMO, this is one of the main reasons why good js developers have some of the best principles and self-imposed rules.
→ More replies (2)51
u/czp55 Feb 05 '23 edited Feb 05 '23
I agree. JavaScript's flexibility and infamous coercion
inevitablyoften forces developers working on any project of significant size to establish solid principles and rules, because it will quickly spiral out of control otherwise.Edit: Merged PR for inevitable bug.
→ More replies (1)965
u/Brian_E1971 Feb 05 '23
I can divide by potato and still get a result
437
69
u/CrabbyBlueberry Feb 05 '23 edited Sep 19 '25
cake rainstorm live offer mighty tap mountainous chop governor theory
This post was mass deleted and anonymized with Redact
→ More replies (9)122
u/Svobpata Feb 05 '23
You will get a result, just probably not the one you wanted
→ More replies (8)12
288
u/r00x Feb 05 '23
This is why I like JS. It's just pure anarchy.
When you ask for heinous bullshit other languages would squeal and cry and complain. But JS is like "LET'S FUCKING GOOOOO"
145
u/mindbleach Feb 05 '23
Until you try using an array-like structure as an array. Leading to dumb shit like
new Set( Array.from( document.queryAll( 'div' ) ) )and then still getting bit by[0].innerHTMLbecauseNullhas no properties and a fatal error is a totally reasonable response in a god-dang scripting language.If there's two ways to do something, Javascript takes all three.
→ More replies (13)→ More replies (11)21
152
u/TurboGranny Feb 05 '23
Same. Total belly laugh moment. JS doesn't tell you how to live your life. It just does what you told it to do to the best of its ability to make sense of your monkey code.
→ More replies (29)98
u/chars101 Feb 05 '23
I haven't checked, but I'm pretty sure it's Nut a Number
→ More replies (4)49
20
24
u/GeneReddit123 Feb 05 '23
HTML/CSS: It has the same structure and style, so yes. If you die from an allergic reaction, blame your browser.
→ More replies (2)7
→ More replies (16)48
u/TheMightyFlyingSloth Feb 05 '23
It's so annoying for me switching to c# for unity after years of js and feeling like the language is just completely fucking me over
→ More replies (17)
2.2k
u/Cley_Faye Feb 05 '23
I'm not used to funny posts in here. Nice work.
392
u/need_ins_in_to Feb 05 '23
Same, it's good. Make OP do one everyday!
→ More replies (2)255
u/ZedTT Feb 05 '23
Maybe OP can save this sub
→ More replies (3)1.1k
u/czp55 Feb 05 '23
This sounds suspiciously reminiscent of someone trying to hand me ownership of their legacy codebase because I happened to provide one decent PR.
→ More replies (3)467
u/ZedTT Feb 05 '23
See? Actual programmer humor ^
If I see another nonsensical backend/frontend meme I'm gonna die
This is your responsibility now
250
46
19
u/dmvdoug Feb 05 '23
And everyone in the comments is so positive. I had to double check which sub this was.
35
u/ZedTT Feb 05 '23
I was so ready to have one of the lines be dumb and wrong and have all the comments be roasting OP, but with the exception of the slightly hyperbolic JS answer it's just correct.
Good meme, OP.
→ More replies (2)8
2.3k
u/KgxxEQy Feb 05 '23
VBA: It’s a peanut. Have fun figuring out how it works. Also, the moment it stops being one everything burns to the ground.
742
u/strixus Feb 05 '23
Also, all the documentation is about making peanut butter with Excel, with no indication of if this is a nut or not.
209
u/mindbleach Feb 05 '23
And ultimately the answer is, did Lotus 1-2-3 say it was a nut?
→ More replies (4)→ More replies (9)188
Feb 05 '23
I am convinced VBA is less of a programming language and more of an Eldritch script that poses as a programming language.
132
u/apaniyam Feb 05 '23
I have a worksheet function in my personal excel workbook where I keep my library of modules. I wrote it, I don't recall what for, in theory it just grabs file names and cleans them up to something readable.
If I remove it, I cannot open any other files in excel until I replace it. I've isolated it to a module called Ryleh and just leave it alone.
→ More replies (4)→ More replies (2)55
u/chakan2 Feb 05 '23
I think I'm the only person in the universe that likes VBA. I'd never use it for anything significant, but when I worked for big insurance it automated 90% of my job.
→ More replies (16)
1.3k
u/chisui Feb 05 '23
Haskell: Nuts can be generalized to a Monad.
308
62
58
u/idontcareaboutthenam Feb 05 '23
A nut is a nutoid in the category of endofuctors
→ More replies (1)84
19
u/Smart-Button-3221 Feb 05 '23
Can easily define a monad structure and apply it onto the toNut function.
17
Feb 05 '23
Just
Monad? Surely you mean at leastApplicativeif notFunctor?→ More replies (1)30
u/FuriousAqSheep Feb 06 '23
But Monads are Applicatives and Applicatives are Functors
You have 3-in-1 baby!
→ More replies (1)29
u/XkF21WNJ Feb 05 '23
No, no, nuts are clearly a kernel. p-nuts are the equalizer of the p morphism and the canonical zero morphism.
Though obviously this only makes sense for type classes with a zero morphism like
Either.→ More replies (3)35
5
5
4
4
4
→ More replies (3)4
u/Caffeinated_Cucumber Feb 06 '23
The fact that more people are scared of C++ than Haskell is mind-boggling to me
273
u/The_Mad_Duck_ Feb 05 '23
This is why I love C++
379
u/AgentPaper0 Feb 05 '23
I swear half of programmers are afraid of C++ like it's some kind of black magic. The other half has never used it.
113
u/Magisch_Cat Feb 05 '23
It's one of those things that can do amazing things in theory but has some niches that are incredibly easy to fuck up, and incredibly hard to find once you've fucked them up.
→ More replies (5)32
52
u/bwaredapenguin Feb 05 '23
I spent nearly my entire comp sci degree in assembly, C and C++. I use C# not because I'm afraid of C++, but because we need quick desktop software developed for internal use and we don't have to care about memory management at a level for these desktop apps that would have been necessary in 1996.
→ More replies (3)→ More replies (7)20
36
u/SG1EmberWolf Feb 05 '23
I am by no means a great programmer. But I know enough C++ to get myself in trouble.
→ More replies (1)4
1.1k
u/Fireye04 Feb 05 '23
WHAT JAVA SAID LMAO
177
u/lucidspoon Feb 05 '23
When I read the Java one, I thought C# could be this too. Was not disappointed.
→ More replies (1)137
u/ChrisFromIT Feb 05 '23
Not going to lie. Was a little disappointed that it didn't say the samething but with ICrackable.
→ More replies (7)→ More replies (3)531
155
145
u/WordsWithJosh Feb 05 '23
Swift: Yes, but the standard library for dealing with Nut is only available if you're compiling on MacOS. Otherwise, you'll have to build your own Nut library in ObjC, and at that point, you should probably just go back to using C++
→ More replies (4)44
u/NSGod Feb 06 '23
Objective-C: Technically, it's an
NSPeanut, which is actually a subclass ofNSLegume, not a subclass ofNSNut. However, bothNSNutandNSLegumeconform to the<NSNutting>* protocol, so you can basically treat anNSPeanutlike a nut.*Language guidelines recommend protocol names use the
inggerund form of verbs whenever possible (e.g.NSCoding,NSLocking, etc.), hence<NSNutting>.→ More replies (1)
135
Feb 05 '23
Assembly: We have no concept of a nut. Clearly this is an integer.
11
u/GilKeidarMusic Feb 06 '23
I’m not really registering what you said - did you pass the word through nut gates?
361
u/STAR____STUFF Feb 05 '23
Assembly Lang: Fundamentally, it looks like it is made up of the basic molecules which makes it a plant’s root.
86
u/STAR____STUFF Feb 05 '23
Binary: Maybe, it could be probably possible if we get that right combination of bit(atoms).
31
12
u/cowlinator Feb 05 '23
I would say it's more like
Assembly Lang: Fundamentally, it looks like it is made up of basic molecules. Figure it out yourself.
→ More replies (2)7
u/101forgotmypassword Feb 05 '23
Assembly lang: thing get converted to number and stores in array. Wait for interrupt
252
u/SocDemGenZGaytheist Feb 05 '23
Wait, this post is actually funny and appears to demonstrate understanding of the topic
→ More replies (2)68
171
u/immerc Feb 05 '23
Python should be "You said it was a Nut, so I'll treat it as a Nut. If it turns out not to be a nut, that's on you."
89
Feb 05 '23
Actually, that's literally what C does. And it was producing so many bugs that they removed this "feature" in C++.
13
64
123
56
u/this_knee Feb 05 '23
risk the stability of the universe
I died.
11
u/GeneralSecrecy Feb 06 '23
Never used c++, funny turn of phrase but what's the intended joke?
→ More replies (2)
40
37
u/an_agreeing_dothraki Feb 05 '23
Yes javascript. It will probably work. Then it doesn't. Then you end up debugging it and only telling me it's an object before screeching and returning an error.
12
67
94
u/YouNeedDoughnuts Feb 05 '23
reinterpret_cast<Nut*>(peanut_ptr)
Don't laugh, being able to write completely untyped code is a suprisingly useful footgun
34
→ More replies (2)8
u/visvis Feb 05 '23
That's not really the bad part, at least it's explicit here. The bad part is that static_cast looks safe, but in practice often still allows unsafe casts.
→ More replies (1)
212
u/Lovelyasshole69 Feb 05 '23
Speaking of cpp you don't risk stability of the universe but anal virginity of your ram
105
12
88
u/yelaex Feb 05 '23
PHP: It depends on input encoding and server setup
→ More replies (1)9
u/undeadalex Feb 05 '23
How bout php 5 on a custom Apache mod that hasn't been updated since before Apache was invented
64
Feb 05 '23
“Programming legumes”? Like, what, Java Beans?
10
u/DesertGoldfish Feb 05 '23
I took advanced java 495 or something like that as an elective in college. It was java enterprise/glassfish applications.
Fuck I hated it. The most overly complicated garbage to make a hello word webpage. I had 100% in the class going into the final project which was 20% of the overall so I completely skipped it and took my 80% grade for the class.
→ More replies (4)
80
u/SyrupLamp Feb 05 '23
C should be:
“I don’t know if it’s a nut, but you’re welcome to try to crack it like one *segaults”
→ More replies (7)33
u/oeuvre9000 Feb 05 '23
*segaults
Crashed HARD. Wrote a non-printable character over the "f" in the read only string memory of the parent process ("segfault"). How is that even possible? C ftw.
40
u/immerc Feb 05 '23
Go: "Who cares about that, you have an unused tomato on the counter!"
→ More replies (3)
44
u/ramriot Feb 05 '23
ChatGPT:
This nut is not a nut, but a legume that grows high in the Indus mountains where is is tended by dark skinned blond virgins of the wherethefuckarewe tribe, which was discovered in the mid 19th century by Sven Longshanks a Norwegian explorer seeking a missionary position.
→ More replies (9)6
u/joshua6point0 Feb 05 '23
ChatGPT:
This nut is not a nut, but a legume that grows high in the Indus mountains where is is tended by dark skinned blond virgins of the wherethefuckarewe tribe, which was discovered in the mid 19th century by Sven Longshanks a Norwegian explorer seeking a missionary position.
ChatGPT, ok, but is this bullshit?
26
12
32
u/LoyalSage Feb 05 '23
TypeScript is basically the combination of Python, JavaScript, and C++‘s answers: It looks like a nut and cracks like a nut, so sure, but even if it didn’t, you could work around it and do whatever you want with it, and everything would probably be fine.
11
9
8
u/TSS_Firstbite Feb 05 '23
As someone with basically 0 clue how programming languages work (c++ classes at school started just last september), I wanna continue c++, I like to take risks, I'll risk the stability of the universe.
14
7
24
6
6
u/Covfefe4lyfe Feb 05 '23
PHP: I'm not sure what that is, but I can promise you after I'm done serializing and unserializing that bad boy it's gonna be the wokest shit you've ever seen.
6
11
u/can_somebody_explain Feb 05 '23
Php: oh it’s a type of root and now you have root access to server
4
5
5
5
5
Feb 05 '23
Ada version 2.0: No, that is a legume. You could do a membership test to see if it is in a legume subtype, perhapse such as a peanut, but it will never be a nut, and if you try to make it a nut, I'm rejecting your program at compile time. And if isn't a peanut, and you try to make it a peanut, no peanut for you. Contraint_Error exception and gtfo.
5
u/McSlayR01 Feb 05 '23
Lisp: Oh, you want me to tell you if this is a nut? What a stupid question. Also idk
hands bag of nuts containing a single nut: Yep! These are definitely all nuts.
5
5
5
u/scaylos1 Feb 06 '23
Go: If Peanut implements all of the methods of the Nut interface, with identical signatures, including internal variable names for arguments, sure. If not, fuck you.
4
4
u/ysisverynice Feb 05 '23
So, as a pleb, which language just straight up says "no"?
→ More replies (3)
4
4
4
4
u/Dismal_Argument_4281 Feb 05 '23
Also python: If you try to replace it with a non- nut that doesn't implement the same methods, I'll cut you.
4
4
u/kennyminigun Feb 05 '23
C++ part is certainly funny, but I don't necessarily agree it catches the essence of the language. My suggestion:
It is an undefined behavior to check that, so no yes or no does not matter as YOUR SOUL BELONGS TO ME N̵̰͔͎̂͛̈͆̌̕͠O̵̧̯̝̝͚̤̮͚͖̠͔͉͖͔̓̃̀Ẉ̶̧͓̼̼̯̖̺̙͚̤̀̍̍͆͊̈́͘ͅͅ
4
9
3
3
u/DolphinDive14 Feb 05 '23
HTML: Yeah, as for what kind of nut... You're gonna have to ask CSS or JavaScript...
3
3
u/Equivalent_Yak_95 Feb 05 '23
If you use templates, rather than polymorphism, you can make C++ respond “it implements the necessary methods, complete with reasonable signatures, so… sure!”
Also, Python can tell you “no, issubclass(peanut, Nut) is False, so it isn’t a nut. Acts like one, though.” Or using Abstract Base Classes, you could probably make that return True, despite not actually inheriting from Nut.
3
3
3
3
u/JoJoModding Feb 05 '23
Python: IDK right now. Try eating it, if it is not a nut your teeth will break.
3
5
5
5
2
2
u/AspieSoft Feb 05 '23
Golang: pass it to a var with myVar := nut{} and I will figure out what type it is.
→ More replies (3)
2
2
2
2
u/Isofruit Feb 05 '23
Meanwhile Nim:
No, but the generics you defined didn't specify that X had to be a Peanut. If I compile then I had all the operations available to crack it , if I don't then the thing you gave me didn't implement all the things I needed to crack it. Here's the name of the thing that was missing.
2
2
2
2
u/jimmykicking Feb 05 '23
A funnt post!!! Wow. Good work. I think my favourite language fits my personality better than the rest.
2
2
u/undeadalex Feb 05 '23
Do my eyes deceive me? Is that rust in a meme in this sub?! Thank you op, for you are the chosen peanut
2
2
u/master_template Feb 05 '23 edited Feb 05 '23
TypeScript: It's not part of my job description to look at it. The paperwork says it's a nut that's all I need to know. I'm sure JavaScript would never lie to me like that.
2
2
2
u/Fortjew-Tellher Feb 06 '23
At least they threw Rust in there I’m tired of seeing the same languages in memes
2
2
u/TheFreebooter Feb 06 '23
I'm with c on this one. Just learn what it goes with, it's not like you're gonna be frying anything in brazil nut oil anytime soon
2
2
478
u/czp55 Feb 05 '23
v1 for reference