Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Maven (famous) ( Maven@lemmy.zip )  to Programmer Humor@programming.dev · 2 years ago

Detailed Error Messages

lemmy.zip

message-square
17
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
578

Detailed Error Messages

lemmy.zip

Maven (famous) ( Maven@lemmy.zip )  to Programmer Humor@programming.dev · 2 years ago
message-square
17
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or # to comment.
  • ByteOnBikes ( ByteOnBikes@slrpnk.net ) 
    link
    fedilink
    arrow-up
    144
    ·
    2 years ago

    At my job, we have an error code that is similar to this. On the frontend, it’s just like error 123.

    But in our internal error logs, it’s because the user submitted their credit card, didnt fully confirm, press back, removed all the items out of their cart, removed their credit card, then found their way back to the submit button through the browser history and attempted to submit without a card or a cart. Nothing would submit and no error was shown, but it was UI error.

    It’s super convoluted. And we absolutely wanted to shoot the tester who gave us this use case.

    • RecluseRamble ( RecluseRamble@lemmy.dbzer0.com ) 
      link
      fedilink
      arrow-up
      58
      ·
      edit-2
      2 years ago

      And we absolutely wanted to shoot the tester who gave us this use case.

      Why? Because he tested well and broke the software? A user changing their mind during a guided activity absolutely is a valid use case.

      • NeatNit ( NeatNit@discuss.tchncs.de ) 
        link
        fedilink
        arrow-up
        39
        ·
        2 years ago

        I think they meant shoot in like a friendly way. You know, happiness bullets!

        • KomfortablesKissen ( KomfortablesKissen@discuss.tchncs.de ) 
          link
          fedilink
          arrow-up
          38
          ·
          2 years ago

          Oh, THAT’s what “friendly fire” means!

          • tetris11 ( tetris11@lemmy.ml ) 
            link
            fedilink
            arrow-up
            16
            ·
            2 years ago

            hey that tickles!

        • abbadon420 ( abbadon420@lemm.ee ) 
          link
          fedilink
          arrow-up
          9
          ·
          2 years ago

          Like how I always say to my friends, “Look at me again and I will fucking murder you and rape your family dog”… it’s just in good fun.

      • CatLikeLemming ( CatLikeLemming@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 years ago

        It’s likely a difference of emotion compared to logic. Emotionally they’d think “Damn it, now we need to check for such a weird specific edge-case, this is so annoying” while logically knowing it’s better the tester caught it.

    • abbadon420 ( abbadon420@lemm.ee ) 
      link
      fedilink
      arrow-up
      32
      ·
      2 years ago

      This makes want to become a tester. It scratches my evil itch just the way I like it.

  • ClassifiedPancake ( ClassifiedPancake@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    26
    ·
    2 years ago

    I might be the one hitting that link just to see what happens.

  • TedvdB ( tedvdb@feddit.nl ) 
    link
    fedilink
    arrow-up
    23
    ·
    2 years ago

    Now the dev doesn’t need to comment this part of the code, saves him time.

  • bratorange ( bratorange@feddit.org ) 
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    2 years ago

    Day 492 of predicting edge cases…

  • CanadaPlus ( CanadaPlus@lemmy.sdf.org ) 
    link
    fedilink
    arrow-up
    19
    ·
    2 years ago

    Man, actually seeing this in a wild log would make my day.

  • katy ✨ ( cupcakezealot@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    whats wild is that all the returned values were the same this is only for a log value that probably zero people check

    • wizardbeard ( wizardbeard@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 years ago

      I believe rule of thumb is to track/log at least one level deeper than what you show to the end user, to ease with troubleshooting and debugging.

      Beyond that, logs are only useless until they aren’t, and then if you don’t have them you’re in for a universe of pain.

  • driving_crooner ( driving_crooner@lemmy.eco.br ) 
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Is that python? If it’s, thank you, finally learned how to format text in a way that can be read on the script and in the execution.

    • zaphod ( zaphod@sopuli.xyz ) 
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      As the other comments have already said it’s not Python. Not sure what you mean with text formatting, do you mean that it’s multiple strings that are concatenated using +? You don’t need the + in Python, you can do

      some_function(
          "part one of really long string"
          " part two of really long string"
      )
      

      Which is identical to

      some_function("part one of really long string part two of really long string")
      
    • alfenstein ( alfenstein@beehaw.org ) 
      link
      fedilink
      dansk
      arrow-up
      3
      ·
      2 years ago

      Looks like TypeScript to me

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.

  • 34 users / day
  • 1.42K users / week
  • 3.12K users / month
  • 7.26K users / 6 months
  • 463 local subscribers
  • 33.4K subscribers
  • 1.52K Posts
  • 25K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code