Software Development: An Introduction



Similar documents
CHAPTER_3 SOFTWARE ENGINEERING (PROCESS MODELS)

I219 Software Design Methodology

SOFTWARE PROCESS MODELS

Object-oriented design methodologies

How To Design Software

CS 487. Week 8. Reference: 1. Software engineering, roger s. pressman. Reading: 1. Ian Sommerville, Chapter 3. Objective:

Curriculum Map. Discipline: Computer Science Course: C++

Design and UML Class Diagrams

Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page:

What CMMI Cannot Give You: Good Software

Analysis and Design with UML

UML basics: An introduction to the Unified Modeling Language

A UML Introduction Tutorial

Data Analysis 1. SET08104 Database Systems. Napier University

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

To introduce software process models To describe three generic process models and when they may be used

How To Draw A Cell Phone Into A Cellphone In Unminimal Diagram (Uml)

Use Case Diagrams. Tutorial

2. Analysis, Design and Implementation

Chapter 8 Software Testing

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT. September 2013 EXAMINERS REPORT

3C05: Unified Software Development Process

Case studies: Outline. Requirement Engineering. Case Study: Automated Banking System. UML and Case Studies ITNP090 - Object Oriented Software Design

11 November

Software Engineering. Software Processes. Based on Software Engineering, 7 th Edition by Ian Sommerville

Object Oriented Design

IRA 423/08. Designing the SRT control software: Notes to the UML schemes. Andrea Orlati 1 Simona Righini 2

Software Engineering Question Bank

Menouer Boubekeur, Gregory Provan

Software Development: The Waterfall Model

What is a life cycle model?

Announcements. HW due today, 2 to grade this week Welcome back from Spring Break!

COURSE SYLLABUS EDG 6931: Designing Integrated Media Environments 2 Educational Technology Program University of Florida

Swirl. Multiplayer Gaming Simplified. CS4512 Systems Analysis and Design. Assignment Marque Browne Manuel Honegger

THE BCS PROFESSIONAL EXAMINATIONS Diploma. April 2006 EXAMINERS REPORT. Systems Design

Software Engineering. System Models. Based on Software Engineering, 7 th Edition by Ian Sommerville

Application of UML in Real-Time Embedded Systems

LAB 3: Introduction to Domain Modeling and Class Diagram

Button, Button, Whose got the Button?

User experience storyboards: Building better UIs with RUP, UML, and use cases

Object Oriented Analysis and Design and Software Development Process Phases

ATM Case Study Part 1

Software Engineering. What is a system?

Use-Case Analysis. ! What is it? ! From where did it come? ! Now part of UML

UML: Unified Modeling Language

Digital Industries Trailblazer Apprenticeship. Software Developer - Occupational Brief

Contents. Introduction and System Engineering 1. Introduction 2. Software Process and Methodology 16. System Engineering 53

The Role of Requirements Traceability in System Development

CS 1632 SOFTWARE QUALITY ASSURANCE. 2 Marks. Sample Questions and Answers

System development lifecycle waterfall model

Questions? Assignment. Techniques for Gathering Requirements. Gathering and Analysing Requirements

Comparison between Traditional Approach and Object-Oriented Approach in Software Engineering Development

Requirements engineering

11.1 What is Project Management? Object-Oriented Software Engineering Practical Software Development using UML and Java. What is Project Management?

IV. Software Lifecycles

Software Life Cycle. Management of what to do in what order

The most suitable system methodology for the proposed system is drawn out.

DISCLAIMER OVERVIEW WHY DO WE MODEL WHAT IS QUALITY? Jeff Jacobs,

An Object-Oriented Analysis Method for Customer Relationship Management Information Systems. Abstract

[1] [2]

THE SOFTWARE DEVELOPMENT LIFE CYCLE *The following was adapted from Glencoe s Introduction to Computer Science Using Java

10/17/2014 3:42 PM. BBA Management Information Systems FY14. Closing the Loop: Previous FY Assessment Summary

Software Process. Process: A sequence of activities, subject to constraints on resources, that produce an intended output of some kind.

How to Make a Domain Model. Tutorial

Requirements engineering and quality attributes

Planned Methodologies vs. Agile Methodologies under the Pressure of Dynamic Market

