Earlier quoted context omitted.
Found the NPM user. Dependencies have costs: - Dependencies break over time. They have a nonzero maintenance cost. - They impose API boundaries on you that may not fit your existing data structures - It's harder to change underlying bugs - They might introduce security issues Sure, use dependencies. But there's a reasonable position between "never write any code" and "never take on dependencies". Of which NPM is one…
Everyone who's used NPM in production for a not-insignificant amount of time has realized just how bad nodejs dependency hell can be. Unfortunately, webdev-du-jour has decided pulling in a hundred npm packages is better than writing a few hundred lines of code. I keep hoping things like [1] are a joke but I'm starting to suspect they're not. [1] https://www.npmjs.com/package/is-odd
Never use a dependency that you could replace with an afternoon of programming
321–330 of 333 posts
Re: Never use a dependency that you could replace with an afternoon of programming
#322A year ago I needed a min-heap to build a priority queue at work. So first I grabbed 'heap' from npm (272k weekly downloads) and set it to work. But a few days later I realized my code was executing slower than expected because it sometimes needed to clone the data structure, and the clone instantiation would break the heap invariant in the array internals. It turned out there's been an issue open about this since ea…
Re: Never use a dependency that you could replace with an afternoon of programming
#323"If you think that creating a wrapper around the library is too expensive, then the dependency is not worth having".
Re: Never use a dependency that you could replace with an afternoon of programming
#324Re: Never use a dependency that you could replace with an afternoon of programming
#325Earlier quoted context omitted.
Found the NPM user. Dependencies have costs: - Dependencies break over time. They have a nonzero maintenance cost. - They impose API boundaries on you that may not fit your existing data structures - It's harder to change underlying bugs - They might introduce security issues Sure, use dependencies. But there's a reasonable position between "never write any code" and "never take on dependencies". Of which NPM is one…
Everyone who's used NPM in production for a not-insignificant amount of time has realized just how bad nodejs dependency hell can be. Unfortunately, webdev-du-jour has decided pulling in a hundred npm packages is better than writing a few hundred lines of code. I keep hoping things like [1] are a joke but I'm starting to suspect they're not. [1] https://www.npmjs.com/package/is-odd
Re: Never use a dependency that you could replace with an afternoon of programming
#326Earlier quoted context omitted.
> But now you know what the dependency is really supposed to do and why it's non-trivial, so you're in an even better position to evaluate which ones are good. I came in here to say this. If you think you're not qualified to write the function, you're probably also equally unqualified to choose someone else's implementation of it. There is a lot of stuff out there-- stuff which is widely used-- which is not fit for y…
Not a lot of people can correctly write cryptography code on the first try, but we definitely advocate for people pulling well known cryptography libraries and using them instead of building their own, for obvious reasons. Not many people are qualified to write a lot of things, but are capable of making sound dependency judgements with heuristics. The trick is to use good heuristics and to not use a library for every…
Re: Never use a dependency that you could replace with an afternoon of programming
#327Re: Never use a dependency that you could replace with an afternoon of programming
#328Re: Never use a dependency that you could replace with an afternoon of programming
#329Re: Never use a dependency that you could replace with an afternoon of programming
#330Earlier quoted context omitted.
Everyone who's used NPM in production for a not-insignificant amount of time has realized just how bad nodejs dependency hell can be. Unfortunately, webdev-du-jour has decided pulling in a hundred npm packages is better than writing a few hundred lines of code. I keep hoping things like [1] are a joke but I'm starting to suspect they're not. [1] https://www.npmjs.com/package/is-odd
I'm sorry that my framework and bundler are using so many packages. Lemme just quickly install Android Studio and download a few gigabyte to develop and build my application. Ah yikes I'm on a different version, need to redownload now.