• DreamButt@lemmy.world
    link
    fedilink
    English
    arrow-up
    90
    ·
    13 hours ago

    Ngl that’s like baby levels of nasty code. The real nasty shit is the stuff with pointless abstractions and call chains that make you question your sanity. Stuff that looks like it’s only purpose was to burn the clock and show off a niche language feature. Or worse than that even is when the project you inherit has decade old dependencies that have all been forked and patched by the old team

    If all I had to worry about was organization and naming I’d be over the moon

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      And hard casting onto the wrong class because a neat function lives in there (who will detect you did that and treat you a little different because you don’t have all the resuired data in that class instance) as a “quick fix”

    • Zos_Kia@lemmynsfw.com
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      The real nasty stuff is not code it’s in proprietary blobs which can only be edited through proprietary software. The documentation is shit (because the editor also sells training) and there are no communities (because implementation specialists think having secrets is having an edge).

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      42
      ·
      12 hours ago

      Git commits with message saying “pushing changes” and there are over 50 files with unrelated code in it.

    • criss_cross@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 hours ago

      My favorite was an abstract class that called 3 levels in to other classes that then called another implementation of said abstract class.

      And people wonder why no one on our team ever got shit done.