Course Registration Case Study

IV. The (Extended) Entity-Relationship Model

Data Modeling Basics

Java Application Developer Certificate Program Competencies

Chapter 1 The Systems Development Environment

II. Conceptual Modeling

How To Design An Information System

Unit I Page No. 1 System Development Object Basics Development Life Cycle Methodologies Patterns Frameworks Unified Approach UML

Database Design Methodology

2. Analysis, Design and Implementation

Using UML Part Two Behavioral Modeling Diagrams

Designing Real-Time and Embedded Systems with the COMET/UML method

Execution of A Requirement Model in Software Development

A Methodology for the Development of New Telecommunications Services

The Unified Software Development Process

Chapter 8 The Enhanced Entity- Relationship (EER) Model

Exercise 8: SRS - Student Registration System

Using Use Cases for requirements capture. Pete McBreen McBreen.Consulting

Programming and Software Development CTAG Alignments

Chapter 6. Data-Flow Diagrams

Effective Study Skills. Dr. Bob Kizlik. How to Study and Make the Most of Your Time


CMSC 435: Software Engineering Course overview. Topics covered today

4. Incorporate Lessons Learned with SDLC

Custom Software Development Approach

Module 10. Coding and Testing. Version 2 CSE IIT, Kharagpur

Software Engineering Introduction & Background. Complaints. General Problems. Department of Computer Science Kent State University

Syllabus M.C.A. Object Oriented Modeling and Design usung UML

Types of UML Diagram. UML Diagrams OOAD. Computer Engineering Sem -IV

(Refer Slide Time: 01:52)

PROJECT MANAGEMENT METHODOLOGY OF OBJECT- ORIENTED SOFTWARE DEVELOPMENT

Chapter 7: Software Engineering

Higher Computing. Software Development. LO1 Software Development process

A Commercially Robust Process for the Development of OO Software Systems

Transcription:

Software Development: An Introduction Fact: Software is hard. Imagine the difficulty of producing Windows 2000 29 million lines of code 480,000 pages of listing if printed a stack of paper 161 feet high Estimates were made that there were 63,000 bugs in the software when it was released. Software Life Cycle: Stages that a program goes through. Conception Development Release Use Retirement Defect reports and Feature requests Release Development: Months or a few years Maintenance Maintenance: Modify program to enhance it or to fix problems Use and Maintenance: Possibly many years Problem Maintenance will probably be done by programmers who did not develop the original program. Copyright 2004 by Ken Slonneger Software Development 1

Goal: Construct programs that are easy to read, understand, and modify. Quote: Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. John F. Woods Qualities of Good Software Correctness Performs the task defined by the specification. Robustness Reacts appropriately to unusual conditions. Degrades gracefully under adverse conditions. Extendibility Allows changes and extensions of the specification easily. Reusability Be usable, at least in part, in the construction of other programs. Compatibility Works well with other, preexisting software that it uses. Efficiency No excessive use of resources (time and memory). Usability Useful to many without special knowledge. Functionality Provides all the behavior required to solve the problem and many similar ones. Timeliness Completed on time. Style Has aesthetic properties that make it enjoyable to maintain. 2 Software Development Copyright 2004 by Ken Slonneger

Development Process Establish requirements clearly. Plan design of program carefully. Follow design, coding, and documentation guidelines. Changes made late in the life cycle are much more expensive than those made early. Putting an extra effort into program development will likely reduce the building and maintenance costs significantly. Build-and-Fix How we create small programs. Write program Modify program Release Programmer simply reacts to problems. Ad-hoc strategy Not really a development methodology. Program not designed to aid debugging and maintenance. Copyright 2004 by Ken Slonneger Software Development 3

Methodology I: Waterfall Model Popular in the 1970 s. Linear sequence of stages. Specify requirements Analysis Create design Design Implement code Construction Test system Release Verification No provision for revisiting earlier stages. Each stage must be completed accurately before going on to the next. Problem: What if an error is uncovered in a later stage that depends on a mistake made in an earlier phase? 4 Software Development Copyright 2004 by Ken Slonneger

