Software Engineering Processes

Slides:



Advertisements
Similar presentations
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Advertisements

Chapter 2 Modeling the Process and Life Cycle Shari L. Pfleeger
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes.
Chapter 2 Modeling the Process and Life Cycle Shari L. Pfleeger
The software process A software process is a set of activities and associated results which lead to the production of a software product. This may involve.
Modeling the Process and Life Cycle CSCI 411 Advanced Database and Project Management Monday, February 2, 2015.
SEP1 - 1 Introduction to Software Engineering Processes SWENET SEP1 Module Developed with support from the National Science Foundation.
Processes. Outline Definition of process Type of processes Improvement models Example Next steps… 1.
ISNE101 Dr. Ken Cosh. Recap  We’ve been talking about Software…  Application vs System Software  Programming Languages  Vs Natural Languages  Syntax,
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Software Process Models
Software Modeling SWE5441 Lecture 3 Eng. Mohammed Timraz
Evaluating Requirements. Outline Brief Review Stakeholder Review Requirements Analysis Summary Activity 1.
Alternate Software Development Methodologies
Agile Process Models. Prescriptive models don’t work It is unrealistic to not have changes. Why? The Agile Manifesto: Individuals and interactions over.
Agile
Software Engineering Processes
 The Rise of Computer Science ◦ Machine Language (1 st Gen) ◦ Assembly Language (2 nd Gen) ◦ Third Generation Languages (FORTRAN, BASIC, Java, C++, etc.)
Software Engineering Processes
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Process Models.
Computer Engineering 203 R Smith Agile Development 1/ Agile Methods What are Agile Methods? – Extreme Programming is the best known example – SCRUM.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Software Development Models: Waterfall and Spiral Sung Hee Park Department of Mathematics and Computer Science Virginia State University August 21, 2012.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Ch 2: Software Life-Cycle Models CSCI Ideal Software Development.
Dr. Tom WayCSC Software Processes CSC 4700 Software Engineering.
Software Project Planning CS470. What is Planning? Phases of a project can be mostly predicted Planning is the process of estimating the time and resources.
1 Chapter 2 The Process. 2 Process  What is it?  Who does it?  Why is it important?  What are the steps?  What is the work product?  How to ensure.
Software Processes.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
CS 360 Lecture 3.  The software process is a structured set of activities required to develop a software system.  Fundamental Assumption:  Good software.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 1 Slide 1 Software Processes (Chapter 3)
 CS 5380 Software Engineering Chapter 2 – Software Processes Chapter 2 Software Processes1.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Lecture 3 Software Engineering Models (Cont.)
Rapid software development 1. Topics covered Agile methods Extreme programming Rapid application development Software prototyping 2.
Extreme Programming (XP). Agile Software Development Paradigm Values individuals and interactions over processes and tools. Values working software over.
Agile
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Software Engineering Processes
Software Engineering Processes
An Introduction to Software Engineering
Cmpe 589 Spring 2006 Lecture 2. Software Engineering Definition –A strategy for producing high quality software.
AP-1 4. Agile Processes. AP-2 Agile Processes Focus on creating a working system Different attitude on measuring progress XP Scrum.
Requirements Engineering Requirements Engineering in Agile Methods Lecture-28.
Ivar Jacobson, Grady Booch, and James Rumbaugh The Unified Software Development Process Addison Wesley, : James Rumbaugh's OOMD 1992: Ivar Jacobson's.
Process Asad Ur Rehman Chief Technology Officer Feditec Enterprise.
Agile. Processes Waterfall Traditional With prototyping Sprial Agile Dynamic Systems Development Method (DSDM) Scrum Crystal eXtreme Programming (XP)
Modelling the Process and Life Cycle. The Meaning of Process A process: a series of steps involving activities, constrains, and resources that produce.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes.
Chapter 2 – Software Processes Lecture 2 1Chapter 2 Software Processes.
Software Engineering, 8th edition. Chapter 4 1 Courtesy: ©Ian Sommerville 2006 FEB 13 th, 2009 Lecture # 5 Software Processes.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
Continuous Improvement. Start Simple and Continually Improve E.g., Gmail Labels 1.
Software Development. The Software Life Cycle Encompasses all activities from initial analysis until obsolescence Analysis of problem or request Analysis.
1 SYS366 Week 2 - Lecture Visual Modeling and Process.
Chapter 2- Software Development Process  Product Components  Software Project Staff  Software Development Lifecycle Models.
Laurea Triennale in Informatica – Corso di Ingegneria del Software I – A.A. 2006/2007 Andrea Polini II. Software Life Cycle.
Project Management Software development models & methodologies
Software Development.
Software Engineering Processes
Software Processes (a)
Agile
Software Processes.
Chapter 2 Modeling the Process and Life Cycle Shari L. Pfleeger Joanne M. Atlee 4th Edition.
Chapter 2 – Software Processes
Chapter 2 Modeling the Process and Life Cycle Shari L. Pfleeger
Copyright 2006 Pearson/Prentice Hall. All rights reserved.
Software Processes.
Chapter 2 Software Processes
Presentation transcript:

Software Engineering Processes

Do you want to build “dog houses” or “high rises”? If you want to build a dog house, you can pretty much start with a pile of lumber, some nails, and a few basic tools, such as a hammer, saw, and tape measure. In a few hours, with little prior planning, you'll likely end up with a dog house that's reasonably functional... If you want to build a high-rise office building, it would be infinitely stupid for you to start with a pile of lumber, some nails, and a few basic tools. Because you are probably using other people's money, they will demand to have input into the size, shape, and style of the building.... You will want to do extensive planning, because the cost of failure is high. You will be just a part of a much larger group responsible for developing and deploying the building, and so the team will need all sorts of blueprints and models to communicate with one another Grady Booch, The Unified Modeling Language User Guide

