TAILIEUCHUNG - Phát triển Javascript - part 6

Tham khảo tài liệu 'phát triển javascript - part 6', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | The Process 23 in Section Benefits of Test-Driven Development once we have gotten to know the process itself better. The Process The test-driven development process is an iterative process where each iteration consists of the following four steps Write a test Run tests watch the new test fail Make the test pass Refactor to remove duplication In each iteration the test is the specification. Once enough production code has been written to make the test pass we are done and we may refactor the code to remove duplication and or improve the design as long as the tests still pass. Even though there is no Big Design Up Front when doing TDD we must invest time in some design before launching a TDD session. Design will not appear out of nowhere and without any up front design at all how will you even know how to write the first test Once we have gathered enough knowledge to formulate a test writing the test itself is an act of design. We are specifying how a certain piece of code needs to behave in certain circumstances how responsibility is delegated between components of the system and how they will integrate with each other. Throughout this book we will work through several examples of test-driven code in practice seeing some examples on what kind of up front investment is required in different scenarios. The iterations in TDD are short typically only a few minutes if that. It is important to stay focused and keep in mind what phase we are in. Whenever we spot something in the code that needs to change or some feature that is missing we make a note of it and finish the iteration before dealing with it. Many developers including myself keep a simple to do list for those kind of observations. Before starting a new iteration we pick a task from the to do list. The to do list may be a simple sheet of paper or something digital. It doesn t really matter the important thing is that new items can be quickly and painlessly added. Personally I use Emacs org-mode to .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.