Docsity

The Scope of Software Engineering - Lecture Notes | EECS 448, Study Guides, Projects, Research of Software Engineering

Toggle sidebar
bg1
EECS 448 Dr. Douglas Niehaus © 20091
The Scope of
Software Engineering
Chapter 1
EECS 448
Dr. Douglas Niehaus
EECS 448 Dr. Douglas Niehaus © 20092
Overview
What is Software Engineering
Historical Aspects
Economic Aspects
Maintenance Aspects
Requirements, Analysis, Design
Team Development and Operation
Organizing the Work
Object Oriented Paradigm
Terminology
Ethical Issues
Challenges
EECS 448 Dr. Douglas Niehaus © 20093
What is Software Engineering
Software Engineering is a discipline whose aim is the
production of fault-free software delivered on time
and within budget that satisfies the user's needs.
Furthermore, the software must be easy to modify
when the user's needs change.
Requires a dauntingly wide range of skills
Technology of computing platform
Target domain expertise
Management of development personnel
Communication with customers, developers,
suppliers of system components
EECS 448 Dr. Douglas Niehaus © 20094
What is Software Engineering
Science, Engineering, Craft, and Art are terms giving
some insight into the situation
Science generally refers to a precise understanding
of a subject in which the “scientific method” of
hypothesis formulation, behavior prediction, and
hypothesis testing by testing predictions is possible
Chemistry, Physics, Materials
Engineering generally refers to the use of a mix of
scientific concepts to build something that functions in
specific ways
Chemical, Civil, Mechanical Aeronautic
Engineering adds “best-practice” experience which
is less precise than scientific concepts but
generally produces consistent results
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download The Scope of Software Engineering - Lecture Notes | EECS 448 and more Study Guides, Projects, Research Software Engineering in PDF only on Docsity!

EECS 448 1 Dr. Douglas Niehaus © 2009

The Scope of

Software Engineering

Chapter 1

EECS 448

Dr. Douglas Niehaus

EECS 448 2 Dr. Douglas Niehaus © 2009

Overview

 (^) What is Software Engineering  (^) Historical Aspects  (^) Economic Aspects  (^) Maintenance Aspects  (^) Requirements, Analysis, Design  (^) Team Development and Operation  (^) Organizing the Work  (^) Object Oriented Paradigm  (^) Terminology  (^) Ethical Issues  (^) Challenges

What is Software Engineering

 (^) Software Engineering is a discipline whose aim is the production of fault-free software delivered on time and within budget that satisfies the user's needs.  (^) Furthermore, the software must be easy to modify when the user's needs change.  (^) Requires a dauntingly wide range of skills  (^) Technology of computing platform  (^) Target domain expertise  (^) Management of development personnel  (^) Communication with customers, developers, suppliers of system components

What is Software Engineering

 (^) Science, Engineering, Craft, and Art are terms giving some insight into the situation  (^) Science generally refers to a precise understanding of a subject in which the “scientific method” of hypothesis formulation, behavior prediction, and hypothesis testing by testing predictions is possible  (^) Chemistry, Physics, Materials  (^) Engineering generally refers to the use of a mix of scientific concepts to build something that functions in specific ways  (^) Chemical, Civil, Mechanical Aeronautic  (^) Engineering adds “best-practice” experience which is less precise than scientific concepts but generally produces consistent results

EECS 448 5 Dr. Douglas Niehaus © 2009

What is Software Engineering

 (^) Craft generally refers to a set of practices that a given practitioner uses to do their work but how a given practitioner does their work may differ from the methods of other practitioners by quite a lot  (^) Some scientific and engineering principles may be involved, but many are also “just the way we do it because it works well”  (^) Results of different crafts-persons can vary widely  (^) Art generally refers to an individual set of practices often invented by the practitioner  (^) Sometimes there is no obvious reason for them  (^) Other times the newly invented practices become part of related crafts thereafter EECS 448 6 Dr. Douglas Niehaus © 2009

