Organize the View
In this section, you will learn about the application and discover the problems with its view function. The previous developer put all the application’s markup inside one view function, creating tons of duplication and hard-to-read code. You will spend extra development time adding new features unless you organize the view function first. Let’s fix this dilemma. You will divide the view function into separate functions to make the code more understandable.
Build a Salad
A large chain of restaurants known as Saladise needs help with a new salad-builder application. Customers can customize a salad with their favorite greens, toppings, and dressing. Then, they can supply contact information to receive an alert to pick up their ...
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