this post was submitted on 11 Aug 2025
563 points (98.6% liked)

Programmer Humor

25699 readers
1233 users here now

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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] InvalidName2@lemmy.zip 13 points 3 days ago (2 children)

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 7 points 3 days 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 2 points 3 days ago (1 children)

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 15 points 3 days ago* (last edited 3 days ago) (1 children)

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.

[–] TootSweet@lemmy.world 7 points 3 days ago (1 children)

As the guy people come to when they've spent days banging their heads against a dependency conflict problem rather than delivering value for the business, I wish the folks on my team would take the proverb "a little copying is better than a little dependency" to heart a little more.

[–] marlowe221@lemmy.world 6 points 3 days 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…