What is Software Engineering

 (^) Scientific practice involves understanding so precise that experiments are reproducible and everyone in the world can produce the same results  (^) Can be learned, in principle from published information: books, papers, etc.  (^) Some experience and coaching obviously required  (^) Engineering practice involves understanding and principle with a significant degree of precision but different practitioners can do things somewhat differently and results of different practitioners differ  (^) Learned from books, in general, but practical experience is a significant part of education as well

What is Software Engineering

 (^) Craft practice can differ widely among practitioners  (^) Master-Apprentice is the main method of learning  (^) Some information available in books, but it is often incomplete  (^) Art practice is generally the least precisely defined and, almost by definition, the product of each artist is distinctly different from that of others  (^) There are aspects of Science, Engineering, Craft and Art in each of these areas  (^) Scientists often must engineer and then craft their instruments: astronomers, physicists  (^) Artists also employ craft to produce their artistic ideas

What is Software Engineering

 (^) Some parts of using computers are as precise as science, but not as many as many of us would like  (^) Many parts of using computers do their best to achieve a solid level of engineering  (^) However, there is still a significant degree of disagreement about languages, software architectures, analysis methods, etc  (^) More aspects of using computers work at the craft level than many of us would like, but you should probably be prepared to deal with it  (^) Individuals think their methods are excellent, while others think they are terrible and neither side of the argument can prove their case

EECS 448 13 Dr. Douglas Niehaus © 2009

Historical Aspects

 (^) In 45% of the cases where litigation occurred, the faults were so severe that the software product was no usable  (^) Here the software engineers were either incompetent or lying  (^) Engineers are faced with situations requiring a strong dedication to the truth and the courage to pursue and represent the truth against opposition in various forms far more often than you might think  (^) Delivery late may cause monetary penalty  (^) Delivery with faults may go unnoticed  (^) Stating unwelcome truths often causes conflicts and unhappiness EECS 448 14 Dr. Douglas Niehaus © 2009

Historical Aspects

 (^) Analogy of SWE and Civil Engineering in terms of building bridges  (^) Bridges collapse less frequently  (^) Bridge collapse results in redesign and rebuilding  (^) Changes in bridge building practice  (^) Causes are comparatively easy to identify  (^) Legal liability of designers and builders for collapse is clear in civil but EULAs weasel out of it in SWE  (^) Bridges must be and can be very fault tolerant  (^) SW fault tolerance is less easy in most cases  (^) Bridges require simpler maintenance  (^) Bridges have a smaller range of standard components and are somewhat less customized

Economic Aspects

 (^) Computer Science vs. Software Engineering  (^) Computer Science investigates ways to produce software performing desired computations on target computing platforms  (^) Some work well some do not  (^) Context constantly changes and so changes which methods work well and which do not  (^) Software engineering is concerned with Computer Science methods that make sound economic sense for a given project building a specific product  (^) Costs of implementation, introduction into an organization and maintenance are all factors  (^) Very hard to predict and measure

Maintenance Aspects

 (^) Maintenance is described within the context of the software life cycle  (^) A software life cycle model is a set of steps that should be performed with when building a software product  (^) Many different models have been proposed and have various strengths and weaknesses  (^) Overall life cycle is broken into a series of steps, often called phases  (^) Emphasize different aspects of software implementation  (^) Number of phases and when they are performed differs among the several models

EECS 448 17 Dr. Douglas Niehaus © 2009

Software Life Cycle

 (^) The life cycle of a product is the actual set of steps taken in the course of developing a given product, from initial concept to final retirement  (^) The life cycle model in the abstract and the life cycle of a product may differ  (^) Phases performed  (^) Order and overlap of the phases  (^) Volume of effort in each phases  (^) Various models use various terms and vary in emphasis  (^) Specific experience with each product also causes variation  (^) However, six phases are generally accepted EECS 448 18 Dr. Douglas Niehaus © 2009

Software Life Cycle

