this post was submitted on 01 Nov 2024
1322 points (99.2% liked)

Programmer Humor

32533 readers
445 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 162 points 2 weeks ago (5 children)

Workaround: Potato peeler extends peeler, so just cast your carrots as potatoes before you peel them, and then cast them back to carrot afterwards

[–] [email protected] 74 points 2 weeks ago (1 children)

To cast them, it uses libvegs however. It is not available in any standard package libraries, so just quickly build it from source

[–] [email protected] 61 points 2 weeks ago (3 children)

Yeah but the current build of libvegs has some conflicts with libfruit, so if you need to use both you have to build libvegs in a different directory and then simlink it in /lib.

[–] [email protected] 43 points 2 weeks ago (1 children)

Tomato keep being casted as fruit, even that for any practical purpose it should be as vegetable

[–] [email protected] 33 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

That's it, let's re-write the entire backend in C++ to make use of multiple inheritance to tackle this one use-case!

What do you mean "this is overkill"? Do you have any idea how many tomatoes go into a fucking salad!?

[–] [email protected] 22 points 2 weeks ago

Someone should do it in rust now

[–] CaptDust 11 points 2 weeks ago

Maybe cooking isn't for me.

[–] [email protected] 6 points 2 weeks ago

Yeah but that's all my replacement's problem to deal with

[–] [email protected] 28 points 2 weeks ago (1 children)

Unfortunately, casting from potato to carrot is a narrowing conversion so your new carrot will lose some properties

[–] [email protected] 24 points 2 weeks ago

You say "potato" I say "caroto"

[–] [email protected] 15 points 2 weeks ago

I hate that I understand this. Well done.

[–] tumblechinchilla 13 points 2 weeks ago

Internal screaming.

[–] mindbleach 9 points 2 weeks ago

If you forget the second step, well, that's what sweet potatoes are.

[–] [email protected] 103 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

I'm a sysadmin by trade. My hobbies are:

  • cooking with nothing but a cast iron pan and a knife I forged after a medieval design
  • tinkering on bicycles ('90s MTBs, the golden age of component compatibility)
  • sewing clothes by hand
  • smashing printers with baseball bats
[–] [email protected] 70 points 2 weeks ago (2 children)

smashing printers with baseball bats

I have years of IT experience, offer Linux support, and am visibly the kind of guy you just know can fix your computer problem (or, if I take my glasses off, I look like I sell weed apparently), and when asked to help with printers I have one answer:

They're sentient and they hate you. I was trained in IT, not exorcisms. Send it as a PDF, PNG, or smoke signal before you try troubleshooting.

Like, I broke my big office one the other day so bad the tech had to come out. What had I done to brick it so badly? Tap a menu option, tap back, then tap a different menu option. If you don't wait 3s between the second and third tap it errors and freezes and they have to send a tech out to do some sort of 2 hour long ritual where he rubs it and whispers how sorry he is.

What the fuck is wrong with printers

[–] [email protected] 60 points 2 weeks ago (2 children)

Fun fact: the entire Free Software movement exists because Richard Stallman got pissed off at Xerox one day, for not giving him the source code so he could fix his printer.

[–] yonder 25 points 2 weeks ago (1 children)
load more comments (1 replies)
[–] [email protected] 19 points 2 weeks ago (1 children)

And we still don't have open source printers

[–] [email protected] 8 points 2 weeks ago

People have attached pens to 3d printers and used them to write letters, effectively print. Most consumer 3D printers are useing or based on open source software.

I think the issue is, printers are relatively cheap to buy and replace. So building your own and programming it hasn’t been necessary. Where as 3d printing was completely in accessible before the reprap movement. 3D printing software is open source as it is motivated by people wanting to build their own machines that could build machines. Something you couldn’t easily buy.

load more comments (1 replies)
[–] [email protected] 25 points 2 weeks ago (1 children)
[–] [email protected] 28 points 2 weeks ago (1 children)
[–] [email protected] 15 points 2 weeks ago (2 children)
[–] [email protected] 12 points 2 weeks ago

Kill that with fire

[–] [email protected] 5 points 2 weeks ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 55 points 2 weeks ago (1 children)

only hobbyists and artisans still use the standalone carrot.py that depends on peeler.

in enterprise environments everyone uses the pymixedveggies package (created using pip freeze of course) which helpfully vendors the latest peeled carrot along with many other things. just unpack it into a clean container and go on your way.

[–] [email protected] 53 points 2 weeks ago* (last edited 2 weeks ago) (5 children)

I know you're joking but you basically just suggested buying a pack of frozen mixed veggies so you can pick out and use only the carrots for your stew, and the idea of someone actually doing that sends my brain into a tailspin

[–] [email protected] 25 points 2 weeks ago

So you're saying pymixxedveggies is bloated?

[–] [email protected] 19 points 2 weeks ago (1 children)

Do NOT give the carrot industry that idea

[–] [email protected] 8 points 2 weeks ago

Big Carrot is coming for your stew

load more comments (3 replies)
[–] [email protected] 41 points 2 weeks ago (4 children)

I got into cooking during lockdown, and have managed to get surprisingly good at it, to the point where if you asked me to make a meal of your choosing I could probably make it without looking up a recipe. It's actually unbelievably simple to make even complex stuff, basically using all the same rules you apply at work:

  • Use the right tools for the job
  • Plan it out first, do your prep and the actual work is simple
  • A simple dish will take much longer than you think
  • RTFM. Many sauces and dishes from classic cooking are basically a mixture of a small handful of base ingredients/techniques, and they've been written down for decades.
  • Once you have the basics down, you can basically make it up as you go. You'll make amazing meals, and you'll never be able to replicate it again because you eyeballed it or cooked it in a way that made sense at the time. You say you'll document it well, but deep down, you know you won't.
  • Nothing is original, everything is stolen. Adapt recipes you see, look at ingredients of sauces and sachets you buy/use, etc.
  • You can be a solid hobbyist, but against a pro that does this shit all day every day, you don't know a fucking thing. You're also probably not going to replicate what they can do in a professional setting while at home unless you've got money.
[–] [email protected] 21 points 2 weeks ago (10 children)

"RTFM" My irritation is that most recipes make a huge amount of assumptions - at least as many as code that assumes a certain version of library. You can get recipes that say things as vague as "prepare the chicken" and aren't at all clear what they mean, unless you've seen someone do it first, but it's published in a book like you should just know. I hate that. I also frequently see quantities like "1 can" which just drives me insane as though that's a standard unit.

There's also plenty of cooking specific jargon, so densely packed that beginners might spend the majority of the recipe looking up what the terms mean. "Chop" parsley - how finely? "Mix the ingredients" how long? What the fuck is Golden Brown actually?

[–] Rekorse 6 points 2 weeks ago

Golden brown is my favorite considering it changes depending on how much light is in the room.

load more comments (9 replies)
load more comments (3 replies)
[–] [email protected] 34 points 2 weeks ago (3 children)

4.3 ??? Hell, I haven't updated my peeler since 2.1 - no wonder my stove won't even boot.

[–] [email protected] 12 points 2 weeks ago (1 children)

If you missed the 2.3 security update, you peeler is now mining crypto

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 22 points 2 weeks ago

I really enjoy programming, but generally I dislike cooking. I just want to eat, not spend time preparing to eat.

My experience with cooking has been that because I don't do it enough, I'm constantly dealing with food expiration dates and having to plan carefully around them.

In comparison, I've got some servers that have been running maintenance free for 5+ years. (Probably not the most secure thing, but meh, I don't have customers other than myself)

