1313
carrot.py (lemmy.world)
top 50 comments
sorted by: hot top controversial new old
[-] tetris11@lemmy.ml 159 points 1 month ago

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 72 points 1 month ago

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 59 points 1 month ago

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 1 month ago

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

[-] tetris11@lemmy.ml 32 points 1 month ago* (last edited 1 month ago)

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 21 points 1 month ago

Someone should do it in rust now

[-] CaptDust@sh.itjust.works 11 points 1 month ago

Maybe cooking isn't for me.

[-] tiefling 6 points 1 month ago

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

[-] mesamunefire@lemmy.world 15 points 1 month ago

I hate that I understand this. Well done.

[-] tumblechinchilla@sh.itjust.works 12 points 1 month ago

Internal screaming.

[-] mindbleach@sh.itjust.works 8 points 1 month ago

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

[-] superkret@feddit.org 101 points 1 month ago* (last edited 1 month ago)

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
[-] cypherpunks@lemmy.ml 53 points 1 month ago

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 51 points 1 month ago* (last edited 1 month ago)

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

[-] turbowafflz@lemmy.world 18 points 1 month ago

Do NOT give the carrot industry that idea

[-] EldritchFeminity 8 points 1 month ago

Big Carrot is coming for your stew

load more comments (3 replies)
[-] EnderMB@lemmy.world 42 points 1 month ago

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 20 points 1 month ago

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

[-] RampantParanoia2365@lemmy.world 5 points 1 month ago

Golden brown is however seared you like it, as long as it's cooked, and there's no pink. Cooking is not a science, unlike programming. Personally, I like a good crusty sear.

load more comments (5 replies)
load more comments (3 replies)
load more comments (3 replies)
[-] LovableSidekick@lemmy.world 34 points 1 month ago

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 month ago

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 21 points 1 month 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 month ago

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

[-] lightnsfw@reddthat.com 19 points 1 month ago

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 14 points 1 month ago

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 11 points 1 month ago

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.

[-] lightnsfw@reddthat.com 5 points 1 month ago

So.... just don't let me use self cleaning... Why does the whole thing need to be bricked because the lock doesn't work for a single function I'm not using? It doesn't lock when you use it for baking.

[-] MonkderVierte@lemmy.ml 5 points 1 month ago* (last edited 1 month ago)

One like my washing maschine has, with touch display and all the firmware bugs where you sometimes have to reboot the maschine to unlock?

load more comments (2 replies)
load more comments (1 replies)
[-] zante@slrpnk.net 18 points 1 month ago

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 1 month ago

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

load more comments (2 replies)
[-] Hegar@fedia.io 15 points 1 month ago

Why would you peel a carrot?

[-] deafboy@lemmy.world 31 points 1 month ago

... is the most upvoted stackoverflow answer.

load more comments (1 replies)
[-] troyunrau@lemmy.ca 15 points 1 month 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)
[-] Bishma@discuss.tchncs.de 14 points 1 month ago* (last edited 1 month ago)

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

[-] MonkderVierte@lemmy.ml 7 points 1 month ago* (last edited 1 month ago)

Why would you peel carrots? The peel has the healthy bits and it doesn't bother any dish.

Edit: or you could half-peel it, in stripes. Mom did this with cucumbers and zucchini.

[-] zalgotext@sh.itjust.works 29 points 1 month ago

Carrots often have dirt caked on the outside that's hard to get off with just water, so peeling is a good way to help with that.

The peel has the healthy bits

Sort of, but not really. The nutrients of a carrot may be slightly more concentrated in the skin, but all layers of a carrot contain those nutrients. You're not depriving yourself of an appreciable amount of nutrients by peeling a carrot.

load more comments (5 replies)
[-] RampantParanoia2365@lemmy.world 11 points 1 month ago

...you understand carrots don't have skin, right? You're just removing the dirty part.

load more comments (1 replies)
load more comments (2 replies)
[-] edinbruh@feddit.it 6 points 1 month ago

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

[-] vane@lemmy.world 5 points 1 month ago* (last edited 1 month ago)

Hey man, leave the carrot alone.

load more comments
view more: next ›
this post was submitted on 01 Nov 2024
1313 points (100.0% liked)

Programmer Humor

32742 readers
315 users here now

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

Rules:

founded 5 years ago
MODERATORS