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

Programmer Humor

32571 readers
209 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 160 points 3 weeks ago (4 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] 75 points 3 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] 62 points 3 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 3 weeks ago (1 children)

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

[–] [email protected] 32 points 3 weeks ago* (last edited 3 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 3 weeks ago

Someone should do it in rust now

[–] [email protected] 11 points 3 weeks ago

Maybe cooking isn't for me.

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

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

[–] [email protected] 27 points 3 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 3 weeks ago

You say "potato" I say "caroto"

[–] mesamunefire 15 points 3 weeks ago

I hate that I understand this. Well done.

[–] [email protected] 13 points 3 weeks ago

Internal screaming.