Thinking in Components

Preface

Recently, I wrote an AngularJS Structure Style Guide (incomplete) because I haven’t seen one that would allow my current project to scale. By scale, it had to extremely maintainable by being simple; reflecting what the app does without confusing new (even old, core) developers.

Personally, I found a lot of guides out there to be extremely terrible. AngularJS isn’t so bad, except for the V part which has an obnoxiously bad API.

Separation of concerns has its own tradeoffs. A lot of people don’t seem to understand this; they tend to use the Controller for everything. Even library authors instruct that way. Although library authors are not to be blamed, it seemed to have been applied in practice by everybody, and that’s not awesome.