Presentation is loading. Please wait.

Presentation is loading. Please wait.

SE 501 Software Development Processes Dr. Basit Qureshi College of Computer Science and Information Systems Prince Sultan University Lecture for Week 7.

Similar presentations


Presentation on theme: "SE 501 Software Development Processes Dr. Basit Qureshi College of Computer Science and Information Systems Prince Sultan University Lecture for Week 7."— Presentation transcript:

1 SE 501 Software Development Processes Dr. Basit Qureshi College of Computer Science and Information Systems Prince Sultan University Lecture for Week 7

2 Contents The Personal Software Process PSP0.1 Introduction to Lab 2 and Assignment #5A SE 501 Dr. Basit Qureshi2

3 Bibliography Humphrey, Watts (1995). A disciple for Software Engineering. The Personal Software Process. http://www.sei.cmu.edu/library/abstracts/reports/00tr022.cfm http://www.sei.cmu.edu/library/abstracts/reports/00tr022.cfm SE 501 Dr. Basit Qureshi3

4 THE PSP0.1 SE 501 Dr. Basit Qureshi4

5 PSP 0.1 Continuation of PSP0 What's new? – More detailed Project Plan Summary Form – Introducing SLOC counts and Coding Standard What didn’t change – Time recording Log – Defect recording Log SE 501 Dr. Basit Qureshi5

6 PSP 0.1 Project Plan Summary – When planning the assignment, estimate the total of lines of code you will write – When planning the assignment, estimate the time you’ll spend on each phase, and the total time for the assignment – When on the postmortem phase, treat the time and defect fields just as in PSP0. – The numbers for lines of code require a bit more explanation…

7 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 7 Coding and Counting Standards Coding and size counting standards are needed to write the PSP programs. These standards are tailored to your language and needs designed to make size counting easier The coding standard defines quality-oriented exit criteria for the code phase.

8 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 8 PSP Software Size Measures In the PSP, software size measures are used to relate the amount of product produced with effort expended to project total effort calculate productivity normalize defects project the total defects Software size is measured in LOC. To accurately relate size to effort, the different types of LOC in your program are counted separately. Please refer to SLOC wiki at http://en.wikipedia.org/wiki/Source_lines_of_code

9 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 9 PSP0.1 Project Plan Summary PSP0.1 adds the Program Size Summary for estimated and actual size data. The types of size include base [B] deleted [D] modified [M] added [A] reused [R] added and modified [A+M] new reusable

10 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 10 Program Size Type Relationships Added & Modified Base programNew program

11 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 11 Estimating Size During planning 1.If this is an enhancement, measure the size of the base program and enter this in the Base (B) space under Actual. 2.Estimate the added and modified size and enter this in the Total Added and Modified (A+M) space under Plan.

12 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 12 Estimating Development Time During planning 1.Enter estimated development time 2.Planned time in phase is then calculated based on the percentage of time in phase for all completed projects

13 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 13 Recording Size -1 During postmortem 1.Measure total program size and enter this in the Total Size (T) space under Actual. 2.Count the deleted size and enter this in the Deleted (D) space under Actual. 3.Count the modified size and enter this in the Modified (M) space under Actual.

14 © 2006 by Carnegie Mellon University January 2006 PSP I - Using PSP0.1 - 14 Recording Size -2 During postmortem 1.Count the reused size and enter this in the Reused (R) space under Actual. 2.Count or estimate the number of new and changed size that will be added to the reuse library and in the New Reusable space under Actual.

15 © 2006 by Carnegie Mellon University October 2006 PSP I - Process Measurement - 15 Size Accounting For small products, size tracking can be done manually, but it requires care. For larger products, size tracking requires an accounting system. Size accounting provides an orderly and precise way of tracking size changes through multiple product versions.

16 © 2006 by Carnegie Mellon University October 2006 PSP I - Process Measurement - 16 Example of Size Accounting -1 What happened?

17 © 2006 by Carnegie Mellon University October 2006 PSP I - Process Measurement - 17 Example of Size Accounting -2 AddedSubtractedBase Base V00 Deleted0 Modified00 Added350 Base V1350-0350 Deleted0 Modified25 Added100 V1 Product125-25450 Total Added and Modified LOC475

18 © 2006 by Carnegie Mellon University October 2006 PSP I - Process Measurement - 18 Messages to Remember To effectively plan and manage your work, you must measure product size. For different types of work, use different size measures. For each measure, size must correlate with development time. If the size measure does not correlate or is not automatically countable, it will not be very useful. Every size measure should be precisely defined and automatically countable.

19 PSP0.1 Lines of code: – Base – The lines upon which you’re building new stuff (doesn’t apply for Assignment 2) – Deleted – Lines deleted from the base – Modified – Lines modified from the base – Added – predictable… – Reused – Stuff you developed previously, that is not the base, but which you use to save some time – Total New and Changed – All added or modified lines – Total LOC – The final size of the program – Total New Reused – Stuff you developed for this program that you think is ready for reuse on other programs

20 PSP LAB 2 SE 501 Dr. Basit Qureshi20

21 PSP Lab 2 (Assignment 5A) Write a program to count the number of lines of code in a file, excluding blanks and comments Deliverables: – Exactly the same as for the previous assignment, but the Project Plan Summary changes a bit… Process: PSP0.1 Copy of your completed assignment forms will be used in (Assignment 5B)

22 PSP Lab 2 (Assignment 5B) Write a program to count the number of lines of code in a file, and in each of its procedures and functions, excluding blanks and comments Deliverables: – Exactly the same as for the previous assignment, but the Project Plan Summary changes a bit… Test – Include tests that count the lines of your three assignments. Include a table with the output from your three assignments. Process: PSP0.1 Do this in your time during break.


Download ppt "SE 501 Software Development Processes Dr. Basit Qureshi College of Computer Science and Information Systems Prince Sultan University Lecture for Week 7."

Similar presentations


Ads by Google