Methodology II: Iterative Models Cycle through phases, permitting a revisit of earlier ones. Modified Waterfall Specify requirements Create design Implement code Test system Release Analysis Design Construction Verification Each stage should be developed as completely as possible. Backtracking should be used to correct errors or problems uncovered in later phases. Repeat the entire process creating a more complete implementation each time. Simple Spiral Analysis Design Release Verification Construction Copyright 2004 by Ken Slonneger Software Development 5

Spiral process Starting at middle, go through successive requirement analysis, design creation, code implementation, and evaluation phases. Number of iterations is arbitrary: Do as many as you need. Prototypes Programs that implement part of a system to explore possibilities. Ignore efficiency and completeness. Help designer avoid misunderstanding requirements. Use stubs for missing units (classes and methods), that is, empty code that compiles. Prototypes may be disposable or evolutionary (develop into final program). Analysis Investigate the problem. Do not define a solution yet. Specify requirements. Use use case methodology. Analyze the domain of the problem. Create conceptual model, identifying concepts and relationships. Do not define software components. Represent concepts in the real-world problem domain. 6 Software Development Copyright 2004 by Ken Slonneger

Design Construct a logical solution that satisfies the requirements. Assign responsibilities to the various components of the solution (the most important task). Identify suitable classes and objects. Use class diagrams (relations among classes) and collaboration diagrams (objects with flow of messages between them). Construction Implement the design in a programming language. Requirement Specifications Requirements must be specified correctly before the problem can be analyzed. Main Problem: Understanding the needs of the users. Copyright 2004 by Ken Slonneger Software Development 7

Example: Gradebook Overview Statement The purpose of this project is to provide a record keeping system that maintains and analyzes the grades for a course. Customers Instructors of courses. Goals The goal is to provide an accurate and convenient way to maintain grades for a course. Specific goals Flexible tools to create and alter the roster. Classify course grades to allow weighting of course work. Persistent storage to hold the grades during a semester. System Functions Basic Functions R1.1 Create a roster of student names and ID numbers. R1.2 Add a student to the roster. R1.3 Delete a student from the roster. R1.4 Print a listing of students with the grades. R1.5 Provide persistent storage mechanism to save and retrieve rosters. 8 Software Development Copyright 2004 by Ken Slonneger

Grade Functions R2.1 Classify and accept one set of grades for the roster of students. R2.2 Allow three classifications for grades: Exams, Projects, and Homework/quizzes. R2.3 Change a grade. Analysis Functions R3.1 Compute total scores for students based on weight factors given to each category of grades. R3.2 Sort list of students by their total grades. R3.3 Print students in the order of their total scores. R3.4 Print histogram of total scores. Copyright 2004 by Ken Slonneger Software Development 9

UML: Unified Modeling Language A standard modeling notation. Not a development process. Authors Grady Booch Jim Rumbaugh Ivar Jacobson UML Diagrams Use case diagrams Static structure diagrams Conceptual model Class diagrams Object descriptions Interaction diagrams Sequence diagrams Collaboration diagrams State diagrams State diagrams Activity diagrams Implementation diagrams Package diagrams Component diagrams Deployment diagrams 10 Software Development Copyright 2004 by Ken Slonneger

Use Cases Draw a diagram showing the interactions between actors in the system as classified by use cases. Show boundary between system and users. Use cases are shown as ovals. Actors are shown as stick figures joined to the use cases in which they participate. Point of Sale Terminal Buy Items Customer Log In Cashier Return Items Manager Start Up An actor is a user of the system in a particular role. A user can be a person, another system, or a hardware device. Created by Ivar Jacobson. Copyright 2004 by Ken Slonneger Software Development 11

Narrative Description Describe the steps in the use case in a structured prose format. Identify the initiator of the use case. Describe what the actor(s) do and how the system responds as the use case plays out. Specify alternative courses that result from unexpected occurrences. Use Cases in Software Development Iterative development cycles are organized by use case requirements. Use cases should be ranked with high-ranking cases tackled in early development cycles. Use cases can be developed at different levels of detail working from high-level use cases to more detailed (expanded) ones as the development proceeds. Caveat Some OO designers feel that a use-case analysis leads to nonobject-oriented analysis. 12 Software Development Copyright 2004 by Ken Slonneger

