The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Model-View-Intent pattern for separation of concerns

Model-View-Intent pattern for separation of concerns

3:17
We built the BMI calculator all inside one function: main(). As apps scale, we don't want main() to grow. We need an organized pattern where each function focuses on doing one thing. This lesson shows how we can easily refactor the main() function into three parts: Intent, Model, and View.
Watch this lesson now
Avatar
egghead.io

We built the BMI calculator all inside one function: main(). As apps scale, we don't want main() to grow. We need an organized pattern where each function focuses on doing one thing. This lesson shows how we can easily refactor the main() function into three parts: Intent, Model, and View.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?