r/AskProgramming • • Aug 11 '26

Python Are huge codebases with layers of dependencies just the new normal?

I’m trying to learn more about how modern software works, and one thing that keeps surprising me is the sheer size of projects. 80k files is not uncommon.

I’ll download or clone something that seems like a relatively focused application, and suddenly I’m looking at tens of thousands of files. A lot of it appears to be dependencies, dependencies of dependencies, generated files, frameworks, package managers, etc.

It feels like a copy of a copy of a copy. The developers maintain a relatively small part of the code, while the finished program ultimately relies on millions of lines of code written by other people.

Is this the new normal in software development that I just have to accept?

from a security perspective, how can anyone trust all of this?

0 Upvotes

36 comments sorted by

View all comments

Show parent comment

3

u/MiddleAgeWeirdoMeep Aug 11 '26

So how do you manage security, since the 90s?

21

u/burlingk Aug 11 '26

My point is that the phrase "dependency hell" exists for a reason and has been around as long as I can remember.

Ideally, you examine each dependency before including it in the project.

In practice, a lot of projects don't.

9

u/sixtyhurtz Aug 11 '26

At a certain point, you just have to manage your dependencies.

Also, is using shared dependencies really less secure? If you try and write your own cryptographic functions you'll make a hash of it; you're better off using OpenSSL. Similarly, are you going to write your own UI framework? Why would you even do that if your goal is to ship a product to customers?

Writing your own code vs reviewing third-party dependencies is a trade-off. It's just how it is.

3

u/mansfall Aug 11 '26

You write more files and compile those down to new dlls or some exe. That is your "software update".

After years of writing, people coming and going, you get left with massive code bases.

2

u/Pyromancer777 Aug 11 '26

For open source libraries you generally have tons of volunteers who like the project making contributions to patch bugs. For proprietary software, there are usually bug-bounties for anyone who notices an exploit and reports it to the company.

Larger security conscious companies/governments have red and blue teams where the red team tries to hack the system while the blue team monitors for attacks and patches any bugs the red team flags.

Sadly, it is constant patchwork rather than security as a default practice

2

u/AnEagleisnotme Aug 11 '26

You don't, realistically 

1

u/CS_70 Aug 11 '26

With difficulty