A Shared Price & Tax Calculator
Encapsulate money rules in one cross-platform place.
Why Money Lives in Shared Code
Price and tax math should live in one shared place so Android and iOS can never disagree on a total. 💰
The Bug You Are Preventing
When each app rounds tax its own way, the same cart shows two prices. A single shared calculator kills that whole class of bug.
All lessons in this course
- A Shared Price & Tax Calculator
- Format Currency & Numbers
- Business Rules as Pure Functions
- Keep UI Out of Shared Code