Comment

Comment by vvvvtt340

One example I can think of is the "immer" package / the "produce" function:

https://immerjs.github.io/immer/

https://immerjs.github.io/immer/api

The API page lists numerous functions, but the bottom of the page says "In most cases, the only thing you need to import from Immer is produce".

My thought is, immer does something novel, but the vast majority of functionality can be covered in one function.

I think another problem with the "left-pad" situation is the lacking "JavaScript standard library", but that situation is improving over time, especially now that IE11 is deprecated so it's a reasonable expectation to develop against Chrome / Firefox / Safari which are actively maintained and continue to implement new JavaScript features.

parent vvvvtt340 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton