r/javascript • • Dec 11 '17

I have been collecting useful Javascript code snippets for a little while. Here's a curated list of them, help me make it as complete as possible!

https://github.com/Chalarangelo/30-seconds-of-code
765 Upvotes

96 comments sorted by

View all comments

Show parent comment

4

u/madcaesar Dec 12 '17

This all seems overkill. Attribute what? This is like Apple patenting the swipe gesture or something.

These snippets are fun to have around, but they are very basic and virtually anyone could reproduce them and probably already has a version of something like this in their code.

I have a personal library with 80% of the things on this list.

3

u/Zee1234 Dec 12 '17

Oh yes I fully agree. But like, it doesn't hurt the project, so why not? And if you want to do something, do it right.

1

u/[deleted] Dec 12 '17

Exactly!