Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
somerandomperson@lemmy.dbzer0.com to Programmer Humor@lemmy.ml · 8 days ago

rustmas

lemmy.ml

message-square
11
link
fedilink
333

rustmas

lemmy.ml

somerandomperson@lemmy.dbzer0.com to Programmer Humor@lemmy.ml · 8 days ago
message-square
11
link
fedilink
alert-triangle
You must log in or # to comment.
  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 days ago

    .unwrap_or_ruin_christmas()

  • hades@feddit.uk
    link
    fedilink
    arrow-up
    96
    ·
    8 days ago

    can you explain the joke, i work at cloudflare

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      12
      ·
      7 days ago

      i work at cloudflare

      Thank you for the easier captchas, and pre-emptively damn you for whatever evil thing CloudFlare will eventually do with their MITM access to everything.

    • mkwt@lemmy.world
      link
      fedilink
      arrow-up
      49
      arrow-down
      3
      ·
      8 days ago

      Rust has many container-like objects that may or may contain a value, like Box. Most of these have an unwrap() method that either obtains the inner value or panics the whole application.

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        14
        ·
        7 days ago

        I reckon the person you’re replying to knows exactly what unwrap is, because the last big famous Cloudflare outage was caused by it. They were making a joke of their own

      • locuester@lemmy.zip
        link
        fedilink
        English
        arrow-up
        33
        ·
        8 days ago

        Box is a bad example; it always has a value and can’t be unwrapped. It’s Result<T> and Option<T> that are the primary wrappers.

        Result is for Errors, and Option is for nullables. If you consider it that way, the “issues” with unwrap are identical to other languages when errors and nulls aren’t properly handled.

      • littleomid@feddit.org
        link
        fedilink
        English
        arrow-up
        14
        arrow-down
        1
        ·
        7 days ago

        Whoosh

      • expatriado@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        8 days ago

        sounds like an error handling issue

        • brandon@piefed.social
          link
          fedilink
          English
          arrow-up
          16
          ·
          8 days ago

          Yes it is. Typically you’d do some pattern matching to handle every possible case, but Unwrap is often used as a shortcut.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      13
      ·
      8 days ago

      i work at cloudflare

      I shouldn’t worry about it.

  • CptKrkIsClmbngThMntn [any]@hexbear.net
    link
    fedilink
    English
    arrow-up
    9
    ·
    8 days ago

    It is Christmas morning and I am fucking panicking

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.
Visibility: Public
globe

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

  • 345 users / day
  • 675 users / week
  • 1.76K users / month
  • 7.12K users / 6 months
  • 1 local subscriber
  • 39.6K subscribers
  • 1.84K Posts
  • 31.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org