2.3. Break Neck Pizza, Ajax-styleInstead of starting with old 1990s development ideas, let's look at what the Break Neck app should do. Then you can use your new asynchronous programming skills to make sure Break Neck's order form is a responsive, customer-friendly means of getting great pizza, fast. Here's how things should work: The customer starts out by entering his phone number. The order form then fills in the customer's address automatically. The customer enters their pizza order into the form, without waiting on their address to get filled in. Once the customer has entered in his order, he clicks "Order Pizza"... ...and Alex, the delivery boy, can get the hot pizza right to the customer's front door. Yeah, come on over, the pizza's already here. Unbelievable... it can't have been ten minutes, and I didn't even have to enter my address.
|