The most significant difference between programming for the Web and programming for the desktop is state management—how you store information over the lifetime of your application. This information can be as simple as a user’s name or as complex as a stuffed-full shopping cart for an e-commerce store.
In a traditional desktop application, there’s little need to think about state management. Memory is plentiful and always available, and you need to worry about only a single user. In a web application, it’s a different story. Thousands of users can simultaneously run the same application on the same computer (the web ...