Title: Lesson 2 Introduction to Personal Software Process
1Lesson 2Introduction to Personal Software Process
- www.ict.pyo.nu.ac.th/uthais/
KANOKWATT SHIANGJEN
2Contents
- ????????? PSP
- ??????????????????? PSP
- ??????????????????????
- ???????????????
- ????
3????????? PSP
- PSP (Personal Software Process)
??????????????????????????????????????????????????
???????????? ??????????????? Watts S Humphrey
??? SEI (Software Engineering Institute) - ???????????? ?????????????????????????????????
??????????????? ??????????????????????????????????
?????? ?????????????????????????????????????????
????????????????????? ?????????
???????????????????????? ???????? CMMI ??????????
CMMI ???????????????????
4???????????? PSP
- ????????????????????????? ???????????????
????????????????????????????????????????
?????????????? (Measure) ?????????? ?
????????????????????????????????????????
?????????? - ???????????? (Defect)
- ????????????????????? ??????????????? (Planning
Estimation)
5??????????????????????
- ???????????????? ?????????????????????????????????
- ??????????????????????????? ??????????????????????
?????????? ????? ??????????????? - ?????? ????????????????????????? (Component)
???????????? - ?????? ??????????????????????????????
- ?????? ???????????????????????????????
- ?????? ??? ????? ????????? ????????????
???????????????????????????????? - ???????????????? ?????????????????????????????????
?????????? - ?????????????????? ??? ??????????
???????????????? ?????????????????
6??????????????????? PSP
- ??????????????? ?????????????????
???????????????????????????????????????????
?????????????????? ???????????????????????????????
???????? ??????????
7??????????????????? PSP
- PSP 0 ??? 0.1 The baseline Personal Process
- PSP 1 ??? 1.1 Personal Project Management
- PSP 2 ??? 2.1 Personal Quality Management
- PSP 3 Cyclic Personal Process
8PSP 0
- ???????????????????????????????? ????????????????
?????? ??????????????(Size) ???? (Time)
????????????? (Defect) ?? 6 Phases ??? - PLANNING
- DESIGN
- CODING
- COMPILE
- TESTING
- POSTMORTEM
- ?????????????????????????????? ???????
?????????????? ?????? Expert Judgment
(?????????????????????????????????)
9PSP 0
- ??????????????
- Current Process ??????????????????????????????????
???????? - Time Recording ????????????? Time Log
- Defect Recording ????????????? Defect Log
- Defect Type Standard
10PSP 0.1
- ???????????????????? PSP 0 ??????????
- PIPs (Process Improvement Proposals) ???????????
??????????????????????????????????????????????????
???????????????????????? - Size Measurement ??????????????????????????????
- Coding Standard ??????????????????????????????????
???
11PSP 1.0
- ????????????????? (Size) ??????????????? (Effort)
????????????????? ??????????????
???????????????????? ?????????????????????????????
?????????????? - ?????????????????????????????????????????? PROBE
(Proxy-Based Estimating) ?????????????????
(Proxy) ???? ??????????? (LOC) /?????????????
(Function Point) ???????????????????
???????????????????????????????????????
(Historical Data) ??????????????????????????
(LOC) ????? ?????????? - Size Estimating
- Test Report
12PSP 1.1
- ??????????????? PSP 1 ????????????????????
??????????? (Task and Schedule Planning)
13PSP 2.0
- ??????????????????????????????????????????
(Personal Design) ????????????????????????????????
????? (Code Review) ??????????????????????????????
???????? ? (Preventive) ?????? Review Checklists
???????????????????????????????????
???????????????????????????????????? ? - ???????????????? Review ??????????????????????????
?? 6 Phases ?????????????? 2 Phases ??? - Design Review ??????????????? Design ?????
- Code Review ???????????????????? Code ?????
14PSP 2.1
- ???????? (Review) ???????????????
????????????????????????????????????????? COMPILE
??????? ??????????? UNIT TEST ????????????????????
??????????????? ???????????????????????? - PSP2.1 ??????????????????????????? ?????????? 4
?????? (Templates) ??? - ????????????????????? (Operational Specification)
- ??????????????????? (Functional Specification)
- ???????????????? (State Specification)
- ???????????????? (Logic Specification)
15PSP 3.0
- ??????????????????????????????????????????????????
???????????????????????????? ?????????????????????
? ???????????????? (Productivity)
??????????????????????????????????????????????????
?????????? ????????????????????????????????????
?????????????????????? - ??????? ??????????????????????????
??????????????????????????????????
????????????????? (Break-down) ???????????????????
????????????????????????????????????????????????
16?????????????????????? (1/3)
- Logs ??????????????????? ???? Time ??? Defect
Log - Instructions ??????????????????????
- Scripts ?????????????????????????????????
?????????? - Step ???????
- Purpose ????????????
- Entry and Exit Criteria ??????????????????? /
???????
17?????????????????????? (2/3)
- Forms and Templates ??? ??????????????????????????
??????????? - Form ???????????????????????????????? ??? Summary
form ??????????????? - Templates ????????????????????????????????? ????
Size Estimating Template, Test Report Template,
Task and Schedule Planning Templates, PIP ???
Design Templates
18?????????????????????? (3/3)
- Standards ?????????????????????????
??????????????????????????????????????????????????
?????????????????????????? ???? Defect Type
Standard, Coding Standard ??? LOC Counting
Standard - Checklists ???????????????????
??????????????????????????????????????????????????
????? ???? Design Review Checklists ??? Code
Review Checklists
19??????????????? (Measure)
- ?????????????????????????? (Development Time
Measurement) - ??????????????????? (Defect Recording)
- ???????????????????? (Size Measurement)
- ????????????????? (Project Plan Summary)
- ?????????????? (PSP Derived Measures)
- ????? / ???????????????? PSP
20?????????????????????????? (Development Time
Measurement)
- ????????????????? PSP ????????????????????????????
? Phase ??????????????????????????????????? ????
??????????? ??????? ?????????????????? Time
Recoding Log ????????????? ????????? Plan ???????
7.58 8.45 ??????? 47 ???? ??? ????????? (Delta
Time Total Time Interruption Time) ??? 44 ????
21????????????????????????????
- ???????????? ?????????????????????????????????????
??????????? - ???????????????????????? (Interruption Time)
??????????????????????????????????????????
?????????????????????????????????? - ???????????????????????? ??????????????
??????????????????????????????????????????????????
????????? ???? ????????????????????????????????
???????
22??????????????????? (Defect Recording)
- ???????? ?????????? (Defect) ???
????????????????? ???????????????????????????
???? ????????? ???????????? ????????????????????
??????????????????????? - ??????????????????? (Defect Log) ??????????
- Date ??????????????????
- Number ??????????????????????
- Type ???????????????????
- Inject ????????????????????
- Remove ??????????????????????????????
- Fix Time ??????????????????????????????
23??????????????????? (Defect Recording)
- ??????????????????? (Defect Log) (???)
- Description ??????????????????????????????
- Fix Defect ?????????????????????????
????????????????? Defect ????????
?????????????????? Number ??? Defect ????????
????????????? Defect ????
24Defect Type Standard
25???????????????????? (Size Measurement)
- ???????????????????????????????????
??????????????????????????????????????????
??????????????????????????????? (Line of Code)
?????????????????? ???????????????????????????????
?????????????????? (Effort) ???? - Productivity ??? LOC per Hour
- Defect Density ??? ???????? Defect per KLOC
26Type of LOC
- ?????????????????????????????? LOC
???????????????????? 6 ?????? ????????????
27????????????????? (Project Plan Summary)
- ???????????????????????????? Project Plan Summary
???????????????????????????????????? ??????????
Program Size, Time in Phase, Defect Injected ???
Defect Removed. - ??????????????????????????????????
?????????????????????? ???????????????????????
(Baseline) ?????????????????
28?????????????? (PSP Derived Measures) (1/3)
- ??????????????? ?????????????????????????????
?????????????? (Measures) ??????? 4 ??????????
?????????? - Program Size
- Time in Phase
- Defect (Quality)
- Schedule
- ?? PSP ?? Derived Measures (??????????????????????
????) ???????? ???? - Productivity
- Defect Density
29?????????????? (PSP Derived Measures) (2/3)
- Delta Time ??? ????????????????????????????????
Phase ???????????????????????????????
Interruption time - Total Time ??? ??????????????????????????? Phase
- Productivity ??? Size (LOC) / ????????????????????
????? (Hour) - Estimate Accuracy ??? ????????????????????????????
????????????????? ??????????????????????
((Actual Estimate) 100) / Estimate - Defect Density ??? ????????????? 1,000 LOC
Defect / KLOC - Review Rate ??? ????????????????????????????????
- (LOC 60) / Review in Minute
30?????????????? (PSP Derived Measures) (3/3)
- Yield ??? ??????????????????????????????????????
- Phase Yield ????????????????????????????????????
???? Phase ???? - (Defect Removed in Phase / Total Defect
Injected in Phase) - Process Yield ??????????????????????????????????
??????????? Compile ???????? - (Defect Removed before Compile / Total Defect
Injected before Compile) - Total Cost of Quality (COQ) Appraisal COQ
Failure COQ - Appraisal COQ ((Design Review Code Review)
100 ) / Total Time - Failure COQ ((Compile Test) 100) / Total Time
31????? / ???????????????? PSP (1/2)
- ?????
- ??????????????????????????????????? 2.5 ????
- ?????????????????????????? 1.75 ????
- ?????????????????? ??????????????????????????????
Compile ???????????????? 50 - ??????????? Defect ????????? Unit Test ?????????
2.5 ???? - Productivity (LOC/Hour)
32????? / ???????????????? PSP (2/2)
- ???????
- ??????????????? ?????????? ??????????
???????????????????????????????
??????????????????????????????????????
????????????????????????? ????????????????????????
- ???????????????????????
- ????????????????? ??????????
- ????????????????????????
- ??????????????????????????? PSP
33????
- ?????????????? ???????????????????????????????????
? ???????????? ???????????????????????????????
?????????? ???????????????????????????????????????
???? ?????????????????????????????? - ?????????? ??????????????????????? ????????
??????? ?????????????? ???????????????????
???????????????? ?????????? 8 ??????????????
?????????????????? ????????????? - ????????? (??????? ??????????? ??????????????????
????????????????????????) - ?????????????????????????????? ???????????????????
????? ??????????????? (????????? ?????????)
34References
- Ian Sommerville. Software Engineering 8th
Edition. Addison Wesley Publishers., 2007 - Watts S Humphrey. A Self Improvement Process for
Software Engineers. Addison Wesley Professional.,
2005 - Software Engineering Institute Carnegie Mellon.
online http//www.sei.cmu.edu/., 2010