here the list of items gets out
of sync with the counter in a toolbar, leading to a frustrating and
inconsistent experience.</p>
<p>There is also a <em>tight coupling</em> between your application's UI and the
network code. If the URL or the format of the JSON payload changes, it
is likely to break all of your UI components in ways that are hard to
track down.</p>
<p>The SOLID principles of good design tell us that objects should have a
single responsibility. The responsibility of a component should be
pres