• InvalidName2@lemmy.zip
    link
    fedilink
    arrow-up
    13
    ·
    24 hours ago

    Which sounds like great, practical advice in a theoretical perfect world!

    But, the reality of the situation is that professionals are usually balancing a myriad of concerns and considerations using objective and subjective evaluations of what’s required of us and quite often inefficiency, whether in the form of programmatic complexity or in the form of disk storage or otherwise, has a relatively low precedent compared to everything else we need to achieve if we want happy clients and a pay check.

    • kautau@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      19 hours ago

      Lol yeah working in enterprise software for a long time, it’s more like:

      1. Import what you think you need, let the CI do a security audit, and your senior engineers to berate you if you import a huge unnecessary library where you only need one thing
      2. Tree shake everything during the CI build so really the only code that gets built for production is what is being used
      3. Consistently audit imports for security flaws and address them immediately (again, a CI tool)
      4. CI

      Basically just have a really good set of teams working on CI in addition to the backend/frontend/ux/security/infrastructure/ whatever else teams you have

    • TootSweet@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      4
      ·
      23 hours ago

      Saying “we can’t in practice reduce the complexity of our dependency tree because we need happy clients and a pay check” is like saying “we can’t in practice turn on the propeller because we need to get this airplane off the ground”.

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        15
        ·
        edit-2
        21 hours ago

        Clients don’t care much about the dependency graph. They do care about delivering on time and sometimes not reinventing a bunch of wheels is crucial for that.

          • marlowe221@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            ·
            18 hours ago

            Amen.

            I have sorted out so many JS dependency tangles for my team members, both front end AND back end, that I am loathe to import anything I don’t absolutely have no choice about.

            I will rewrite some stuff before I import it…