TAILIEUCHUNG - Growing Object-Oriented Software, Guided by Tests- P3

Growing Object-Oriented Software, Guided by Tests- P3: Test-Driven Development (TDD) hiện nay là một kỹ thuật được thành lập để cung cấp các phần mềm tốt hơn nhanh hơn. TDD là dựa trên một ý tưởng đơn giản: các bài kiểm tra Viết cho code của bạn trước khi bạn viết đoạn code riêng của mình. Tuy nhiên, điều này "đơn giản" ý tưởng có kỹ năng và bản án để làm tốt. Bây giờ có một tài liệu hướng dẫn thiết thực để TDD mà sẽ đưa bạn vượt ra ngoài những khái niệm cơ bản. Vẽ trên một. | Chapter 9 Commissioning an Auction Sniper The discussions generate a long list of requirements such as being able to bid for related groups of items. There s no way anyone could deliver everything within a useful time so we talk through the options and the buyers reluctantly agree that they d rather get a basic application working first. Once that s in place we can make it more powerful. It turns out that in the online system there s an auction for every item so we decide to use an item s identifier to refer to its auction. In practice it also turns out that the Sniper application doesn t have to concern itself with managing any items we ve bought since other systems will handle payment and delivery. We decide to build the Auction Sniper as a Java Swing application. It will run on a desktop and allow the user to bid for multiple items at a time. It will show the identifier stop price and the current auction price and status for each item it s sniping. Buyers will be able to add new items for sniping through the user interface and the display values will change in response to events arriving from the auction house. The buyers are still working with our usability people but we ve agreed a rough version that looks like Figure . Figure A first user interface This is obviously incomplete and not pretty but it s close enough to get us started. While these discussions are taking place we also talk to the technicians at Southabee s who support their online services. They send us a document that To Begin at the Beginning describes their protocol for bidding in auctions which uses XMPP Jabber for its underlying communication layer. Figure shows how it handles multiple bidders sending bids over XMPP to the auction house our Sniper being one of them. As the auction progresses Southabee s will send events to all the connected bidders to tell them when anyone s bid has raised the current price and when the auction closes. ELvanls Figure Southabee s online auction

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.