Voyager App Test
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 1 年前

All of IT in one image

lemmy.ml

message-square
52
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.12K

All of IT in one image

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 1 年前
message-square
52
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • Fargeol@lemmy.world
    link
    fedilink
    arrow-up
    134
    ·
    edit-2
    1 年前

    NaN minutes later, a truck arrives in the alley, its license plate reads “undefined”. Someone gets out of the vehicle
    “I have something for you”
    He gives you a package. You open it. It’s an [object Object]

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      70
      ·
      1 年前

      Must be from the NPM delivery service. The recipient is lucky the driver didn’t give them thousands of dependencies too.

      • Fargeol@lemmy.world
        link
        fedilink
        arrow-up
        29
        ·
        1 年前

        “I got a package from Jason”

        • axEl7fB5@lemmy.cafe
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 年前

          “I also got a lock”

      • Elvith Ma'for@feddit.org
        link
        fedilink
        arrow-up
        21
        ·
        1 年前

        Guess why he came with a truck and not on a cargo bike…

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 年前

          Because you forgot to tell them that you already have the dependencies at home?

      • FrostyCaveman@lemm.ee
        link
        fedilink
        arrow-up
        14
        ·
        edit-2
        1 年前

        Ah sweet, my left-pad is coming today!

      • Case@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        You don’t get dependencies in real life like that.

        You work 10 years in an industry and try to get a promotion? That may be a dependency issue.

    • dovahking@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      1 年前

      “I’ve been looking for you! Got something I’m supposed to deliver. Your hands only.”

  • badcommandorfilename@lemmy.world
    link
    fedilink
    arrow-up
    75
    ·
    1 年前

    You wouldn’t want your code throw an exception

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 年前

      [object Object]

  • Scoopta@programming.dev
    link
    fedilink
    arrow-up
    43
    ·
    1 年前

    As someone who mostly avoids JavaScript, I don’t see the IT in this image, I just see a bad language I avoid!

    • blackn1ght@feddit.uk
      link
      fedilink
      arrow-up
      17
      ·
      1 年前

      This isn’t the languages fault, it’s the developers.

      • lad@programming.dev
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 年前

        Albeit true, I want to note that some languages encourage such practices way more than others do. Also, when you’ve got a hammer everything looks like a string nail.

        • blackn1ght@feddit.uk
          link
          fedilink
          arrow-up
          1
          ·
          1 年前

          In my mind a simple unit test should have caught this. Mock out the call to the service that sends the message and verify that it’s been called with the correct message, and cover the possible failure scenarios. That said I hate loosely typed languages lol.

      • copd@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 年前

        besides NaN actually being a number, this could completely and easily be avoided with typescript.

        • rooroo@feddit.org
          link
          fedilink
          arrow-up
          7
          ·
          1 年前

          Naaah. Good programmers know how to use as any as any to make this work in typescript as well.

      • Scoopta@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        I’m assuming by this you mean the developers of JS /s

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        It’s both.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 年前

      I promise you, people make mistakes in every language lol.

    • Log in | Sign up@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 年前

      I had the exact same reaction.

  • jwt@programming.dev
    link
    fedilink
    arrow-up
    32
    ·
    1 年前

    I [object Object]

  • TheEighthDoctor@lemmy.zip
    link
    fedilink
    English
    arrow-up
    22
    ·
    1 年前

    Wait until Null opens the door

    • BlackRoseAmongThorns@slrpnk.net
      link
      fedilink
      arrow-up
      7
      ·
      1 年前

      segmentation fault

    • null@slrpnk.net
      link
      fedilink
      arrow-up
      3
      ·
      1 年前

      Knock knock

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    1 年前

    I got one of those too. I called the customer service to get another path home because of disturbances, and they just have robot answering. The robot started halfway through the call just reading pure json at me, and then said “to get this information as a message press 1” or something. This is what I got:

    Here is your journey from undefined to undefined: BUSS 506 towards Karolinska sjukhuset 09:36 from undefined 10:18 arrived at undefined. Link to your journey.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 年前

      If you want those on separate lines you need to add two spaces on the end of each line!

  • anguo@piefed.ca
    link
    fedilink
    English
    arrow-up
    18
    ·
    1 年前

    I kid you not, opening this post on piefed.ca gave me “Internal Server Error” the first time.

  • glorkon@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    1 年前

    I’m an old fuck and I started to code in the late 80s. Fast forward 30 years, I once had to work at a WeWork. One day, directly outside of my small office space, I swear to god, a fucking hipster kid with a Macbook under his arm practiced skateboard moves. That was the exact moment I started hating working in IT. It’s also what I think every Javascript coder looks and acts like.

    • Guttural@jlai.lu
      link
      fedilink
      Français
      arrow-up
      6
      ·
      1 年前

      Youngsters these days, uh?

      Now grandpa, time to take your medicine

    • Dumbkid@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 年前

      What’s wrong with skateboards

      • glorkon@lemmy.world
        link
        fedilink
        arrow-up
        16
        ·
        1 年前

        Nothing. But that kid used it inside a coworking space.

      • Matty_r@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        1 年前

        I actually wish skateboards made a come back. Much more preferable over the escooters I see around a lot.

        • Kaboom@reddthat.comBanned
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

          Yeah but no handle so you’re much more likely to eat shit when you go down a slope or something.

          • Matty_r@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            1 年前

            Yea, it takes actual skill to use them ha ha

        • axEl7fB5@lemmy.cafe
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 年前

          What about kick scooters?

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 年前

        I really don’t care people using skate boards, even doing it around a workplace isn’t necessarily taboo in my mind, but they were in the office right outside someone’s door. Do it in the parking lot or something.

    • Kojichan@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 年前

      I had a weird image of the hipster using the Macbook to do the kick flip…

  • altkey (he\him)@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 年前

    Is it a threat?

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    1 年前

    The Javascript literal interpretation of NaN never fails to amuse me.

    • squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 年前
      "a"+"b" -> "ab"
      "a"-"b" -> NaN
      
      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Yeah:

        parseInt("a") -> NoT a NuMbEr
        
        • squaresinger@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 年前

          Sure, but the main issue here is that JS doesn’t only auto cast to more generic but in both directions.

          Maybe a better example is this:

          "a" + 1 -> "a1"
          "a" - 1 -> NaN
          

          With + it casts to the more generic string type and then executes the overloaded + as a string concatenation.

          But with - it doesn’t throw an exception (e.g. something like “Method not implemented”), but instead casts to the more specific number type, and “a” becomes a NaN, and NaN - 1 becomes NaN as well.

          There’s no situation where "a" - "b" makes any sense or could be regarded as intentional, so it should just throw an error. String minus number also only makes sense in very specific cases (specifically, the string being a number), so also here I’d expect an error.

          If the programmer really wants to subtract one number from another and one or both of them are of type string, then the programmer should convert to number manually, e.g. using parseInt("1") - parseInt("2").

  • Viking_Hippie@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    11
    ·
    1 年前

    I’m no acupuncturist, but I’m pretty sure that it’s SUPPOSED to say “naan minutes”, which is time spent enjoying delicious Indian flatbread.

    I guess you just eat your naan and then your ride arrives to ask you if you have any leftovers? 🤷

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 年前

      But what does that have to do with acupuncture?

      • Viking_Hippie@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Nothing

  • airbussy@lemmy.one
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 年前

    At that point just throw an exception man

  • HugeNerd@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    1 年前

    I freaking love naan! Bring it!

    • funkless_eck@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      1 年前

      NaN naan Jeremy that’s insane

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    1 年前

    Thirteen furries just had an aneurysm.

  • darthinvidious@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 年前

    catherine tate crop image with caption text catchphrase "what a f*king liberty"

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 914 users / day
  • 3.83K users / week
  • 7.15K users / month
  • 16.1K users / 6 months
  • 1 local subscriber
  • 33.3K subscribers
  • 2K Posts
  • 54.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org