Chapter 1 Introduction to Software Engineering Why Engineer

  • Slides: 20
Download presentation
Chapter 1 Introduction to Software Engineering

Chapter 1 Introduction to Software Engineering

Why Engineer Software? n Air traffic control case study – $2. 3 Billion spent

Why Engineer Software? n Air traffic control case study – $2. 3 Billion spent without any usable deliverable Enormous social cost of NOT engineering software n Too many large-scale software development failures for too many decades n Software development initiatives fail for many different reasons, most of which are addressed by good software engineering practices n

Sources of Complexity in Software Development Technical staff lacks expertise in the complex application

Sources of Complexity in Software Development Technical staff lacks expertise in the complex application domain n Difficulty in interpersonal communications n Ambiguity of natural language, used to express user needs n Difficulty of mentally grasping and coordinating the details of a large-scale development project n

How Software Development Projects Fail No functioning software results n The resulting software does

How Software Development Projects Fail No functioning software results n The resulting software does not adequately address the need of the users n Software contains incorrect computations n The software is too difficult to use correctly n The system response time is too slow to be used without frustration n

Why Inter-personal Communication is Difficult Technical staff and end users have different background knowledge

Why Inter-personal Communication is Difficult Technical staff and end users have different background knowledge n Technical staff often do not possess the vocabulary used in the application domain n End users frequently do not understand how to effectively express their needs in terms that are clear to systems developers. n Ambiguity of natural language n

Maintaining Software Systems n n n Maintenance is an inevitable aspect of software development

Maintaining Software Systems n n n Maintenance is an inevitable aspect of software development It allows software to evolve with an organization Too often too many resources are directed to maintenance and away from new development Software requires excessive maintenance efforts if it is poorly structured It is better to invest in well-structured software up front than to invest excessively in maintenance later

Elements of a Software Development Paradigm n Conceptualization – What elements are instrumental in

Elements of a Software Development Paradigm n Conceptualization – What elements are instrumental in how the developers think about the software system? n Representation – Must convey what the software project is all about – Most effectively done with a software modeling notation n Implementation – Addresses how the source code is structured

A Brief History of Software Engineering Techniques n Structured Programming – No gotos n

A Brief History of Software Engineering Techniques n Structured Programming – No gotos n Functional Decomposition – Top-down organization of subprograms n Structured Analysis – Recognition that analyzing the problem statement has critical influence on the success of the overall project – Formal modeling of subprogram interaction with dataflow diagrams

More History of SE Techniques n Data-centered analysis – Uses techniques developed in structured

More History of SE Techniques n Data-centered analysis – Uses techniques developed in structured analysis – Data modeling occurs using entity relationship diagrams before functional modeling n Object-oriented analysis – No longer segregates the modeling of functions and data – Objects aggregate data with functions that operate on the data

Sample Dataflow Diagram Check for overdue books Patron ID Read Patron record Patron ID

Sample Dataflow Diagram Check for overdue books Patron ID Read Patron record Patron ID True/false Patron record or null Check-out books Book ID, out Change book status Book record Write book record Book ID Book record Read book record

Sample Entity Relationship Diagram Library Patron Checks out Has-a Address Requests Has-a 1: M

Sample Entity Relationship Diagram Library Patron Checks out Has-a Address Requests Has-a 1: M Book Has-a Publisher

Principles of the Object. Oriented Paradigm Abstraction Shared by other paradigms n Modularity n

Principles of the Object. Oriented Paradigm Abstraction Shared by other paradigms n Modularity n Modeling n Inheritance n Encapsulation(covered in chapter 2) n Polymorphism(covered in Chapter 2) n

Abstraction Expressing the software requirements in abstract terms, suppressing details so that a comprehensive

Abstraction Expressing the software requirements in abstract terms, suppressing details so that a comprehensive portrayal can be made n The abstract representation must then be connected to more detailed expressions, so that no information is lost in modeling the system n This allows us to reason about the breadth of functionality of the developing system n

Modularity Breaking a complex software system into smaller modules allows one to reduce its

Modularity Breaking a complex software system into smaller modules allows one to reduce its overall complexity n Modules should aggregate some coherent aspect of the system n Modules should present a simple interface n Classes, functions, and abstract data types are examples of modules. n

Abstract Data Type Example Interface S T A C K POP() Accesses PUSH(item) ISEMPTY()

Abstract Data Type Example Interface S T A C K POP() Accesses PUSH(item) ISEMPTY() 13 12 24 98 33 13 Implementation Option: Array 98 24 Implementation Option: Linked list

Modeling is the process of use a graphic notation to express properties of the

Modeling is the process of use a graphic notation to express properties of the software system n Models express how the system is built out of modules and how these modules interact n One objective of modeling is to express characteristics of the software system in an unambiguous manner n

Inheritance A property distinguishing classes from abstract data types n Allows characteristics from one

Inheritance A property distinguishing classes from abstract data types n Allows characteristics from one class to be passed on its subclasses n Subclasses may override inherited characteristics n

Cost of not Engineering Software Need to restructure code n High maintenance costs n

Cost of not Engineering Software Need to restructure code n High maintenance costs n Software is unacceptable to end users n Unreliable code n Need to rewrite code n Difficulty integrating system modules n Difficult project management n Budget and time overruns n

Why Software Engineering is not Universal Understanding software development as programming only without recognition

Why Software Engineering is not Universal Understanding software development as programming only without recognition of importance of analysis and design n Short-sighted technical management n Pressure of deadlines n Poor project estimation, thus unreasonable deadlines n

Working in Teams Be conscientious about due dates n If you are less motivated

Working in Teams Be conscientious about due dates n If you are less motivated by the class project, negotiate an equitable grade and take a lesser role n Meet regularly with your team n Always create an agenda for every team meeting n Rotate responsibility for chairing team meetings n