Identifying Circuits
So far, we have covered seven pages and found a lot of fuseactions. Some fuseactions seem to be naturally similar, such as the checkout process and the reviews pages. Those collections of fuseactions are ideal candidates for becoming circuits.
By grouping fuseactions into circuits, we can concentrate code in one location. For example, the checkout process should not occur unless the shopper’s basket has five items. In addition, certain sections of the site are only accessible to administrators.
Let’s take a look at four more pages (Figures 14.8 – 14.11) to identify the fuseactions and group them into circuits. Note that we did not circle the menu links at the top (including My Account, Home, Best Sellers, and so on). It ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access