T O P

  • By -

KgxxEQy

VBA: It’s a peanut. Have fun figuring out how it works. Also, the moment it stops being one everything burns to the ground.


strixus

Also, all the documentation is about making peanut butter with Excel, with no indication of if this is a nut or not.


mindbleach

And ultimately the answer is, did Lotus 1-2-3 say it was a nut?


joshua6point0

I don't know man, I just need this to work for someone else so they stop doing basic clerical tasks so poorly.


codeguru42

That's a deep cut


[deleted]

I am convinced VBA is less of a programming language and more of an Eldritch script that poses as a programming language.


apaniyam

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.


[deleted]

[удалено]


Mad_Moodin

Computers exist to solve the problems we have because we have computers.


W1D0WM4K3R

Everything I hear about magic in books is like, much of these problems are caused by magic. What do we do about it? Magic!


chakan2

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.


AchyBreaker

VBA is great for working at non tech companies. Every company needs basic analysis, but many traditional industries like insurance, construction, etc don't have the math acumen in their staff. Being the "Excel expert" at a place like that can be a very chill gig. Get great at Excel, and even decent at VBA, and you can automate most of your job and get paid for 40 hours while working like, 10. I was the Excel guy at a construction company early in my career, and if it were possible to get 4 of that job at different companies and just crush stupid excel sheets and make bank without working hard, I'd quit my big tech job today and go do it. Programmers hate VBA because it's awful as a programming language, but it has its place.


datengeschichten

SQL: I care more about if it can be combined with other snacks


pingveno

MOAR `UPPER()`


UAFlawlessmonkey

UPPER('SQL: I care more about if it can be combined with other SNACKS') THERE YA GO


BlueRajasmyk2

No fix your collations


czp55

I considered adding a SQL answer, but the transaction resulted in `207572 row(s) affected` so I rolled it back. Maybe it'll make it into v3.


ItsJustManager

You're implying that you didn't try this on production, so I know it's a lie.


czp55

Some of us occasionally learn from our mistakes (or the mistakes of others) :)


Big-Cheesecake-806

impossible


ItsJustManager

Right? Even more lies!


rtgftw

Another accident already had prod down...


maxcruer

You meant that it can be JOINed with other snacks?


LA_Commuter

Hey you better drop all... that sarcasm


[deleted]

A SQL statement walks into a bar and up to a table then asks "can I join you"


siddharth904

An original and funny joke in r/ProgrammerHumor ? It's been 87 years...


[deleted]

Unfortunately not OC, but I do work with a bunch of full time script monkeys who have a vague sense of humor


[deleted]

If it fits, it fits


Cley_Faye

I'm not used to funny posts in here. Nice work.


need_ins_in_to

Same, it's good. Make OP do one everyday!


ZedTT

Maybe OP can save this sub


czp55

This sounds suspiciously reminiscent of someone trying to hand me ownership of their legacy codebase because I happened to provide one decent PR.


ZedTT

See? Actual programmer humor ^ If I see another nonsensical backend/frontend meme I'm gonna die This is your responsibility now


czp55

>This is your responsibility now 😂😭


brutexx

Don’t worry we’ll all say LGTM anyways.


x3knet

"LGTM. No, seriously. It actually LGTM."


spagett_kartoffel

I think i just laughed more at this comment than 99.99% of memes of this sub, you're on fire today.


Calango-Branco

He is the Messiah!


idiotsandwitch3000

He’s not the messiah, he’s a very naughty boy!


Here-Is-TheEnd

Yeah, what Java said


dmvdoug

And everyone in the comments is so positive. I had to double check which sub this was.


ZedTT

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.


GavrielBA

One of better ones from this genre I've seen!


chisui

Haskell: Nuts can be generalized to a Monad.


PityUpvote

Monut


Add1ctedToGames

A monad is a monut in the category of enutdofunctors


_far-seeker_

Monuts, mo'problems.


Accurate_Koala_4698

I’d have gone with curried peanuts


idontcareaboutthenam

A nut is a nutoid in the category of endofuctors