1.Requirements Phase  (^) Figuring out what the customer needs 2.Analysis/Specifications Phase  (^) Assertions and constraints about product behavior 3.Design Phase  (^) Create a SW design that satisfies assertions and constraints 4.Implementation Phase  (^) Building the design, testing it, and adjusting 5.Post-Delivery Maintenance Phase  (^) Adjusting SW as implemented to reality of users 6.Retirement  (^) Graceful transition to a replacement

Requirements Phase

 (^) Responsibility of the SWE is to figure out what the customer needs to solve their problem  (^) Customer often has no idea  (^) SWE is the computer expert, after all  (^) Can include saying that a SW solution is inappropriate or unnecessary  (^) “Good Solution to the Real Problem” is SWE goal  (^) What is the real problem is the focus of the requirements phase  (^) Client's needs must be elicited and deduced through SWE's analysis of the problem domain  (^) Many questions of the client and study of the target domain

Requirements Phase

 (^) In previous programming classes the requirements phase was done for you  (^) Written assignment described to you all the things a SWE must elicit or deduce  (^) Many sources of difficulty  (^) Customers often provide incomplete and inconsistent assertions about the problem  (^) Customers often begin with incorrect or counter productive convictions about what they need  (^) Customers sometimes lie about current practice  (^) Common practice may violate official policy  (^) Sometimes these data are among the most crucially important

EECS 448 25 Dr. Douglas Niehaus © 2009

Implementation Phase

 (^) Building the design  (^) Components of the design are implemented and tested (unit testing)  (^) Components are integrated and the product as a whole is implemented  (^) Wide variety of use cases  (^) Ideally a covering set of use cases  (^) Covering set ensures that all necessary functions of the product have been tested at least once  (^) Error cases as well as successful cases  (^) Acceptance tests are defined jointly by SWE and customers to represent acceptable product function EECS 448 26 Dr. Douglas Niehaus © 2009

Implementation Phase

 (^) Implementation phase ends when the customer accepts the product as complete  (^) Customers sometimes change their minds during implementation  (^) Which is why defining the acceptance tests as part of implementation planning is so important  (^) It is also why making the acceptance test specification as detailed as possible is important  (^) To avoid ambiguity in when they are satisfied  (^) Implemented software is delivered to and then used by the client  (^) Alpha and Beta testing involves customers realistically using the product to reveal problems

Implementation Phase

 (^) It is important to note that developers implementing software are customers of other programmers  (^) Extensive use of libraries and existing modules is common  (^) Developers using these products are customers with constraints of their own and often have to interact with the module developers/suppliers  (^) Each product is different so sometimes developers of a product ask for and motivate modifications to some modules set of features  (^) Or discover bugs

Maintenance Phase

 (^) Corollary to Murphy's Law  (^) Software never survives first contact with users unscathed  (^) All changes to the product after it has been accepted by the customer and delivered for use  (^) Includes several categories of changes  (^) Correction of errors  (^) Improvement of performance or function of existing features  (^) Extension of existing feature set in response to the experience of using the product  (^) Perfective changes improve behavior  (^) Adaptive made in response to changing context

EECS 448 29 Dr. Douglas Niehaus © 2009

Retirement Phase

 (^) Product is removed from service  (^) Possibly replaced with a new product  (^) Possibly because the function of the product is no longer required by the client  (^) Environment may have changed so extensively that the product is simply irrelevant

EECS 448 30 Dr. Douglas Niehaus © 2009

Classical and Modern Maintenance

 (^) In the 1970s software production was viewed as consisting of two distinct phases  (^) Implementation followed by Maintenance  (^) The classical develop then maintain model is unrealistic for many, realistically most, modern software products  (^) Development may proceed for months or years  (^) Client needs or problem understanding may change one or more times during this period  (^) Perfective and adaptive maintenance on previously implemented features may be required  (^) Modern views of software development see phases as overlapping in many ways

Classical and Modern Maintenance

 (^) A more modern view of maintenance is that it is a process that takes place when software undergoes modification to code and associated documentation due to a problem or the need for improvement or adaptation [ISO/IEC 12207]  (^) International Organization for Standardization (ISO)  (^) International Electrotechnical Commission (IEC)  (^) They publish over 13,500 standards documents  (^) This is an operational definition, regardless of when the activity takes place  (^) Post-delivery maintenance is thus a subset of the modern view of the maintenance activity

