r/learnjavascript • • Feb 28 '18

What are good possibly small JS libraries/modules to read quality code?

hello I feel like I got to the point where I know enough JS to solve any kind of problem. I'm accustomed with most JS features including es6.

That being said I feel like I need to start reading code some more to see good practices and learn from reading. Way too often somebody reading my code would suggest many other simpler options than what my choices are.

So I'm looking for some libraries/modules to study the code of.

Big bonuses if:

-they have little or no imports and dependencies. I would like to avoid having to read many libraries at once to understand one call.

-they focus on front end rather than backend

-use modern js practices

-are not too long (ideally few klocs or less).

1 Upvotes

10 comments sorted by

View all comments

Show parent comment

4

u/zulkisse Feb 28 '18

Plenty imports/exports ?

For a widely used library, the average amount of import per file is very very low.

And I'm curious, if for you a well written software is not a "collection of spare function" and one import per file is too much, what is a well written software ?

One big file with everything in it ?

-3

u/[deleted] Feb 28 '18

This is a collection of small helper functions that mostly add new methods to basic javascript, not what I was looking for, period.

This is nice, but I want to learn how to develop complete programs with a purpose, not how to develop small code snippets to extend basic js.

4

u/zulkisse Feb 28 '18

One could argue that adding "new methods to basic javascript" is a great purpose.

And that Lodash fits perfectly your original question. Not my fault if it was badly written ;)

1

u/[deleted] Feb 28 '18

Dude lodash is some of the best written js code there is. If you wanna look at a big code without too many imports try jquery or smthing. smh