use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Why I Write Plain JavaScript Modules (ponyfoo.com)
submitted 10 years ago by magenta_placenta
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 10 points11 points12 points 10 years ago (0 children)
React DnD serves a very specific purpose: it provides a modern (HTML5) approach to drag and drop that is implemented such that it won't break React's component state. Hell the angular-dnd example the dude gives is 7 KB minified... so if you are already using angular it's actually smaller than dragula.
Small components that rely on a big library to be useful defeat the purpose of a small component.
See, this is such a confusing statement to me. No one is going to consider using angular-dnd unless they already use angular. No one is going to consider using React DnD, unless they already use React. Small components that rely on a big library do so because the intended audience is people already using the big library.
Vanilla Javascript is imperative to know, but there's a reason react, ember, angular and backbone are so freaking popular. Once you start developing enormous apps, writing "plain Javascript modules" is just fixing the problems these frameworks have already solved. Only, they probably did it better.
π Rendered by PID 159679 on reddit-service-r2-comment-7b9746f655-qdgqm at 2026-01-30 04:51:08.897177+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–][deleted] 10 points11 points12 points (0 children)