r/javascript • • Mar 27 '14

13 Steps to AngularJS Modularization

http://blog.safaribooksonline.com/2014/03/27/13-step-guide-angularjs-modularization/#more-14468
33 Upvotes

7 comments sorted by

3

u/alabrie Mar 28 '14

Any thoughts on why I'd want to use modules instead of just splitting everything up by section, liked mentioned in the OP's article, but not using modules? I'm referring to the organization as suggested here: https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub

2

u/manifold360 Mar 28 '14

Both recommended grouping by function instead of grouping by type. One calls it modules, the other calls it sections. You should just call it function groups.

0

u/[deleted] Mar 28 '14

[removed] — view removed comment

1

u/[deleted] Mar 28 '14

Can you expand on how you think they are less useful?

7

u/[deleted] Mar 28 '14

[removed] — view removed comment

1

u/ell0bo Mar 28 '14

Yeah, but like DeSean... it appears to be here to stay, so we gotta get used to it and figure out how to make it work best.