Scaffold Your Shopping Cart Channel

We’ll start developing our shopping cart by writing some code that the Channel will use—our functional core. After we build our functional core, we’ll use it to develop a ShoppingCartChannel. We’ll start small and work our way up to a complete cart by the end of this chapter.

It’s important to build a functional core that contains logic, data structures, or other parts of a program that are independent of the user interface. This helps increase the maintainability of your code, because the separation between interface and logic means that either can be changed without a complete rewrite of the application. You’ll have an easier time adapting to change and adding new features when your application is split ...

Get Real-Time Phoenix 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.