Post-Delivery Maintenance

 (^) It is sometimes asserted that only bad software undergoes post-delivery maintenance  (^) Far more common view in 1970s  (^) Based on an optimistic software life-cycle view  (^) Untrue  (^) Bad software is more often thrown away  (^) So bad it is unfixable and/or not worth fixing  (^) Good software is valuable enough to justify perfective and adaptive maintenance  (^) Software is a model of the real-world problem it solves and the real work is constantly changing  (^) Adaptive maintenance is an on-going requirement

EECS 448 37 Dr. Douglas Niehaus © 2009

Team Development Aspects

 (^) Most academic projects, especially early in studying programming are done individually  (^) Most industrial software is produced by teams of software engineers  (^) Team development introduces a number of unique issues to the general set of programming challenges  (^) Components developed by separate team members must interface  (^) Communication problems among team members can lead to problems interfacing components  (^) Team organization has a huge influence on how much time is spent in group meetings and member conferences EECS 448 38 Dr. Douglas Niehaus © 2009

Team Development Aspects

 (^) Methods for team organization and managing communication in all forms among team members is thus an important aspect of software engineering  (^) The scope of software engineering is thus extremely broad:  (^) Including every phase of the software life cycle  (^) Including human, legal, and economic aspects of every phase  (^) Team organization  (^) Communication methods: oral and written  (^) Licensing and copyright issues

Why There is No Planning Phase

 (^) It is impossible to develop a product without a plan  (^) Seems obvious to have a planning phase at start  (^) Yet, no realistic plan can be created until one knows what needs to be developed  (^) Requirements, analysis/specifications, and design known  (^) Three types of planning activities  (^) Initial planning for requirements and analysis phases at the beginning  (^) Software project Management Plan (SPMP)  (^) Earliest when Analysis complete, possibly after Design  (^) SPMP monitored during all subsequent phases  (^) Adjustments/revisions as required throughout life-cycle

Why There is No Testing Phase

 (^) Common class project practice and initial contemplation of the life-cycle might make a testing phase late in implementation seem obvious  (^) Actually starting to test then is much too late  (^) Errors detected will be much more expensive than necessary  (^) Although there are times in the life-cycle when testing predominates testing should be part of the activity during all phases  (^) Specific set of use cases used to generate testing scenarios should steadily expand during implementation

EECS 448 41 Dr. Douglas Niehaus © 2009

Why There is No Testing Phase

 (^) Testing predominates toward the end of each phase (verification) and before the product is delivered to the customer (validation)  (^) Verify that the product meets assertions and constraints  (^) Validate the product by showing it passes the acceptance tests  (^) It is easy to segregate testing to specific times but it is a mistake  (^) Testing should be “continuous” as product features are implemented  (^) Steadily expanding set of test cases  (^) Testing should be continuous during implementation and maintenance phases EECS 448 42 Dr. Douglas Niehaus © 2009

Why There is No Testing Phase

 (^) Every software development organization should contain an independent group, often called Software Quality Assurance (SQA), whose primary responsibility is to:  (^) Verify the product meets assertions and requirements specified by the analysis  (^) Product satisfies all acceptance tests  (^) Product is properly built  (^) Documentation properly reflects product state and behavior  (^) Product and documentation are consistent

Why There is no Documentation Phase

 (^) While tempting, there should never be a separate

documentation phase, especially not at the end after implementation is “complete”  (^) Documentation should be started before the software

and steadily expanded, updated, and improved during implementation, for many reasons  (^) Large turn-over in personnel in the SW industry means the person who knows vital information may no longer be present “at the end”  (^) Impossible to perform later phases until documentation of previous phases is complete  (^) Documents provide vital information for designing valid test sets  (^) Work during all phases is greatly aided by consulting relevant documents