Example: GradeBook GradeBook Create Roster Add Student Delete Student Save Roster Retrieve Roster FileSystem Instructor Enter Grades Change Grade Print Roster Sort Roster Compute Totals Print Histogram Copyright 2004 by Ken Slonneger Software Development 13

Use case: Create Roster Actors: Instructor (initiator) Purpose: Instructor enters the students of a class to form a new roster. Overview: Instructor asks to create a new roster. Instructor enters name and ID for each student in a class to make the roster. Typical Course of Events Actor Action 1. This use case begins when Instructor signals the need for a new roster. 3. Instructor provides a name for the class. System Response 2. Requests name of class. 4. Prompts for name and ID for each student. 5. Instructor enters each name and ID in the new roster. 6. On completion of entries, Instructor indicates the end of the list. 7. Acknowledges existence of a new roster. Alternative Courses Line 1: The current roster has not been saved. Indicate error. Line 6: No names entered. Indicate error. 14 Software Development Copyright 2004 by Ken Slonneger

Use case: Enter Grades Actors: Instructor (initiator) Purpose: Instructor enters the grades for an exam, project, or homework/quiz. Overview: Instructor asks to enter a set of grades. Instructor enters a grade for each student in the roster. Typical Course of Events Actor Action 1. This use case begins when Instructor signals the need to enter a set of grades. 3. Instructor provides the nature: exam, project, or homework/quiz. System Response 2. Requests the nature of the set of grades. 4. Requests the maximum score. 5. Instructor enters the maximum score. 7. Instructor enters the grade for each student. 6. Prompts with name of each student in roster. 8. Acknowledges recording of the set of grades. Alternative Courses Line 1: No current roster. Indicate error. Line 7: A grade entered exceeds maximum. Request another. Copyright 2004 by Ken Slonneger Software Development 15

Use case: Save Roster Actors: Instructor (initiator), FileSystem Purpose: Save the roster and grades to the file system. Overview: Instructor asks to save the current roster. Typical Course of Events Actor Action 1. This use case begins when Instructor signals the need to save the current roster. System Response 2. Saves current roster to the file system. 3. Acknowledges that the current roster has been saved successfully. Alternative Courses Line 1: No current roster. Indicate error. 16 Software Development Copyright 2004 by Ken Slonneger

Use case: Sort Roster Actors: Instructor (initiator) Purpose: Rearrange roster to be in sorted order. Overview: Instructor asks that roster be sorted by name, by ID, or by total score. Typical Course of Events Actor Action 1. This use case begins when Instructor signals the need to sort roster. System Response 2. Requests criterion for sorting. 3. Instructor answers by name, by ID, or by total score. 4. Acknowledges that the current roster has been sorted. Alternative Courses Line 1: No current roster. Indicate error. Line 3: Criterion not specified. Indicate error. Copyright 2004 by Ken Slonneger Software Development 17

Static structure diagrams Conceptual models Class diagrams Object descriptions. Conceptual Models Central to object-oriented design. Focus on domain concepts, not software. Decompose problem into individual concepts. May show: Concepts Associations between concepts Attributes of concepts Concepts in Conceptual Models Rectangles with one or two sections. Concept name Concept name attribute attribute 18 Software Development Copyright 2004 by Ken Slonneger

Concepts: physical objects, places, transactions, line items, containers of other things, abstract concepts, organizations, events, processes, records, financial instruments, catalogs, manuals, and so on. Associations Solid line showing semantic relationships (multiplicity). Developing a Conceptual Model Identify the nouns and noun phrases in the requirements and the use cases that belong to the system. Copyright 2004 by Ken Slonneger Software Development 19

GradeBook Example roster, student, grade, name, ID number, position, listing, exam, project, homework, score, maximum score, weight factor, histogram, total score, set of grades, category of grades, sorting criterion. Discard nouns that are redundant, vague, an event or operation, outside the system, or an attribute. Conceptual Model: Version 1 Name Roster 1..* Student ID number Name Total score * Grade Weight Category Max score Some of these concepts should be attributes. 20 Software Development Copyright 2004 by Ken Slonneger

