• UnderpantsWeevil@lemmy.world
    link
    fedilink
    arrow-up
    26
    arrow-down
    2
    ·
    9 months ago

    The only thing worse than code I don’t understand is code I do understand that’s literally been copied and pasted sixteen times in the same file.

    Literally encapsulation, its the first fucking thing they teach you in Dev 101, my fucking god people please I’m begging you!

    • mrmanager@lemmy.today
      link
      fedilink
      arrow-up
      7
      arrow-down
      2
      ·
      9 months ago

      Dev 101 is not followed in real life… Sadly, caring about code quality is difficult or impossible when you work with others.

    • 0x4E4F@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Dude, you don’t have to be a dev to write code. There are many self-taught coders out there. I do agree that they should read a book or two regarding coding pracices, but hey, you don’t like it, rewrite it 🤷.

      Me, personally, if someone else made it, I need it and I don’t have time to meddle (I usually don’t), I just use it. With all do respect, fuck coding practices, I got more important things in my life to worry about.

      • TheHarpyEagle@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        9 months ago

        Meh, maintainability is king. Sticking to the letter of the style law is probably not necessary, but ignoring badly structured code now is going to bite you in the ass when it comes time to change any of it.