2.12 gia tăng phát triểnCó rất nhiều phong cách và phương pháp để viết chương trình. Mặc dù một số ngườisẽ tranh luận rằng một phương pháp là tốt hơn so với khác, bạn là người duy nhất có thểlàm cho rằng quyết tâm. Thật không may, hầu hết các nhà phát triển làm cho quyết định như vậy32 2 chương trình cá nhân đường cơ sởBẢNG 2.12 PSP0 KẾ HOẠCH HƯỚNG DẪN TÓM TẮTMục đích để tổ chức các kế hoạch và các dữ liệu thực tế cho chương trình hoặc chương trình chi tiếtChung "To-Date" là giá trị tất cả thực tế đến ngày cho tất cả sản phẩmphát triển.Tiêu đề nhập tên của bạn và ngày.Nhập tên chương trình và số.Nhập tên của người hướng dẫn và ngôn ngữ lập trình bạnđang sử dụng.Thời gian trong giai đoạn nhập ước tính tổng số thời gian.Nhập thời gian thực tế bởi giai đoạn và thời gian tất cả.Đến nay: Nhập tổng thời gian thực sự cho chương trình này cộng vớithời gian đến-ngày từ chương trình phát triển mới nhất.Để ngày %: Nhập tỷ lệ phần trăm thời gian To Date ở từng giai đoạn.Khuyết tật tiêm nhập các Khuyết tật thực tế bởi giai đoạn và các Khuyết tật thực tế tất cả.Đến nay: Nhập tổng của các Khuyết tật thực tế tiêm bởi giai đoạnvà các giá trị đến ngày cho gần đây nhất trước đây phát triểnchương trình.Đến ngày %: Nhập tỷ lệ phần trăm của các Khuyết tật đến ngày tiêmbởi giai đoạn.Khuyết tật Removed đến nay: Nhập thực tế lỗi gỡ bỏ bởi giai đoạn cộng với các giá trị NHCTVN cho chương trình phát triển trước đây đặt.Đến ngày %: Nhập tỷ lệ phần trăm của các Khuyết tật ngày để loại bỏbởi giai đoạn.Sau khi phát triển, ghi lại bất kỳ Khuyết tật sau đó tìm thấy trongchương trình thử nghiệm, sử dụng, tái sử dụng, hoặc sửa đổi.Dựa vào trực giác của họ và những gì người khác nói với họ. Với PSP, Tuy nhiên, bạn sẽ có dữ liệu để xác định phương pháp mà đặt giúp bạn một cách hiệu quả sản xuất chương trình chất lượng cho các chi phí dự đoán và trên lịch trình cam kết.Một số nhà phát triển, khi họ tham gia khóa học PSP, cho rằng cách duy nhấthọ có thể phát triển chương trình là để viết một vài dòng mã và sau đó biên dịch vàkiểm tra chúng để đảm bảo rằng họ chạy. Sau đó họ viết một vài dòngvà biên dịch mã cũ và mới kết hợp và chạy nó. Họ thực hiện theo cách tiếp cận này gia tăng cho đến khi họ có một chương trình chạy hoàn toàn. Mặc dù cónhiều vấn đề tiềm năng với cách tiếp cận này, không có phương pháp phát triển là hoàn toànvấn đề miễn phí.Thật không may, phương pháp này đặc biệt của chương trình phát triển đòi hỏi một quá trình khác nhau hơn một trình bày với PSP. Mặc dù có rất nhiều cáchbạn có thể xác định một quá trình làm việc theo cách này, các quá trình này được thường khó khănđể dạy. Vấn đề không phải là các quá trình là không hiệu quả hoặc xấu, nhưng họ làkhó để đo lường và trình kết quả dữ liệu rất khó để giải thích.Bạn có thể sử dụng bất cứ phương pháp bạn thích để viết chương trình PSP vàchỉ ghi lại từng bước nhỏ của thời gian cho mỗi bước. Ví dụ, nếu bạnđã dành ba phút viết hai dòng mã, một phút biên soạn mã, vàanother three minutes testing it, you could record your time that way. Then, withthe next few lines, another four minutes of coding would bring your coding timeup to seven minutes, and so forth. You could then accumulate your time in thisway until you completed the program. However, doing this has two disadvantages.First, some of the PSP methods introduced a little later will be more difficult tohandle with this type of process. Second, your data will not be comparable to thatof the many thousands of developers who have already taken the PSP course. Thiswill make it more difficult for your instructor to assess your work and to adviseyou on how best to improve.In Chapter 13, I discuss various example processes you might want to try outafter you complete the PSP course. One of these is the PSP3 process, which followsan iterative development strategy. However, PSP3 presumes that your iterations areeach somewhat larger than a few lines of code. I also discuss the process I used inlearning VB.NET. Here, I was using a very large and complex environment withmany canned functions that I did not know. I found it most convenient to use a prototyping process that first produced running code. I then produced and reviewed theprogram’s design. This process enabled me to experiment with the various functions to find the ones that best fit my needs without worrying about recording all thedefects normally associated with learning. Once I found something that seemed towork properly, however, I did record all the subsequent defects I found.During the PSP course, try to follow the process given in the scripts. Then,after you have learned the PSP, feel free to modify the process in whatever waysuits you. However, as you do, gather data on your work and use that data to guideyou in deciding on the best processes and methods to use.2.12 Incremental Development 332.13 PSP Tool SupportWhen I originally developed and taught the PSP, no support tools were available,so we had to manually gather the data with paper forms, make the required analysis calculations by hand or on a spreadsheet, and store the data on paper recordsor a personal data repository. Although this manual process was inconvenient anderror prone, it took surprisingly little time. Now, with the available PSP supporttools, data recording is relatively painless and the required process calculationsare done automatically. For information on the available PSP support tools, seewww.sei.cmu.edu/tsp/.2.14 SummaryA defined process can help you to understand your performance as a software developer and to see where and how to improve. This chapter introduces the PSP0process, which you will use to complete the initial programming assignment in thetext.With the PSP0 process, you measure the time spent in each developmentphase and the defects you inject, find, and fix. You will also use a support tool fordefect and time recording. Then you will use these data in later chapters to make
better plans and to improve the quality and productivity of your work.
2.15 Exercises
The standard assignment for this chapter uses PSP0 to write one or more programs. The assignment kits for these programs can be obtained from your
instructor or at www.sei.cmu.edu/tsp/. The PSP assignment kits contain the specifications for the exercise programs and the PSP process scripts. In completing the
assignments, faithfully follow the specified PSP process, record all required data,
and produce a program report according to the specification given in the assignment kit.
đang được dịch, vui lòng đợi..