BlendIT - BSD Cafe
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
N3Cr0 to Programmer Humor@lemmy.ml • 1 year ago

carrot.py

lemmy.world

message-square
97
fedilink
1.34K

carrot.py

lemmy.world

N3Cr0 to Programmer Humor@lemmy.ml • 1 year ago
message-square
97
fedilink
  • @tetris11@lemmy.ml
    link
    fedilink
    162•1 year 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
      link
      fedilink
      73•1 year 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
        link
        fedilink
        English
        61•1 year 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
          link
          fedilink
          43•1 year ago

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

          • @tetris11@lemmy.ml
            link
            fedilink
            33•
            edit-2
            1 year 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
              link
              fedilink
              22•1 year ago

              Someone should do it in rust now

        • @CaptDust@sh.itjust.works
          link
          fedilink
          11•1 year ago

          Maybe cooking isn’t for me.

        • Tiefling IRL
          link
          fedilink
          6•1 year ago

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

    • @ThunderComplex@lemmy.today
      link
      fedilink
      28•1 year ago

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

      • @tetris11@lemmy.ml
        link
        fedilink
        24•1 year ago

        You say “potato” I say “caroto”

    • @mesamunefire@lemmy.world
      link
      fedilink
      English
      15•1 year ago

      I hate that I understand this. Well done.

    • @tumblechinchilla@sh.itjust.works
      link
      fedilink
      English
      13•1 year ago

      Internal screaming.

    • @mindbleach@sh.itjust.works
      link
      fedilink
      9•1 year ago

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

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 18 users / day
  • 1.05K users / week
  • 2.41K users / month
  • 7.84K users / 6 months
  • 39K subscribers
  • 946 Posts
  • 7.88K Comments
  • Modlog
  • mods:
  • @cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org