The Pragmatic Starter Kit, Lập trình thực dụng, thực dụng Lập trình, Tủ sách thực dụng và các thiết bị liên kết g là các nhãn hiệu của lập trình viên thực dụng, LLC. Mỗi biện pháp phòng ngừa đã được thực hiện trong việc chuẩn bị của cuốn sách này. Tuy nhiên, nhà xuất bản không chịu trách nhiệm cho các lỗi hoặc thiếu sót, hoặc bồi thường thiệt hại có thể là kết quả của việc sử dụng thông tin (bao gồm danh sách chương trình) ở đây. của chúng tôi. | What Depot Does 46 During checkout we capture contact and payment details and then display a receipt page. We don t yet know how we re going to handle payment so those details are fairly vague in the flow. The seller flow shown in Figure is also fairly simple. After logging in the seller sees a menu letting her create or view a product or ship existing orders. once viewing a product the seller may optionally edit the product information or delete the product entirely. Figure Flow of Seller Pages The shipping option is very simplistic. It displays each order that has not yet been shipped one order per page. The seller may choose to skip to the next or may ship the order using the information from the page as appropriate. The shipping function is clearly not going to survive long in the real world but shipping is also one of those areas where reality is often stranger than you might think. overspecify it upfront and we re likely to get it wrong. For now let s leave it as it is confident that we can change it as the user gains experience using our application. Report erratum What Depot Does 47 Data The last thing we need to think about before plowing into the first round of coding is the data we re going to be working with. Notice that we re not using words such as schema or classes here. We re also not talking about databases tables keys and the like. We re simply talking about data. At this stage in the development we don t know if we ll even be using a database sometimes a flat file beats a database table hands down. Based on the use cases and the flows it seems likely that we ll be working with the data shown in Figure . Again pencil and paper seems a whole lot easier than some fancy tool but use whatever works for you. Figure Initial Guess at Application Data Working on the data diagram raised a couple of questions. As the user builds their shopping cart we ll need somewhere to keep the list of products she s added to it so I added a cart. But .