Cyberia
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@suppo.fi to Programmer Humor@programming.dev · 8 hours ago

Senior devs...

suppo.fi

message-square
39
link
fedilink
399

Senior devs...

suppo.fi

cm0002@suppo.fi to Programmer Humor@programming.dev · 8 hours ago
message-square
39
link
fedilink
alert-triangle
You must log in or # to comment.
  • addie@feddit.uk
    link
    fedilink
    arrow-up
    2
    ·
    34 minutes ago

    Abstraction is not very compatible with concurrency, so as well as your your beautiful abstract API, you also need some ‘cut through the layers’ functions to return the underlying classes you need to synchronise on. Now you have a right mess that’s incredibly hard to understand, infuriating to debug, and impossible to refactor. Best you can do is put another layer of abstraction on top. Repeat every six months.

  • Randelung@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 hour ago

    I recently started a new job. We use Java. There’s a class that does a few things based on explicit arguments only to decide whether to use an FTP or file output, and you supply all parameters yourself. A whole ass Rube Goldberg machine that could be replaced by a single line of Files.writeString.

    Also, there’s a great video on YT “Stop writing classes” that is incredibly relevant.

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 hour ago

    They look so painfully awkward, like a parent should be telling them to knock it off or something.

    • lemmy_get_my_coat@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      47 minutes ago

      At least one of them is a pedophile, so you’re probably not wrong

  • thedeadwalking4242@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    4 hours ago

    Junior devs not abstracting anything and now the app is unmaintainable

    • Tamo240@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      2 hours ago

      Exactly, have fun trying to get test coverage without dependency injection

      • jjjalljs@ttrpg.network
        link
        fedilink
        arrow-up
        1
        ·
        44 minutes ago
        
        with patch("some_file.requests.get", side_effect=SomeException("oh no")):
          result = func_using_requests()
        

        Though not every language makes mocking as easy, and multiple responsibilities in a single function can quickly get messy.

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      3 hours ago

      Is it any more maintainable with four levels of abstraction?

      • RagingRobot@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        32 minutes ago

        Depends on the abstractions

      • thedeadwalking4242@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        2 hours ago

        There’s a middle ground

        • red_tomato@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          38 minutes ago

          2 layers of abstraction is the gold standard

  • WanderingThoughts@europe.pub
    link
    fedilink
    arrow-up
    21
    ·
    4 hours ago

    Just got out of a discussion with a supplier. We can do what we needed by connecting to the database. Instead we have to go through four layers of different tech to arrive at the same point in the database otherwise it’s not compliant. That the supplier needs to sell a license for those layers is purely coincidental.

    • expr@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 hour ago

      Obviously don’t have the full context, but rarely is it ever advisable to give third parties direct access to a database. There are many reasons for this, like, for example, the fact that doing so makes schema migrations practically impossible.

  • RedFrank24@piefed.social
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    4 hours ago

    Always favor composition over inheritance if you can.

  • boaratio@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 hours ago

    Can confirm.

  • vatlark@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    2 hours ago

    Hell yeah, peertube has the video: https://peerate.fr/w/2ktPxQgBvDHdHWzogVTRvH

    • HellieSkellie@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      9
      ·
      3 hours ago

      they really made their domain pee rate dot france huh

      • vatlark@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        Lol that’s a nice catch

        Edit: maybe “peer at eFrance” or something that makes more sense in french.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        I don’t get it.
        Does it have something to do with a certain place in France smelling of piss?

    • bonenode@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      It’s… glorious.

  • commie@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    2 hours ago

    op. https://programming.dev/post/44899977

    • cm0002@suppo.fiOP
      link
      fedilink
      arrow-up
      5
      arrow-down
      4
      ·
      2 hours ago

      Don’t link to or participate on Lemmy.ml, join the boycott today!

      Cross-posted as part of ongoing boycotting/protest efforts to reduce the influence of .ml comms and indirectly, the instance as a whole, to help vitilize and drive non-.ml comms and make it an easier decision for other instance admins to defederate because of the behavior and attitudes of the .ml instance admins (see megathread link above)

      Some highlights from the link:

      “If you don’t support Russia then you just don’t understand geopolitics” ~dessalines, main .ml admin, head dev https://lemmy.world/post/27352415

      “See! nobody died IN Tiananmen Square, just AROUND it, so it doesn’t count!!” ~ Davel, .ml admin https://lemmy.world/post/30673342

      “NK is actually good and anything counter to that is Western propaganda!” ~dessalines, main .ml admin, head dev https://lemmy.world/post/31595035

      Showing support for Ukraine on .ml is worthy of a site ban - dessalines, main .ml admin, head dev https://lemmy.world/post/32775563

      Nutomics continued transphobia https://lemmy.world/post/29222558

  • lessthanluigi@lemmy.sdf.org
    link
    fedilink
    arrow-up
    74
    ·
    8 hours ago

    DEVELOPERS, DEVELOPERS, DEVELOPERS, DEVELOPERS!!!

    • squirrel@piefed.kobel.fyi
      link
      fedilink
      English
      arrow-up
      43
      ·
      7 hours ago

      COPILOTS, COPILOTS, COPILOTS, COPILOTS!!!

      There, I updated it for you and I hate it.

    • GreenKnight23@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      6 hours ago

      you missed the best part

      AAAAHHHHRRRRGGGHHHHHHHAAAAAAAA! sweat pouring off balmer as his body goes into shock from the pain

    • Deceptichum@quokk.au
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 hours ago

      https://www.youtube.com/watch?v=rRm0NDo1CiY

  • red_tomato@lemmy.world
    link
    fedilink
    arrow-up
    51
    ·
    8 hours ago

    Why should I want simplicity? I want to make unnecessarily complex programs to gatekeep those pesky junior programmers.

    • StinkyFingerItchyBum@lemmy.ca
      link
      fedilink
      English
      arrow-up
      27
      arrow-down
      1
      ·
      7 hours ago

      • CameronDev@programming.dev
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        6 hours ago

        That’s how you get that job security…

        • fascicle@leminal.space
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          I think what they meant is that making it complex gets you job security

  • Kairos@lemmy.today
    link
    fedilink
    arrow-up
    21
    ·
    6 hours ago

    Abstraction layers is simplicity given a complex enough bottom.

    • iegod@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      I’ve been around long enough to question this kind of advice. It depends, in so many ways, on the goals, strategies, and platforms.

    • ToastedRavioli@midwest.social
      link
      fedilink
      arrow-up
      12
      ·
      4 hours ago

      A complex bottom may have difficulty mating with a simple top

      • da_cow (she/her)@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        10 minutes ago

        UwU

  • Zannsolo@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    6 hours ago

    Me making my devs create a base exception for handling all exceptions that contain messages for display in the UI. Which has a parent base exception we use for all our exceptions which of course has Exception for it’s parent.

    I hate our codebase but I’m so close to killing off 15 year old vb.net code. If the left me alone and I had the time I spent in meetings or 20 mins between meetings everything on our roadmap for the next year would have been done 2 years ago.

  • kali_fornication@lemmy.world
    link
    fedilink
    arrow-up
    17
    arrow-down
    2
    ·
    7 hours ago

    that image is from the whitest gif of all time

    • Constant Pain@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      2
      ·
      3 hours ago

      Americans love to make everything about skin color…

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        We tried to get a black dev onboard, but she refused adding 4 layers of abstraction.

    • fascicle@leminal.space
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      Where did the gif come from

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

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

  • 1.9K users / day
  • 4.36K users / week
  • 8.37K users / month
  • 17.4K users / 6 months
  • 1 local subscriber
  • 28.9K subscribers
  • 1.34K Posts
  • 28.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org