@marcan@treehouse.systems I find it somewhat silly that you are disregarding the benefits of depending on code maintained by someone else while pulling out one flaw ("well known stories with Node.js").
I'm an author of a couple of libraries that you would probably say are useless and should be avoided/vendored but improve runtime efficiency and contain some trickery internal code.
@GnomedDev @marcan [social.treehouse.systems] This whole thread of people saying "just copy/paste code" is like bizarroworld.
@GnomedDev I agree with @marcan [social.treehouse.systems] and as @robpike said: “a little copying is better than a little dependency”.
@sszuecs Real programmers don't simply copy their CPU off of intel, they implement their own bespoke instruction set to avoid maintaining that technical debt!
@GnomedDev @sszuecs you don't understand the trade-off. The "little copy is better then dependency" crowd is not against dependencies in total. But even in eco systems with powerful package managers each dependency has a long term cost. You can't just put renovatebot and happily merge whatever change the Maintainer does. This will give you a free update to cryptominer or worse eventually. So you have to review your dependencies regularly and vet their government/mainterners.
@GnomedDev @sszuecs and for some parts of the code, which are well understood, small and "done", just copy. If you need the updates of a full fledged third party library, introduce it later if needed.
I do it eben for internal projects. It's not worth the effort to introduce a central utils library for some well defined helper.
@GnomedDev @hikhvar @sszuecs It is a symptom of a bad library that it contains parts which might be useful on its own and could better be copied out of it? Strange takes you have.
@GnomedDev Tell us you’re too young to remember left-pad without telling us you’re too young to remember left-pad.
@mjgardner I remember left-pad. Please don't disregard my opinion based on a characteristic I cannot change.
@GnomedDev I assure you that is not why I am disregarding your opinion
@mjgardner I don't see the point of you bringing it up then.
@GnomedDev Yes, I know