Conceptual Model: Version 2 Roster 1..* Student * Grade name name id number total score category weight max score Categories of grades are handled differently. Split the concept. Conceptual Model: Version 3 Roster name 1..* Student name id number total score * Project set weight Exam grade weight max score HW set weight * Project grade max score * HW grade max score Copyright 2004 by Ken Slonneger Software Development 21

Class Diagrams Rectangles of three forms. Class name Class name attribute attribute : type attribute : type = value Class name attributes operation() operation() : type operation(arg : type) : type Inheritance Superclass Subclass1 Subclass2 Composition One class uses or has-an instance of another class. Auto Engine Body 22 Software Development Copyright 2004 by Ken Slonneger

Object Diagrams Rectangles with one or two sections and with the title underlined. Generic object : ClassName Instantiation of an object from a class: Domino Specific object objectname : dom1 : dependency relationship objectname : ClassName objectname : ClassName attribute = value dom2 : Domino spots1 =3 spots2 = 6 faceup = false Copyright 2004 by Ken Slonneger Software Development 23

Grady Booch Estimate Time required for various activities in OO Development 24 Software Development Copyright 2004 by Ken Slonneger

Pair Programming Pair programming is a style of programming in which two programmers work side by side at one computer, continually collaborating on the same design, algorithm, code, or test. One of the pair, called the driver, is typing at the computer or writing down a design. The other partner, called the navigator, has many jobs, one of which is to observe the work of the driver, looking for tactical and strategic defects. Tactical defects are syntax errors, typos, calling the wrong method, and so on. Strategic defects occur when the driver is headed down the wrong path what is implemented just won't accomplish what needs to be done. The navigator is the strategic, long-range thinker. Any of us can be guilty of straying off the path, but a simple, "Can you explain what you are doing?" from the navigator can bring us back to earth. The navigator has a much more objective point of view and can better think strategically about the direction of the work. The driver and the navigator can brainstorm on-demand at any time. An effective pair programming relationship is very active. The driver and the navigator communicate, if only through guttural utterances (as in, "Huh?"), at least every 45 to 60 seconds. It is also very important to switch roles periodically between the driver and the navigator. Copyright 2004 by Ken Slonneger Software Development 25

Benefits 1. Quality Pairs produce code with fewer defects 2. Time Pairs produce higher-quality code in about half the time as individual programmers. 3. Morale Pair programmers are happier programmers. 4. Trust and Teamwork Pair programmers get to know their teammates much better, which builds trust and teamwork. 5. Knowledge transfer Pair programmers know more about the overall system. 6. Enhanced learning Pairs continuously learn by watching how their partners approach a task, how they use language features, and how they develop programs. 26 Software Development Copyright 2004 by Ken Slonneger

Seven Habits of Effective Pair Programmers Habit 1: Take Breaks Since pair programmers keep each other focused and on-task, it can be intense and mentally exhausting. At a minimum, each hour, stretch, and look at something more than three feet away. Habit 2: Practice Humility Excessive ego can prevent a programmer from considering other idea and can cause a programmer to become defensive when criticized. Remember that the work is a team effort. Be ready to ask questions and to learn as well as teach. Habit 3: Be Confident/Be Receptive Try not to let insecurity or anxiety interfere with your work. A fear of appearing stupid decreases the number of bold proposals and ideas that will be suggested. Do not allow competition within the pair. Blame for problems or defects should never be placed on either partner. Habit 4: Communicate Communication between the pair is essential. Think aloud so your partner can help you develop ideas. Vocalize what you are doing as you do it. Copyright 2004 by Ken Slonneger Software Development 27

Habit 5: Listen Really listen to what your partner has to say before responding. Don't assume you know what he or she is talking about or that he or she understands what you are trying to do. Don't assume he or she is trying to insult you or to criticize your ideas. Habit 6: Be a Team Player Remember that your partner's work is your work. You are completely responsible for every thing your pair does. Be alert and inquisitive. If you don't understand what's going on, ask. If you can think of a better way, suggest it. Habit 7: Find a Balance between Compromise and Standing Firm The primary purpose of pairing is to work toward the best design possible, regardless of from whom the design originated. Be willing to consider your partner's ideas, but don't always agree with everything your partner suggests. For favorable idea exchange, there should be some healthy disagreement and debate. 28 Software Development Copyright 2004 by Ken Slonneger