Chapter 10Gather Related Files with Component Architecture

In chess, there’s a distinction between tactics and strategy. Tactics are a series or combination of moves to achieve a goal. It’s short term and fairly easy to define and teach. Strategy, by contrast, is an abstract conception of which side has more influence in a particular part of the board. Tactics solve problems at hand. Strategy allocates resources in anticipation of future problems.

Most coding books, including this one, are about tactics. How do you transform an array? How do you write a function that consumes asynchronous data?

Now you’re going to learn strategy. In the software development world, organizing code in a way that makes it extendable, reusable, and manageable ...

Get Simplifying JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.