The Belfry
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MaliciousKebab@sh.itjust.works to Programmer Humor@programming.devEnglish ·
edit-2
1 year ago

Need a rust version too.

toggl.com

message-square
57
fedilink
411

Need a rust version too.

toggl.com

MaliciousKebab@sh.itjust.works to Programmer Humor@programming.devEnglish ·
edit-2
1 year ago
message-square
57
fedilink
alert-triangle
You must log in or register to comment.
  • scratchresistor@thelemmy.club
    link
    fedilink
    arrow-up
    69
    arrow-down
    1
    ·
    1 year ago

    Python:

    from Rescues import Princess
    Princess.rescue()
    
    • bob_lemon@feddit.de
      link
      fedilink
      arrow-up
      17
      ·
      1 year ago

      map(lambda princess: princess.rescue(), [castle.get_princess() for castle in castles])

      • scratchresistor@thelemmy.club
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Don’t forget to keep your return values…

        rescued_princesses = [{"princess": princess, "rescued": princess.rescue()} for princess in [castle.get_princess() for castle in castles]]

  • Gobbel2000@feddit.de
    link
    fedilink
    arrow-up
    67
    ·
    1 year ago

    Rust:

    Cannot move princess out of castle which is behind a shared reference

    • magic_lobster_party@kbin.social
      link
      fedilink
      arrow-up
      31
      ·
      1 year ago

      You can’t rescue the princess, but you can borrow her.

      • cactusupyourbutt@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        …good enough.

        Ill get her back in 3 minutes

    • Octopus1348@lemy.lol
      link
      fedilink
      arrow-up
      24
      ·
      1 year ago

      It will also complain that trying to break into the castle is unsafe, so you have to tell it that you know.

      • Rodeo@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        That just means you designed your castle unsafely.

        • Hazzia@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Skip the castle and call the princess directly!

  • smeg@feddit.uk
    link
    fedilink
    English
    arrow-up
    60
    arrow-down
    1
    ·
    1 year ago

    Here is the original comic, it’s got the word fuck in it! Direct link to higher-quality image.

    • PixxlMan@lemmy.world
      link
      fedilink
      arrow-up
      35
      arrow-down
      1
      ·
      1 year ago

      NOOOOOOO NOT THE FUCK W*RD!

      • killeronthecorner@lemmy.world
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        1
        ·
        1 year ago

        I can’t fucking believe you’ve done this

        • MajorHavoc@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          Yeah. I thought we all agreed that we don’t fucking swear here. What the fuck…Shit. Darn-it. /s

          • Octopus1348@lemy.lol
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            You fucking moron. Oops…

            • Square Singer@feddit.de
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              Flipping H E double hockeysticks! You aren’t supposed to use such fucking swearwords here!

      • shotgun_crab@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        Now I can’t let my cats see this comic :(

    • MaliciousKebab@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      24
      ·
      1 year ago

      Changed the image link, thanks.

  • killeronthecorner@lemmy.world
    link
    fedilink
    English
    arrow-up
    57
    ·
    1 year ago

    Swift: Apple releases a new version of the castle and deprecates the princess before you finish your implementation

    • Turing spider@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      the author did another comic with swift and it’s pretty much what you said lol

      https://toggl.com/blog/kill-dragon-comic

  • stebo@sopuli.xyz
    link
    fedilink
    arrow-up
    47
    ·
    1 year ago

    no python? how are normie programmers like me supposed to relate to this?

    • Troy@lemmy.ca
      link
      fedilink
      arrow-up
      29
      ·
      1 year ago

      You have python. You import antigravity. The princess flies off into space. You monkey patch the princess so she has wings.

      • stebo@sopuli.xyz
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        And this is how I learned about the antigravity module. Pretty cool!

        • Aniki 🌱🌿@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Same! I also learned about

          import this
          
    • Aniki 🌱🌿@lemm.ee
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      1 year ago

      The artist is still waiting for the python cells to render.

      • scratchresistor@thelemmy.club
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        Rescuing is only I/O bounded; your argument is irrelevant.

  • EnderMB@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    1 year ago

    Always good to see Jon Skeet get some love. I’d love to know in terms of quantity just how many people he’s helped over the last decade or so.

    • magic_lobster_party@kbin.social
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      He has used this comic as his profile pic on Twitter and StackOverflow for quite a while.

    • Daxtron2@startrek.website
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      Literally every time I’ve ever posted a question on SO that’s related to .NET, Skeet comes to my rescue.

    • Honytawk@lemmy.zip
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      I just wonder how many he would have saved if he didn’t write the language in the first place

    • thedirtyknapkin@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      if we count the number of people who have used products with code helped by him; we’re probably around 50% of all humanity by now. at least…

  • agent_flounder@lemmy.world
    link
    fedilink
    English
    arrow-up
    22
    ·
    1 year ago

    Omg Lisp. I’m dying. Our object oriented programming class in college involved programming in Scheme. This was… a while ago.

    Saving this forever.

    • Lawyerator@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Yup, Scheme was the only programming language taught in our comp-sci department so we could “learn how to learn.” Two years and a broken parentheses button later, and I switched to being a theatre major.

      Today, my legal career stands as a testament to the pointlessness of a declared major.

    • lastunusedusername2@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I did the same thing in Scheme. It was mine expanding.

  • felbane@lemmy.world
    link
    fedilink
    arrow-up
    20
    arrow-down
    4
    ·
    edit-2
    1 year ago

    Rust: You declare the castle type as unsafe and then search for a crate with a rescue_princess function. You discover the princess you rescued is a femboy wolfkin named Pawws. You now have pubic lice and an inexplicable smug sense of superiority.

  • Nailbar@sopuli.xyz
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    PHP 8 makes it finally possible to rescue the princess, but you accidentally princess the rescue instead.

    • ISMETA@lemmy.zip
      link
      fedilink
      English
      arrow-up
      12
      ·
      1 year ago

      PHP 8 makes it possible to rescue the princess but your 83 legacy princesses are all still PHP 5.

  • Nugelz@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Why’s this look so poo on my phone?

    • MaliciousKebab@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      19
      ·
      1 year ago

      Might be the client. I use eternity and it looks OK on my phone.

      • doeknius_gloek@feddit.de
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Also good with Boost once I opened the image and clicked “HD”.

        • Nugelz@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Thank you that fixed it!

      • TJA!@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Also good in sync on my phone

        • Octopus1348@lemy.lol
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Sync manages these long vertical images the best.

      • Unforeseen@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Also good in Connect on my phone

      • Octopus1348@lemy.lol
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Also good on Voyager.

      • 30p87@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Not the best quality, but still easily enjoyable on Eternity Nightly

      • chandz05@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Also good in Boost on my phone

        • EatYouWell@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Seconded

    • Honytawk@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Your app is written in LISP

  • uid0gid0@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    The Patsy from Monty Python in the PHP section got me

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      “Message for you sir!”

      *argh*

      • Troy@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I have that as my cell phone notification. It’s amazing.

        Here’s a download link if anyone else wants it: https://drive.google.com/file/d/1QUcf7wExqHvA1UYjE8-8-q7iHPuvbETa/view?usp=sharing

        • Hazzia@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Thank you for your contribution to the betterment of society.

  • r00ty@kbin.life
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    1 year ago

    C# is about right. LINQ was meant to make things easier, or at least the code easier to read. Instead, you gain this addiction to seeing how much functional logic you can fit into one line of code (or a single multi-line query) while still remaining readable.

  • remotedev@lemmy.ca
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    Ruby: there is a built in method called free_the_princess()

  • FlumPHP@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I’m going to have to print out the Go version for all future “it’s idiomatic” and “but the community!” debates at work

    • SnipingNinja@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’m curious about this but I’m barely a programmer now, so if anyone is up to explain

  • make -j8@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    So let me summarise this:

    Only C and Lisp actually completed the initial task of getting the princess free, and Author clearly favors C over the drooling and homeless lisp hacker. Also, turns out, C greatest weakness helped to save not only the princess but everything she ever possessed! How convenient!

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 885 users / day
  • 4.55K users / week
  • 9.24K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.24K Posts
  • 26.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org