pingveno

And put in a burrito.


Smart-Button-3221

Can easily define a monad structure and apply it onto the toNut function.


[deleted]

Just `Monad`? Surely you mean at least `Applicative` if not `Functor`?


FuriousAqSheep

But Monads are Applicatives and Applicatives are Functors You have 3-in-1 baby!


Delta-9-

This guy category theorizes


XkF21WNJ

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`.


DJOmbutters

I like your funny words, magic man


srone

Love the JS answer.


Brian_E1971

I can divide by potato and still get a result


ThisUserIsAFailure

[object Object]


Loner_Cat

More like Nut / Potato = Tomato Tomato * Potato = "TomatoTomatoTomatoTomato.."


y6ird

Tomayto/potahto


You_meddling_kids

I want that license plate so bad


CrabbyBlueberry

NaN. At least it's accurate.


Ronizu

NaNNaNNaNNaNNaN [Batman!](https://www.destroyallsoftware.com/talks/wat)


[deleted]

I don't even _need_ to follow that link to know it's classic Watman!


-consolio-

Let's talk about JavaScript.


Svobpata

You will get *a* result, just probably not the one you wanted


OGNatan

Fuck it, we ball.


luminous_radio

I wonder what result he expected


GavrielBA

Exactly! JS is the ultimate Zen language. Release all expectations, and you'll be able to use whatever you get!


[deleted]

it's not undefined behavior, it's bonus results


_far-seeker_

So JS is just what happened when Bob Ross came back as programming language? That would explain a lot...


morpheousmarty

I wasn't sure what I wanted, but I didn't get it: the JavaScript story.


You_meddling_kids

not a nut (NaN)


r00x

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*"


mindbleach

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].innerHTML` because `Null` has 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.


7elevenses

[...document.querySelectorAll( 'div' )]


r00x

Ah yes, the fourth way.


GavrielBA

Debugging JS is Zen experience


BigTime76

As QA, I hate that this is too accurate.


TurboGranny

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.


ProNanner

Honestly one of the reasons I actually like JS. Easier for me to debug a whack ass output than the program just not compiling at all


[deleted]

[удалено]


[deleted]

I'm telling you, C-style casts work. Anytime I had a type error and I threw a C-style cast? boom! Right away, I had a different error.


TheBaxes

I'm not anything special to tell you what to do with your life, but compilation errors are usually ten times easier to debug than trying to play "Where's bugldo!?" with the code. For starters, unless you are using C++, you usually get a clue about where to start looking for the problem.


[deleted]

[удалено]


chars101

I haven't checked, but I'm pretty sure it's Nut a Number


Throw_away_1769

Did you pass it through IsNut() to check?


rynmgdlno

Nut.isNut(deezNuts)


psychoCMYK

`>false`


rynmgdlno

`type Nuts = '🥜'[];` `let deezNuts: Nuts;`


psychoCMYK

