News for hackers. Stuff that matters.
Re:MoveTo – A lightweight scroll animation JS library withou... by d--b on Tuesday March 21, 2017 @07:31AM (#13921278)
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.

Re:MoveTo – A lightweight scroll animation JS library withou... by alpcan on Tuesday March 21, 2017 @07:41AM (#13921323)
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.
Re:MoveTo – A lightweight scroll animation JS library withou... by jazoom on Tuesday March 21, 2017 @07:41AM (#13921324)
I'll take the library. That's 50 lines of code I don't have to write.
Re:MoveTo – A lightweight scroll animation JS library withou... by mynewtb on Tuesday March 21, 2017 @07:53AM (#13921372)
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!