Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Sucking Chest Wound ( m105@discuss.tchncs.de )  to Programmer Humor@lemmy.ml · 3 years ago

The eye-opener commit

discuss.tchncs.de

message-square
14
link
fedilink
497

The eye-opener commit

discuss.tchncs.de

Sucking Chest Wound ( m105@discuss.tchncs.de )  to Programmer Humor@lemmy.ml · 3 years ago
message-square
14
link
fedilink
alert-triangle
You must log in or # to comment.
  • lobut ( lobut@lemmy.ca ) 
    link
    fedilink
    arrow-up
    87
    ·
    3 years ago

    I remember when I was working with .NET and I saw some web service code and I saw there was no try catches. They didn’t have a global catch in the asax either or anything. I just wrapped each call into a try catch and log.

    I got the same treatment where my manager wanted to know what happened with the increase in errors. I told him what I did. My manager got another developer to go through my commits regardless. I was a bit upset at the lack of trust.

    • magikmw ( magikmw@lemm.ee ) 
      link
      fedilink
      arrow-up
      16
      ·
      3 years ago

      A manager that can’t read a simple try catch commit? Why am I surprised.

      • MonsiuerPatEBrown ( MonsiuerPatEBrown@reddthat.com ) 
        link
        fedilink
        English
        arrow-up
        16
        ·
        edit-2
        3 years ago

        deleted by creator

        • ursakhiin ( ursakhiin@beehaw.org ) 
          link
          fedilink
          arrow-up
          12
          ·
          3 years ago

          This is a massive assumption from the story that was provided. We don’t know that they didn’t discuss with the team and an explanation of “I added a log to errors that were already happening” shouldn’t result in lack of trust from the manager.

          Reactive managers like that are a big problem in the industry.

    • dark_stang ( dark_stang@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      2 years ago

      deleted by creator

      • lobut ( lobut@lemmy.ca ) 
        link
        fedilink
        arrow-up
        5
        ·
        3 years ago

        I remember doing that as a junior because everyone in our codebase did it!

        My new team lead came in and asked me why. I said it’s to reformat it due to the layer it was in. He said “…and what did you really accomplish with that?” All we did was bury our real error really well. It made me think about these things and to question convention more

  • phorq ( phorq@lemmy.ml ) 
    link
    fedilink
    arrow-up
    44
    ·
    3 years ago

    I would normally put an if-statement before that to verify if IGNORANCE still equals BLISS

  • db2 ( db2@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    29
    ·
    3 years ago

    The second panel would be “No, I enabled error reporting. Those errors belong to just you.”

    • Nimfi ( Nimfi@beehaw.org ) 
      link
      fedilink
      arrow-up
      21
      ·
      edit-2
      3 years ago

      deleted by creator

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

    need a blame.css but for code

    • SapientLasagna ( SapientLasagna@lemmy.ca ) Banned from community
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      I’ll see your blame.css and raise you git blame somebody else

  • tsonfeir ( tsonfeir@lemm.ee ) 
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    2 years ago

    deleted by creator

  • Digital Mark ( mdhughes@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    17
    ·
    3 years ago

    “My project” doesn’t exist in any team. It’s everyone’s project. A manager needs to have a long conversation with Pink Pants.

    If you build your project at anything but highest error level, clang -Wall etc., you’re letting errors in, relying at best on coincidence to work the way you think it does.

    Commit it and don’t revert it!

    • pkulak ( pkulak@beehaw.org ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      That’s the joke.

      • Digital Mark ( mdhughes@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        You’d think, but there’s a lot of Pink Pants stans downthread.

  • Crul ( Crul@lemm.ee ) 
    link
    fedilink
    arrow-up
    16
    ·
    3 years ago

    Source: https://www.commitstrip.com/2015/04/27/the-eye-opener-commit/

    Also on twitter:

    • Twitter @CommitStrip
    • Nitter link
    • Nitter RSS Feed: https://nitter.cz/CommitStrip/rss
  • Bear_with_a_hammer ( Bear_with_a_hammer@lemmy.ml ) Banned
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    That’s why PHP team gave us null coalescing (??), oh the misery we went through writing if / else

    • lseif ( lseif@sopuli.xyz ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      who doesnt love ??

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.

  • 1 user / day
  • 46 users / week
  • 359 users / month
  • 1.81K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code