Hacker News new | ask | show | jobs
by SkyMarshal 4539 days ago
Plenty of debate these days over whether to use an AMD-based loaders like require.js [1], or to bundle all your js into a single file with Browserify [2]. Worth someone new being aware of, but that debate can get rather complicated.

[1]:http://requirejs.org/

[2]:http://browserify.org/

2 comments

All of you are giving good advice but I just have to chuckle at how quickly you all proved OPs point.
Yeah this is one of the best examples of people proving a point by trying to disprove it I've ever seen.

"The ecosystem isn't (that) confusing, just use X Y and Z"

- "No, use X Y and A"

-- "Who uses Y? Use C"

Myth: confirmed!

Well, I wasn't trying to say it wasn't confusing. Just trying to reduce the confusion by picking a starter pack. It doesn't work if everyone else flinches and decides they have a better starter pack than me!
hahaha this was hilarious even before I saw the 15 or so additional contradictory suggestions below this thread.
That was the point ;)
Just a heads up, but require.js supports moving everything into a single file:

http://requirejs.org/docs/optimization.html

Your comment makes it seem like it doesn't.