• sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    16 hours ago

    If you were to talk like this in any job I’ve ever worked at, you’d be fired in about a week, maybe faster.

    Same with writing emails with this language.

    And you’re missing my point that if you made your own functions… and they don’t work right, … you should fix those functions, rework them.

    Not doing that is how you get technical debt, spaghetti code, which is bad for you, bad for what you’re trying to do, bad for anyone else trying to help you do it.

    Commenting on a bunch of slapdash fixes is like covering holes you punched in your wall with framed graffitti about how frustrated you are.

    If you saw that in a date’s home, you’d hopefully recognizr that as a red flag and nope the hell out.

    If everybody else is too busy to actually fix the code, you have inept project management.

    You as well have clearly never worked in an actual professional software dev environment, if you think this is reasonable or defensible.

    • Incogni@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      14 hours ago

      Absolutely correct.

      I always tell our new developers: If your new feature works, you aren’t done, you have to check if your code has to be refined first, before checking it in. (e.g. duplicated passages made into a common function, ugly hacks removed and “done properly”, stuff like this) Documentation and testing are also mandatory, but that’s because of the industry we work in.

      • sp3ctr4l@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 hours ago

        Yep.

        You can avoid having to do something like a total refactor that takes half the year, if you do the rough equivalent of a sanity check / clean up pass, when any new system or feature set is added, and make that habitual.

        Its… kinda like how if you just do a bit of regular shopping, regular meal prep, regularly do the dishes, whatever, everything just flows easier in general.

        The longer you run lean, move fast and break things… yeah it can improve output in the short term, but medium to long term, you’ll run yourself ragged, and things will break and fall apart.