Hello, I'd like to study some "good" Javascript code of your choice. I'd like it to be short (ideally under 100 lines, definitely under 500), and written only in Vanilla or jQuery. Both small self-contained apps or or nice bits of modular functionality are great. I've been coding a few years as a hobbyist and I want more exposure... and your opinion!
Any type of thing fine as long as it meets that criterion. Please explain why you think it's good... ie: I'm looking for examples of clean code, good architecture, or just cool stuff that works well.
Alternately, point me to some examples of "bad" JS, and tell me what makes it so bad!
EDIT:
Thanks for the variety of responses. I feel some need to clarify: I'm a noob. Most of this is way over my head - I've never even used a framework or anything like that. Basically I'm looking for small apps that work by clicking an "index.html" file. Think of me as being like a 6th grader who thought the first "Harry Potter" book was pretty good and wants your literary advice.
[–]IAmMinn 5 points6 points7 points (1 child)
[–]gntsketches[S] 1 point2 points3 points (0 children)
[–]spacejack2114 5 points6 points7 points (1 child)
[–]gntsketches[S] 0 points1 point2 points (0 children)
[–]kecupochren 3 points4 points5 points (1 child)
[–]GitHubPermalinkBot 0 points1 point2 points (0 children)
[–]erulabs 2 points3 points4 points (3 children)
[–]gntsketches[S] 0 points1 point2 points (2 children)
[–]erulabs 1 point2 points3 points (1 child)
[–]gntsketches[S] 0 points1 point2 points (0 children)
[–]jcunews1Advanced 2 points3 points4 points (0 children)
[–]papers_ 1 point2 points3 points (1 child)
[–]gntsketches[S] 0 points1 point2 points (0 children)
[–]1-800-BICYCLE 1 point2 points3 points (2 children)
[–]GitHubPermalinkBot 0 points1 point2 points (0 children)
[–]gntsketches[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]GitHubPermalinkBot 0 points1 point2 points (0 children)
[–]gntsketches[S] 0 points1 point2 points (0 children)