Hacker News new | ask | show | jobs
by d--b 3380 days ago
While I understand the idea of having small functionalities separated in packages with no dependencies, this feels somewhat too small.

This is basically a wrapper for the `move` function that is defined in 50 lines of code.

As a developer, I gain more by understanding those 50 lines of code than understanding how to import and call this.

3 comments

I got the point but planning logic about for these 50 lines of code takes much more time than just import this kind of small packages. For example redux-thunk is also about 10 lines but all redux community uses it when needed.
I'll take the library. That's 50 lines of code I don't have to write.
That's but imagine you had to implement a function that leftpads a string. Not much to learn by doing it yourself, so just import it!