Newspaper Code Structure for Angular

Kent C. Dodds
May 18, 2015 · 1 min read

So, how does this “Newspaper Code Structure” concept fit in with AngularJS? Here’s a gist that illustrates how this applies to an AngularJS controller and directive. (Read the comments)


The whole idea is to make it easy to consume/maintain components. By organizing your code in a consistent way, it seriously helps this.

Catch me on twitter or in the comments if you wish to discuss :-)

    Kent C. Dodds

    Written by

    Making software development more accessible · Husband, Father, Latter-day Saint, Teacher, OSS, GDE, @TC39 · @PayPalEng @eggheadio @FrontendMasters · #JS

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade