minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Albin7326@suppo.fi to Programmer Humor@lemmy.mlEnglish · 2 years ago

Unbelievable

suppo.fi

message-square
63
fedilink
1.07K

Unbelievable

suppo.fi

Albin7326@suppo.fi to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
63
fedilink
alert-triangle
You must log in or # to comment.
  • TheLameSauce@lemmy.world
    link
    fedilink
    arrow-up
    76
    ·
    2 years ago

    At a Sea Parks???

    • smigao@lemm.ee
      link
      fedilink
      English
      arrow-up
      39
      ·
      2 years ago

      A fire?

      • macniel@feddit.de
        link
        fedilink
        arrow-up
        15
        ·
        2 years ago

        Damn that mash looks tasty.

    • AdamBomb@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 years ago

      It just seems like a strange place to go on fire

      • visor841@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        It’s a very strange place to go on fire! A fire? At a Sea Parks? It’s been racking my head!

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    66
    ·
    2 years ago

    May I introduce you to Error in Unknown on line 0.

    • HurlingDurling@lemm.ee
      link
      fedilink
      English
      arrow-up
      75
      ·
      2 years ago

      That one is easy. Just delete the whole project and start again after consuming some alcohol

      • PFShady@lemmy.world
        link
        fedilink
        arrow-up
        26
        ·
        2 years ago

        I see you learned to code like I did.

      • MonkderZweite@feddit.ch
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        deleted by creator

      • MadMadBunny@lemmy.ca
        link
        fedilink
        arrow-up
        2
        arrow-down
        7
        ·
        2 years ago

        That’s what she said

  • TunaCowboy@lemmy.world
    link
    fedilink
    arrow-up
    65
    arrow-down
    3
    ·
    2 years ago

    Have you considered learning how to read a stacktrace?

    • ZeroCool@feddit.ch
      link
      fedilink
      English
      arrow-up
      48
      arrow-down
      1
      ·
      2 years ago

      Jokes on you, I don’t even know how to read.

      • ekky43@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        10
        ·
        2 years ago

        Damn, got us good!

    • erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      6
      ·
      2 years ago

      It is 2023 my brother in christ! We deserve better error outputs than a stack trace.

      1. Tell me what line in my file caused the error,
      2. Tell me the values of the variables involved,
      3. Then you can have the stack trace.

      Why are we pretending like these error messages are acceptable in 2023?!

      • segfault@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago
        so said EVELYN the modified DOG
        

        (This is not just a Zappa quote, but an actual error description from the Small Device C Compiler.)

        • trash80@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Well, everyone knows what that means.

      • Yawnder@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        I can’t tell if that was sarcasm or not. If it was, you got me. If it wasn’t, then that’s quite a big lack of understanding of what’s actually happening.

      • pingveno@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Tell me the values of the variables involved,

        There be dragons! Sounds like a good way to get passwords/secrets logged.

  • golden_zealot@lemmy.ml
    link
    fedilink
    English
    arrow-up
    51
    ·
    edit-2
    2 years ago

    I had this happen to someone I mentor and pointed out that they had two versions of the same file in two different paths named the same. They were running the version in the other path than they were editing lol.

    • ChickenLadyLovesLife@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      You’re describing classic ASP except that was usually 17 different versions of the same-named file.

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    38
    ·
    2 years ago

    Imports be like

    • PeWu@lemmy.ml
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

      NodeJS when trying ES Module in CommonJS project:

  • Wilzax@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    2 years ago

    Check which file is giving the error, it’s probably being thrown in an included library, not your code.

    • erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      29
      arrow-down
      3
      ·
      2 years ago

      Yeah, but that’s some bullshit. I want to know what line in my file is causing the error.

      And they know! They know what line in your file caused the error! They know the value of all the variables when the error hit. But do they show that? Fuck no.

      • gusVLZ@sh.itjust.works
        link
        fedilink
        arrow-up
        11
        ·
        2 years ago

        Just read the whole stack trace till you find a familiar file

        • erogenouswarzone@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          edit-2
          2 years ago

          No offense, but I know how to read a stack trace, and yes locate a familiar file - if you’re lucky enough to have one listed therein.

          My point is, there is no excuse for them being so terrible except that they’ve always been that way.

          The important information should be brief and at the top. This is design 101. The same ideas that have driven newspaper articles and websites for as long as the two have been a thing.

          You put the important stuff in big letters at the top, and the rest, if you need it, is beneath the fold.

          Edit: just to drive the point home: I’m sure it’s not the packages I’ve downloaded that are causing the error, I am positive it is my code, so show me where my code had a mistake first. Then you can show me the horrible “wall of text” that is the stack trace so I can understand it better later, but 99% of the time, just seeing the line that caused the error is enough to know what the problem is.

          • gusVLZ@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            It’s a fair point, it would help a lot, I can see a drawback when the problem is incompatibility between libs or errors inside the lib but it could be solved with a show more option.

            I like your ideia, would love to see how it would work

  • Pistcow@lemm.ee
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    2 years ago

    I’m disabled

    • macniel@feddit.de
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

      How are you disabled?

      • entropicdrift@lemmy.sdf.org
        link
        fedilink
        arrow-up
        14
        arrow-down
        1
        ·
        2 years ago

        Leg disabled

        • macniel@feddit.de
          link
          fedilink
          arrow-up
          9
          ·
          2 years ago

          And how did that happen, if you allow the question?

          • entropicdrift@lemmy.sdf.org
            link
            fedilink
            arrow-up
            11
            ·
            2 years ago

            I don’t kno~ow

          • AdamBomb@lemmy.sdf.org
            link
            fedilink
            English
            arrow-up
            6
            ·
            2 years ago

            Acid

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    23
    ·
    2 years ago

    i too hate javascript

    • erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      Hey hey. JavaScript is easy. It’s when you get into virtual doms that debugging becomes a nightmare.

  • gun@lemmy.ml
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    2 years ago

    Line 548! is insane. I can’t even imagine a number that big.

    • mycelium underground@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      Programming Dad jokes are so bad yet so good.

  • Solivine@sopuli.xyz
    link
    fedilink
    arrow-up
    19
    ·
    2 years ago

    I love how all the comments feel the need to say how they’d solve it.

    • daed@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

      Programmers are problem solvers 🤷‍♂️

      • Natanael@slrpnk.net
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        And problem causers

  • SokathHisEyesOpen@lemmy.ml
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    2
    ·
    2 years ago

    Sourcemaps. Use sourcemaps.

    • Midnight Wolf@lemmy.world
      link
      fedilink
      English
      arrow-up
      60
      ·
      2 years ago

      Is de_dust okay or?

      • uranibaba@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        2 years ago

        I prefer hostage maps.

        • perishthethought@lemm.ee
          link
          fedilink
          English
          arrow-up
          10
          ·
          2 years ago

          The hostage has been planted.

          • Jumi@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            2 years ago

            Fuze has entered the chat

            • ezures@lemmy.wtf
              link
              fedilink
              arrow-up
              2
              ·
              2 years ago

              Did they add him with cs2?

              • Player2@sopuli.xyz
                link
                fedilink
                arrow-up
                4
                ·
                2 years ago

                No that’s coming in CS2: Siege

            • nickwitha_k (he/him)@lemmy.sdf.org
              link
              fedilink
              arrow-up
              1
              ·
              2 years ago

              FUSE has entered the chat.

          • SokathHisEyesOpen@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 years ago

            HUMILIATION

    • erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      Can you give us an eli5 on sourcemaps?

      • YourAvgMortal@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        Usually when code is minified, it is shipped alongside a sourcemap (*.js.map), which can be used by the browser to show you the original code.

        If you get an error in the browser, you can click the error, which will take you to the network(?) tab and show you exactly where the error occurred

        • SokathHisEyesOpen@lemmy.ml
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 years ago

          Also when code has been compiled, or transpiled. The reason the line numbers don’t match is because all of the code is being assembled into one large package and served to whatever client uses it. So even if you don’t minify, but you’re compiling, sourcemaps will show you where the error actually occurs, instead of where it occurs in the finished product.

          • Natanael@slrpnk.net
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Especially if the compiler optimization options inlined code from 5 different places into one blob

  • morrowind@lemmy.ml
    link
    fedilink
    arrow-up
    18
    ·
    2 years ago

    For the record the only language I’ve had this happen to me is in js

  • dolle@feddit.dk
    cake
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    This regularly happens for me in Kotlin due to inlined functions

  • Instantnudeln@feddit.de
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    At a sea parks?!

    • Welt@lazysoci.al
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      It’s a VERY WEIRD place for a fire!

  • MonkderZweite@feddit.ch
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    You used a library wrong.

    • nnjethro@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      iPhone 4 vibes

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.

  • 723 users / day
  • 723 users / week
  • 915 users / month
  • 3.62K users / 6 months
  • 2 local subscribers
  • 36.2K subscribers
  • 1.73K Posts
  • 35.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org