Assignment Intro Se
Assignment Intro Se
• planning
• organising, and
• running
a development project.
Hundreds of different models exist and are used, but many are minor variations on a small
SE projects usually live with a fixed financial budget. (An exception is maintainance?)
Project planning is the art of scheduling/constraint solving the project parameters, along various
Project Visibility
Unlike other engineers(e.g. civil, electronic, chemical … etc.) software engineers do not produce
anything
physical.
It is inherently difficult to monitor an SE project due to lack of visibility.
This means that SE projects must produce
additional deliverables (artifacts)
which are visible, such as:
• Design documents/ prototypes
• Reports
• Project/status meetings
• Client surveys (e.g. satisfaction level)
Definition.
A (software/system) process model is a description of the sequence of activities carried out in an
SE project, and the relative order of these activities.
It provides a fixed generic framework that can be tailored to a specific project. Project
specific parameters will include:
• Size, (person-years)
• Budget,
• Duration.
• waterfall,
• code-and-fix
• spiral
• rapid prototyping
• COTS …
• Product quality
• Project visibility
• Administrative overhead
• Risk exposure
From birth of a commercial idea to final de-installation of last release i.e. The three main
phases:
• design,
• build,
We can also evolve the process model together with the product to account for product
maturity, e.g. rapid prototyping → waterfall
• The waterfall model is the classic process model – it is widely known, understood and used.
• In some respect, waterfall is the ”common sense” approach.
• R.W. Royce, Managing the Development of Large Software Systems: Concepts and
Techniques, Proc. IEEE Westcon, IEEE Press,
Advantages
1. Easy to understand and implement.
2. Widely used and known (in theory!)
3. Fits other engineering process models: civil, mech etc.
4. Reinforces good habits: define-before- design, design- before-code
5. Identifies deliverables and milestones
6. Document driven: People leave, documents don’t Published documentation standards: URD,SRD, …
etc. , e.g. ESA PSS-05.
7. Works well on large/mature products and weak teams.
Disadvantages
1. Doesn’t reflect iterative nature of exploratory development.
2. Sometimes unrealistic to expect accurate requirements early in a project
3. Software is delivered late, delays discovery of serious errors.
4. No inherent risk management
5. Difficult and expensive to change decisions, ”swimming upstream”.
6. Significant administrative overhead, costly for small teams and projects.
Code-and-Fix
This model starts with an informal general product idea and just develops code until a product is ”ready”
(or money or time runs out). Work is in random order. Corresponds with no plan! (Hacking!)
Advantages
1. No administrative overhead
2. Signs of progress (code) early.
3. Low expertise, anyone can use it!
4. Useful for small “proof of concept” projects, e.g. as part of risk reduction.
Disadvantages
1. Dangerous!
2. No visibility/control
3. No resource planning
4. No deadlines
5. Mistakes hard to detect/correct
6. Impossible for large projects, communication breakdown, chaos.
Evolutionary Development
Types
Type 1: Exploratory Development: customer assisted development that evolves a product from
ignorance to insight, starting from core, well understood components (e.g. GUI?)
Type 2: Throwaway Prototyping: customer assisted development that evolves
requirements from ignorance to insight by means of lightweight disposable prototypes.
Type 1: Spiral Model
Extends waterfall model by adding iteration to explore /manage risk
Project risk is a moving target. Natural to progress a project cyclically in four step phases
1. Consider alternative scenarios, constraints
2. Identify and resolve risks
3. Execute the phase
4. Plan next phase: e.g. user req, software req, architecture … then goto
In 1988 Boehm developed the spiral model as an iterative model which includes risk
analysis and risk management.
Key idea: on each iteration identify and solve the sub-problems with the highest risk.
Advantages
1. Realism: the model accurately reflects the iterative nature of software development on
projects with unclear requirements
2. Flexible: incoporates the advantages of the waterfall and evolutionary methods
3. Comprehensive model decreases risk
4. Good project visibility.
Disadvantages
1. Needs technical expertise in risk analysis and risk management to work well.
2. Model is poorly understood by non- technical management, hence not so widely used
3. Complicated model, needs competent professional management. High administrative overhead.
Type 2: Rapid Prototyping
Key idea: Customers are non-technical and usually don’t know what they want.
Rapid prototyping emphasises requirements analysis and validation, also called:
• customer oriented development,
• evolutionary prototyping
Advantages
Disadvantages I
1. An unstable/badly implemented prototype often becomes the final product. (Migration to a
type 1 process!)
Disadvantages II
4.Easy to fall back into code-and-fix without proper requirements analysis, design, customer
evaluation and feedback.
Type 1:
• User requirements
• Technology
• In-house environment
Agile Principles
• Embrace change
• Simplicity in code,
XP Practices (Summary)
1. Incremental planning
2. Small releases
3. Simple design
4. Programming in pairs (egoless programming, see 7.)
5. Test-driven development
6. Software refactoring (needs UML?)
7. Collective ownership: metaphors, standards, code
8. Continuous integration
9. Sustainable pace (No overtime!)
10. On-site customer!
Advantages
1. Lightweight methods suit small-medium size projects
2. Produces good team cohesion
3. Emphasises final product
4. Iterative
5. Test-based approach to requirements and quality assurance
Disadvantages
1. Difficult to scale up to large projects where documentation is essential
2. Needs experience and skill if not to degenerate into code-and-fix
3. Programming pairs is costly (but see productivity literature)
4. Test case construction is a difficult and specialised skill.
Rational Unified Process (RUP)
• Hybrid model inspired by UML and Unified Software Development Process.
• A generic component-based process?
• Three views on the process
– Dynamic view: RUP phases
– Static view: RUP activities
– Practise view: RUP best-practise
Details
• Lifetime of a software product in cycles:
• Birth, childhood, adulthood, old-age, death.
• Identify product maturity stages
• Each project iteration cycle is a phase, culiminating in a new release (c.f. Spiral model)
RUP Phases
• Inception – Establish the business case. Identify external entities (actors, systems). Estimate
ROI.
• Construction – Design, program and test. Components are bought and integrated.
RUP Workflows
• RUP separates what and when into two orthogonal process views.
Advantages/ Disadvantages
• Difficult to judge without knowing the actual chosen instantiation of the RUP