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

Programmer Humor

32472 readers
874 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
[–] tetris11@lemmy.ml 160 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

[–] thisfro@slrpnk.net 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

[–] NaibofTabr@infosec.pub 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.

[–] driving_crooner@lemmy.eco.br 43 points 2 weeks ago (1 children)

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

[–] tetris11@lemmy.ml 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!?

[–] thisfro@slrpnk.net 22 points 2 weeks ago

Someone should do it in rust now

[–] CaptDust@sh.itjust.works 11 points 2 weeks ago

Maybe cooking isn't for me.

[–] tiefling@lemmy.blahaj.zone 6 points 2 weeks ago

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

[–] ThunderComplex@lemmy.today 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

[–] tetris11@lemmy.ml 24 points 2 weeks ago

You say "potato" I say "caroto"

[–] mesamunefire@lemmy.world 15 points 2 weeks ago

I hate that I understand this. Well done.

[–] tumblechinchilla@sh.itjust.works 13 points 2 weeks ago

Internal screaming.

[–] mindbleach@sh.itjust.works 9 points 1 week ago

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

[–] superkret@feddit.org 103 points 2 weeks ago* (last edited 1 week 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
[–] gamermanh@lemmy.dbzer0.com 70 points 1 week 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

[–] grue@lemmy.world 60 points 1 week 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@sh.itjust.works 26 points 1 week ago (1 children)
load more comments (1 replies)
[–] superkret@feddit.org 19 points 1 week ago (1 children)

And we still don't have open source printers

[–] ForgotAboutDre@lemmy.world 8 points 1 week 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)
[–] tetris11@lemmy.ml 25 points 2 weeks ago (1 children)
[–] superkret@feddit.org 28 points 2 weeks ago (1 children)
[–] neanderthal@lemmy.world 15 points 2 weeks ago (3 children)
[–] AkatsukiLevi@lemmy.world 12 points 1 week ago

Kill that with fire

load more comments (2 replies)
load more comments (1 replies)
[–] cypherpunks@lemmy.ml 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.

[–] PoastRotato@lemmy.world 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

[–] hemko@lemmy.dbzer0.com 25 points 2 weeks ago

So you're saying pymixxedveggies is bloated?

[–] turbowafflz@lemmy.world 19 points 2 weeks ago (1 children)

Do NOT give the carrot industry that idea

Big Carrot is coming for your stew

load more comments (3 replies)
[–] EnderMB@lemmy.world 42 points 1 week 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.
[–] stevestevesteve@lemmy.world 21 points 1 week 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@sh.itjust.works 6 points 1 week 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)
[–] LovableSidekick@lemmy.world 34 points 1 week ago (3 children)

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

[–] SkaveRat@discuss.tchncs.de 12 points 1 week 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)
[–] xthexder@l.sw0.com 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@sh.itjust.works 20 points 1 week ago (1 children)

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

[–] lightnsfw@reddthat.com 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...

[–] TassieTosser@aussie.zone 15 points 1 week 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)
[–] The_Jit@lemmy.world 12 points 1 week 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)
[–] zante@slrpnk.net 18 points 2 weeks ago (1 children)

No no it’s the pot that’s behind . After you already peeled and chopped .

Unless this is an agile thing

[–] Appoxo@lemmy.dbzer0.com 7 points 2 weeks ago (2 children)

An agile pot?
Will it run from me while I try to put ingredients in it?

load more comments (2 replies)
[–] Bishma@discuss.tchncs.de 14 points 2 weeks ago* (last edited 1 week ago)

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

[–] Hegar@fedia.io 13 points 2 weeks ago (3 children)

Why would you peel a carrot?

[–] deafboy@lemmy.world 30 points 2 weeks ago (1 children)

... is the most upvoted stackoverflow answer.

load more comments (1 replies)
[–] troyunrau@lemmy.ca 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)
[–] edinbruh@feddit.it 6 points 1 week ago

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

load more comments
view more: next ›