Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you look at how browserify/webpack works, you'll see that AMD is the same thing except that you're coding the module wrappers by yourself manually, when browserify & webpack does it for you.


Right, so AMD works in the browser, and CommonJS doesn't. Tools can transform CommonJS to behave like AMD.


oh man, you're confused. AMD was originally a CommonJS compiler in its very early days. The guy who wrote it invented its own standard (AMD) way later than CommonJS.


How am I confused? AMD works in the browser, CommonJS doesn't. It's very simple, and tools that convert CommonJS to a format that works in the browser only prove that it doesn't.

The history of the formats does not change the facts of how they operate today.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: