The To Do List Client Side, Part 2: The JavaScript
Now let's turn to the JavaScript code. Imagine you are assigned the task of developing the JavaScript for this To Do list application. Where would you start? Even though this application is simple when compared to something like Google Maps, it is still complicated enough to make the task of writing the code seem overwhelming.
When faced with a large problem, it is often helpful to apply a problem solving technique called divide and conquer. To solve a large problem, divide the large task into smaller ones, and then conquer the smaller projects one at a time.
For example, the code in the To Do list application can be divided into several different feature sets:
Logging in and out
Displaying available ...
Get The Book of JavaScript, 2nd Edition 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.