News for hackers. Stuff that matters.
Re:Ask HN: When do you use a library vs. implement something... by greenhouse_gas on Friday April 20, 2018 @03:08AM (#16882726)
I think its about which languages have good dependency management.

For example, Go, C and C++ have bad dependency management, so most programmers will try to stick to stdlib solutions, only moving to dependencies if copy-paste is an overkill (I wouldn't copy-paste sqlite wrappers, but I would copy-paste a left-pad like function).

NPM and Rust (which isn't managed) has great dependency management, so they move things out of stdlib into packages.

But, it backfired when no one is sure which packages are official, so Rust made a "nursery" of officially maintained out-of-stdlib standard functions.

Re:Ask HN: When do you use a library vs. implement something... by kazinator on Friday April 20, 2018 @09:24PM (#16889516)
Dependency management isn't a concept in C++. C++ is an ISO standard language with numerous implementations; it's not a software package. A C++ compiler from Microchip for your PIC microcontroller has nothing to do with Microsoft Visual C++ has nothing to do with GNU C++ on your Linux box, etc.
Re:Ask HN: When do you use a library vs. implement something... by greenhouse_gas on Sunday April 22, 2018 @01:02AM (#16894788)
ECMAScript is also an (ECMA) standard language. Yet it has NPM.