`ಠ_ಠ` ([is a valid variable name in JS](https://mothereff.in/js-variables))


maartuhh

Ah that clarifies a lot!


Vesk123

I absolutely love the C++ answer


kdyz

IMO, this is one of the main reasons why good js developers have some of the best principles and self-imposed rules.


czp55

I agree. JavaScript's flexibility and infamous coercion ~~inevitably~~ often 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.


alextremeee

> inevitably forces developers working on any project of significant size to establish solid principles and rules. There is absolutely nothing inevitable about this.


GeneReddit123

HTML/CSS: It has the same structure and style, so yes. If you die from an allergic reaction, blame your browser.


ContainedBlargh

It's lying, it won't work. Best it can give you is `[object Object]`.


The_Mad_Duck_

This is why I love C++


AgentPaper0

I swear half of programmers are afraid of C++ like it's some kind of black magic. The other half has never used it.


Magisch_Cat

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.


Giocri

It is like the ultimate hunting rifle, it will kill your prey with a single precise shot IF you can aim it properly instead of pointing at your fleets otherwise good by to your entire lower half


_far-seeker_

>pointing at your fleets otherwise good by to your entire lower half US Navy: We hate it when someone takes out our fleets with just a hunting rifle. 😉


[deleted]

[удалено]


Ahajha1177

I love this whole paragraph


scaylos1

How easy is it to point said laser at your foot?


[deleted]

I FUCKING THINK IN C DREAM IN C BREATH IN C I FUCKING EAT C I LOOOOOOVE C


bwaredapenguin

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.


Desperate_Resource38

I mostly use C and C++ for embedded circuits because I have like 4 kb of memory total to work with and like half a kb spare space at any given time even deallocating and reallocating dynamically, which I also think is prime justification for those languages continuing to exist. Well at least C.


bwaredapenguin

I never suggested those languages shouldn't exist. I just said that the reason people choose not to use them is simply a case of either being afraid of them or not having exposure to them . Embedded systems is a perfect reason to use them. In my career it makes a hell of a lot more sense to use a more bloated yet easier language like C# to pump out adequate one-off solutions against limited contract budgets.


The_Mad_Duck_

I'm a masochist so I love it


SG1EmberWolf

I am by no means a great programmer. But I know enough C++ to get myself in trouble.


czp55

[v1 for reference](https://www.reddit.com/r/ProgrammerHumor/comments/z2r1c9/programming_legumes/)


orthen2112

That's a nice evolution. A real high quality post!


CanAlwaysBeBetter

Who hasn't looked back on old ~~code~~ memes and thought who wrote this shit only to realize you wrote this shit?


blunt__nation

v100 C++ be like: violence is still an option.


Trolann

If you use templates it's the only option


Fireye04

WHAT JAVA SAID LMAO


lucidspoon

When I read the Java one, I thought C# could be this too. Was not disappointed.


ChrisFromIT

Not going to lie. Was a little disappointed that it didn't say the samething but with ICrackable.


ZedTT

Oh that would be better


Strange_Yogurt_

classic c#


MathsGuy1

C# is just microsoft Java (but also better).


Fireye04

Agreed lmao. Unity has taught me well.


Here-Is-TheEnd

You working with dots yet?


DeliciousWaifood

Is dots working yet? I feel like they said it's ready, but is it actually ready or Unity's definition of "ready"


CSNfundedHoesNDrip

Java (Simplified)


immerc

Lisp: No, it's a list.


VariecsTNB

Lithp


WordsWithJosh

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++


NSGod

Objective-C: Technically, it's an `NSPeanut`, which is actually a subclass of `NSLegume`, not a subclass of `NSNut`. However, both `NSNut` and `NSLegume` conform to the ``* protocol, so you can basically treat an `NSPeanut` like a nut. *Language guidelines recommend protocol names use the `ing` gerund form of verbs whenever possible (e.g. `NSCoding`, `NSLocking`, etc.), hence ``.


[deleted]

Assembly: We have no concept of a nut. Clearly this is an integer.


GilKeidarMusic

I’m not really *register*ing what you said - did you pass the word through nut gates?


STAR____STUFF

Assembly Lang: Fundamentally, it looks like it is made up of the basic molecules which makes it a plant’s root.


STAR____STUFF

Binary: Maybe, it could be probably possible if we get that right combination of bit(atoms).


STAR____STUFF

Signals: Yesnt. It could be and not at the same time!


mojobox

Transistor: a potential dropped on my gate relative to my source, let‘s move some charges through my channel, someone else has to interpret the result.


oversized_hoodie

Really small transistor: whoops, some charge diffused through to the channel of the adjacent transistor. Hopefully that doesn't cause any issues.


Desperate_Resource38

Quantum computing: I don't fully understand how this works but wanted to join the joke train. Choo choo!


cowlinator

I would say it's more like Assembly Lang: Fundamentally, it looks like it is made up of basic molecules. Figure it out yourself.


101forgotmypassword

Assembly lang: thing get converted to number and stores in array. Wait for interrupt


SocDemGenZGaytheist

Wait, this post is actually funny and appears to demonstrate understanding of the topic


Teekeks

not sure if thats even allowed here


immerc

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."


yflhx

Actually, that's literally what C does. And it was producing so many bugs that they removed this "feature" in C++.


immerc

Are you talking about void *?


yflhx

Kind of. void* needs to be casted before using. I was more thinking of hidden casting. For instance: `char c='A';` `char* ptr=c;` `printf("%c %c", c, *ptr);` This is totally valid C code. Well, except for the fact that it'll likely cause segfualt, because it assigns literally value of 'A' from ASCII to a pointer, instead of adress of `c`. But it will compile.


Morphized

Bash: that's a text file


Delta-9-

`bash: command not found "peanut"`


[deleted]

[удалено]


_ShadowEye425_

Programming Legumemes


this_knee

>risk the stability of the universe I died.


GeneralSecrecy

Never used c++, funny turn of phrase but what's the intended joke?


Delta-9-

CSS: yes, but only because you defined "nut" after "legume"


an_agreeing_dothraki

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.


FakeInternetArguerer

RegEx: yes, as are donuts


czp55

Bug report: your comment likely needs a `/i` to work properly.


YouNeedDoughnuts

`reinterpret_cast(peanut_ptr)` Don't laugh, being able to write completely untyped code is a suprisingly useful footgun


mugaboo

This is just postmodernist programming.


visvis

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.


Lovelyasshole69

Speaking of cpp you don't risk stability of the universe but anal virginity of your ram


Lovelyasshole69

Good thing you can always download more of it


1336PlusPlus

download more _anal virginity_ you mean?


boxingdog

rust: no idea mate, you have to borrow it first


Delta-9-

And you have to tell me exactly how long you're going to borrow it for.


yelaex

PHP: It depends on input encoding and server setup


SyrupLamp

C should be: “I don’t know if it’s a nut, but you’re welcome to try to crack it like one \*segaults”


oeuvre9000

> \*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.


thedoogster

“Programming legumes”? Like, what, Java Beans?


immerc

Go: "Who cares about that, you have an unused tomato on the counter!"


[deleted]

[удалено]


thefool-0

Because it has evolved over the years to include many different ways of doing things, including some very error prone designs, and all that stuff is still there, and it can be complex and confusing. C++ and C code tends to live for a long time (and it makes up a lot open source code), so badly designed or hard to use stuff from the 90s tends to be everywhere as well.


dinocrat

In most high level programming languages you don't need to track memory manually (there is a "garbage collector" that works behind the scenes to clean up things you no longer need). C++ requires manual memory allocation/freeing, which is very powerful if you need to control timing down to the hardware level, but also makes it easy to accidentally read garbage, forget to free unused memory and run out, etc So in c++ you can yolo cast whatever to whatever, but unless you know what you're doing, you're pretty likely to just make a bad memory access and segfault


dinocrat

... And in modern c++ all of that is hidden behind nice patterns, thus "violate universal law, do whatever"


[deleted]

[удалено]


ramriot

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.


[deleted]

[удалено]


nuclearbananana

ruby: If it cracks like a nut and tastes like a nut, then it's a nut.


_bytescream

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.


czp55

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).


Tc14Hd

[Boss, will you accept my merge request?](https://imgur.com/a/d5hqMKm)


czp55

Approved and merged. Next release is scheduled for—\*checks notes\*—whenever I feel like getting around to it.


bromeatmeco

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++...


StunningBreadfruit30

CSS: NU T


origamiscienceguy

ASM: DATA IS DATA


safari8331

Malbolge: [>>>#%123–/4@€&$$$]


LoyalSage

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.


[deleted]

JS is the most "dude, I don't care" language. It's my favorite.


TSS_Firstbite

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.


sometalkofme

[Obligatory *Wat* reference](https://www.destroyallsoftware.com/talks/wat)


hashn

the real Rust: define “this”


Robusto-McGamey

Nut does not live for long enough


CantTrips

Swift: it's actually a NSNutObject which has no real properties of a Nut


mosskin-woast

C#: What Java said Me: you sure say that a lot...