I think programmers often have hobbies that are more physical though. For me, I like working on my car because turning bolts and working with my hands lets my brain turn off for a while. I could see cooking and following a recipe being in the same category for others.

[–] humblebun 20 points 2 weeks ago (1 children)

You should really try cobol, lisp, ada, or erlang. Dead languages are the best

[–] [email protected] 19 points 2 weeks ago (6 children)

So funny story. My stove is currently inoperable because the door lock on the oven is fucked up somehow. Why an oven needs a door lock and why the door lock being fucked should prevent the whole thing from working I cannot tell you. I've literally never used it. Thanks whoever programmed that...

[–] [email protected] 15 points 2 weeks ago (1 children)

The door lock I can understand for safety reasons. Bricking the whole thing because one part broke is lazy programming.

load more comments (1 replies)
[–] [email protected] 12 points 2 weeks ago (1 children)

Every stove I've had with a self cleaning option also has an automatic door lock. The oven gets extra hot during self cleaning mode.

load more comments (1 replies)
load more comments (4 replies)
[–] [email protected] 14 points 2 weeks ago* (last edited 2 weeks ago)

Just fork peeler from 4.2, rename it to "Skininator 4000" and set up a BuyMeACoffee button.

[–] [email protected] 13 points 2 weeks ago (3 children)

Why would you peel a carrot?

[–] [email protected] 30 points 2 weeks ago (1 children)

... is the most upvoted stackoverflow answer.

load more comments (1 replies)
[–] [email protected] 15 points 2 weeks ago

Depending on the carrot, the skin can be significantly more bitter. And sometimes peeling can be quicker than trying to scrub dirt out of particular lumpy carrots.

YMMV

load more comments (1 replies)
[–] [email protected] 6 points 2 weeks ago

The code for the peeler is stale, it stopped working three carrot seasons ago, but no one wants to rewrite the PeelerBladeRdge class.

[–] [email protected] 5 points 2 weeks ago* (last edited 2 weeks ago)

Hey man, leave the carrot alone.

load more comments
view more: next ›