Object Oriented Paradigm

 (^) Prior to 1975 software development was done by a range of craftsmen with their own techniques  (^) Idea of a computer Science major was not introduced until about 1970 and was initially funded by DARPA  (^) 1975 to 1985 structured programming under the classical life-cycle paradigm was accepted best practice  (^) Adequate for small (5K lines) and medium (50K) projects but experiencing many problems when scaling up to 500K and 5M line products  (^) Classical approach also had much higher costs during post-delivery maintenance than its advocates predicted

EECS 448 49 Dr. Douglas Niehaus © 2009

Object Oriented Paradigm

 (^) Object Oriented Analysis Work-Flow  (^) Determine what the product is to do  (^) Extract corresponding set of components (classes)  (^) Object Oriented Design Work-Flow  (^) Detailed Class Hierarchy  (^) Object Oriented Implementation Work-Flow  (^) Implement the designed classes in an appropriate OO language  (^) Integrate  (^) Note that, in principle, an OO design can be implemented in a non-OO language  (^) Conventions take the place of compiler rules EECS 448 50 Dr. Douglas Niehaus © 2009

OO Paradigm in Perspective

 (^) OO paradigm is powerful and widely useful  (^) But it must be used correctly  (^) It is at least as easy to misuse as any other paradigm  (^) When correctly used it reduces or eliminates many but not all of the problems associated with the classical paradigm  (^) OO paradigm has problems of its own  (^) Discussed later  (^) OO paradigm is generally considered “best practice” today, but others have advocates and OO may be superseded by a superior technology in the future

SWE Terminology

 (^) Developers  (^) Members of team responsible for building product  (^) Internal SW Development  (^) Both client and developers are part of the same organization  (^) Contract SW  (^) Client and developers are independent organizations  (^) User  (^) Person or persons on whose behalf the customer has commissioned the creation of the product  (^) Those that will use the SW product

SWE Terminology

 (^) Custom Software  (^) SW written for one client  (^) Commercial Off-the-Shelf (COTS) SW  (^) Multiple copies of the SW are sold to a large range of users  (^) Generally cheaper as development costs are spread across a larger number of customers  (^) Shrink-Wrapped SW  (^) Earlier term for COTS

EECS 448 53 Dr. Douglas Niehaus © 2009

SWE Terminology

 (^) Open-Source SW  (^) Developed and maintained by both paid and unpaid developers  (^) Source code freely available  (^) Available for use and modification free of charge  (^) Obligations vary with licenses  (^) GPL: derived works are also GPL  (^) BSD: derived works are unrestricted  (^) Becoming popular and can be very high quality  (^) Linux, Open-Office, FireFox, Python, Apache  (^) Increasingly supported by industry paying developers EECS 448 54 Dr. Douglas Niehaus © 2009

SWE Terminology

 (^) Software  (^) Consists of not just code, but also documentation  (^) Desing, specification, user documentation  (^) System Analysis  (^) First 2 phases of traditional SWE  (^) Requirements and analysis  (^) System Design  (^) Thrid Phase  (^) Product  (^) Non-trivial piece of software  (^) System  (^) Combined HW and SW

SWE Terminology

 (^) Mistake, fault, failure, error  (^) Defined in IEEE standard 610.  (^) A programmer or designer makes a mistake  (^) The consequences of that mistake is a fault in the code which, when the code is run, results in  (^) Observed incorrect behavior, which is  (^) An error, to the degree that the observed behavior differs from the correct behavior, and the software has thus  (^) Failed to work correctly  (^) BUG is a common generic term but should be avoided as much as possible, in part because it makes it seem like “it just happened”

Ethical Issues

 (^) Any activity which involves design and implementation of products used by others will involve ethical issues of various kinds  (^) Engineers, doctors, lawyers, plumbers, house builders, scientists, and farmers  (^) All have ethical obligations related to what they produce, how their products are used, and how they communicate with their customers  (^) Many producers have professional societies which formulate codes of ethics providing guidelines which must be obeyed by members for them to remain in good standing  (^) Generally express similar standard  (^) Important for the future of many professions