Process Process is well-defined and usually involves a set of tools and techniques – Uses resources, is subject to constraints and produces intermediate and final products – May be composed of sub-processes – Has entry and exit criteria – Activities are ordered with clear relationships Life-cycle: The process of building a product

Development process Process = a set of ordered tasks – Typical software tasks: Figuring out what the system should do (requirements) Figuring out how the system should do it (design) Writing the code for the system (implementation) Making sure that the code is right (testing) Using the system (operation) – Should imply some planning and risk management – Different processes order tasks differently

Build it and fix it Build Fix Great for a single programmer for a small project!

What if you don’t know what to build? ‘ ‘ ‘’ ‘ ‘ ‘’ ‘ ` ‘ ‘`’ ` `’ `’ ‘ ‘ `’ `’ `’ ` What’s a “``’? What do we need to do? Doesn’t he know that we can’t make a `’``?

Requirements Analysis Elicit from the customer what they really need the system to do Analyze the requirements to ensure that the requirements are correct and consistent

Design Architectural design – Figuring out the overall structure of the system What components should be in the system? How should the components be connected? Program design – Figuring out how code should be organized How should each component’s code be distributed among classes and/or functions?

Implementation Finally, we get to write some code! Implementation also may include: – Writing comments – Writing other documentation – Helping fellow engineers with their coding – Answering questions – Reading colleagues’ code, documentation, etc – Messing around with code until it “smells good”

Testing – Unit testing Good for automatically checking individual components – System integration testing Good for checking that components work well together – Usability testing Good for checking user interfaces – Acceptance testing Good for checking that the customer/user is happy

Operation The code compiles, passes all tests, and looks great on your desktop. Done, right? Wrong! Operation often includes – Distributing code to customers/users – Providing documentation and support – Debugging, after users try out the system – Studying how well the system works in practice – Adapting the system for new markets

The waterfall processes Requirements analysis Design Implementation Operation/Maintenance Testing Prototyping (No prototyping in a pure waterfall process)

Drawbacks of The Waterfall Model Non-iterative: hard to handle changes to products and activities during development (assumes requirements can be frozen) – Views software development as manufacturing process rather than as creative process – Long wait before a final product

Software Engineering Processes Continued

Waterfall kinds of processes Requirements analysis Design Implementation Operation/Maintainance Testing Prototyping (No prototyping in a pure waterfall process)

Spiral kinds of processes Deliverables change every increment Plans change every increment

Spiral kinds of processes

Agile kinds of processes Customer provides “stories” (short requirement snippets) System and acceptance tests Do “spike” to evaluate & control risk Prioritize stories and plan Implement Operation (Agile processes are rarely this tidy in practice) Write/run/modify unit tests

Agile Methods: Examples of Agile Process Extreme programming (XP): Focus on simplicity and rapid iteration Scrum: 30-day iterations; multiple self- organizing teams; daily “scrum” coordination Crystal: a collection of approaches based on the notion that every project needs a unique set of policies and conventions

Contrasting these kinds of processes WaterfallSpiralAgile Emphasizes:-Stability -Traceability -Risk management -Exploring alternatives -Flexibility -Immediacy Weakness:Requirement/design mistakes can be costly Exploring alternatives can be costly Continual rework can be costly Style:-Highly controlled -High ceremony -Moderately controlled -Moderate ceremony -Rapid & organic -Low ceremony Some definitions -“traceability”: relationships between requirements and system elements are documented -“immediacy”: getting some sort of working system to the customer as fast as possible -“rework”: redesigning the architecture and/or refactoring the program code -“controlled”: conformance to process is highly valued, even if it slows a project down -“ceremony”: how much analysis, documentation, and planning is involved

When to choose a particular kind of process Waterfall is often a good choice for small systems whose requirements can be fully understood before any design or coding. Spiral is often a good choice for larger systems with vague requirements and many alternatives for designing and coding. Agile is often a good choice for systems where you can rapidly create something very small but useful, and then expand from there.

What kind of process would you prefer to use for…? A nuclear missile’s guidance system A web server (plain old http) A web site for people to request prayer A program that screen-scrapes Google News to watch for swine flu outbreaks A program to steer the Mars rovers A controller for a sprinkler system so the lawn gets less water on rainy days

The story doesn’t end with operation — how do you improve the system later? Iterative – Get the whole system working pretty well – Then add features throughout the system Incremental – Get part of the system working really well – Then add more parts to the system You can mix & match iterative/incremental with waterfall/spiral/agile. E.g.: iterative agile

How to decide on iterative vs incremental development It all comes down to where the system’s value is: Incremental is often good when most of a system’s value is tightly concentrated in a small number of components. Iterative is often good when you need to implement most of a system before you can get much value.

Building an Eco-Friendly Shopping Website What kind of process would you choose? (Waterfall, Spiral, Agile) Incremental development, or iterative development? What would be the system priorities? What could change during system development?

Eco-Friendly Shopping Site What activities would you do, in what order?

Eco-Friendly Shopping Site Requirements to consider: – Reduce physical waste – Use low energy servers – Supply eco-friendly products – Allow customers to buy items and pay money

Review prototypes with customer (and/or users), document the results Paper prototypesLightweight prototypesDocumentation These “throwaway” prototypes are cheap to make because they are usually not interactive.

Designs and Frameworks Would you pick a language first, or a design first? Do you think it matters?

Alternative Designs

Possible Implementations One setup: – Asynchronous, single-process event-driven server (node.js?) – Redis database Another setup: – LAMP: Linux, Apache, MySQL, PHP

Eco-Friendly Shopping Site What does the resulting process look like?

Spiralling and beyond Pay attention to users, discover new requirements - Spiral, spiral, spiral