News for hackers. Stuff that matters.
Re:Measuring Software Complexity: What Metrics to Use? by throwaway81523 on Sunday November 28, 2021 @06:49AM (#29368143)
Some blog linked from here (maybe jvns.ca?) made the case that depth of your project's software dependency tree is an important metric. The more crap you have to pull in, the more things can go wrong. You're better off with a large program with no dependencies, than a somewhat smaller program with a ton of dependencies.

Language features on the other hand can let you develop complex programs quickly and reliably, by catching errors before the code gets deployed and so on.

Re:Measuring Software Complexity: What Metrics to Use? by juancb on Sunday November 28, 2021 @12:42PM (#29370958)
What about the depth of dependencies of any part of the standard libraries for a given language?
Re:Measuring Software Complexity: What Metrics to Use? by throwaway81523 on Sunday November 28, 2021 @01:53PM (#29371689)
I think that doesn't count, as long as the install is in one piece. That's how Python got its popularity. Its "batteries included" approach meant you got lots of stuff in the stdlib instead of having to chase it all over the interweb. Unfortunately they seemed to have abandoned that approach in more recent times.
Re:Measuring Software Complexity: What Metrics to Use? by closeparen on Sunday November 28, 2021 @06:18PM (#29374270)
Python has a lot of batteries included, but nearly everyone finds it necessary to bring in “requests.” And then once you have one pip package, what’s a few more?
Re:Measuring Software Complexity: What Metrics to Use? by throwaway81523 on Sunday November 28, 2021 @06:25PM (#29374347)
I use urllib instead of requests just to get rid of a dependency. It does all the same stuff with slightly uglier calls. More to the point, Python Central seems to now favor shovelling off stuff to external dependencies.
Re:Measuring Software Complexity: What Metrics to Use? by preseinger on Sunday November 28, 2021 @05:31PM (#29373791)
Isn't the standard library definitionally depth=1?