Docsity

Software engineering, Lecture notes of Introduction to Software Engineering

Toggle sidebar
bg1
Software Engineering
•Schach: discipline whose aim is production of fault-free software, delivered on time and within budget, that
satisfies the client's needs.
•Sommerville: structured approach to designing, building and maintaining large software systems
•Lethbridge : process of solving customers' problems by the systematic development and evolution of large,
high-quality software systems within cost, time and other constraints
•IEEE : the application of a systematic, disciplined, quantifiable approach to the development, operation, and
maintenance of software
•Wikipedia (13 Sep 2010) : a profession dedicated to designing, implementing, and modifying software so that
it is of higher quality, more affordable, maintainable, and faster to build
Multi-faceted
•risk: degree of uncertainty. SE considers three major categories: technical, schedule, budget
•historical: 1968 SE Conference declaration of software crisis with engineering approach as solution
•historical: major study in 2001 reveals 28% of software development projects successful (works, on time,
w/i budget), 49% delivered but deficient, 23% canceled before delivery.
•economic: development decisions may involve complex economics. Consider these examples:
•offshoring programming tasks
•adoption of new specification technique or programming language,
•"adding personnel to a late project only makes it later" (Brooks)
•life cycle phases: classical phases include requirements, analysis,
design, implementation, postdelivery maintenance, retirement. Many studies have considered the relative
efforts that each require, and the cost of repairing faults detected along the way.
•teams: project size and schedule usually dictates team solution. If one person can develop it in one year, can
a team of six develop it in two months? Consider the overhead involved and opportunities for error.
•organizations: ACM, IEEE-CS, ISO (International Organization for Standardization)
•ethics: major codes of ethics governing software engineers are
•Software Engineering Code of Ethics and Professional Practice, developed by ACM/IEEE-CS Joint
Task Force on Software Engineering Ethics and Professional Practices. See http://www.acm.org/
serving/se/code.htm
ACM Code of Ethics and Professional Conduct, see http://www.acm.org/constitution/code.html
Classical Phases
•requirements: find out what the client needs
•analysis: analyze client needs and document in specification. Focus is on client and problem domain and
terminology
•design: determine solution framework (architecture) and design its components. Focus shifts to solution
domain and terminology
•implementation: coding, integration and testing. Deliver upon completion.
•postdelivery maintenance: changes, which fall into three categories: corrective (repair faults), perfective
(improve features), adaptive (adapt to new environment). Total cost can be 3 times development cost.
Paradoxically, good software may have higher maintenance costs than poor software because it is used!
•retirement: removed from service
Comments on Phases
pf3
pf4
pf5
Discount

On special offer

Partial preview of the text

Download Software engineering and more Lecture notes Introduction to Software Engineering in PDF only on Docsity!

Software Engineering

  • Schach : discipline whose aim is production of fault-free software, delivered on time and within budget, that satisfies the client's needs.
  • Sommerville : structured approach to designing, building and maintaining large software systems
  • Lethbridge : process of solving customers' problems by the systematic development and evolution of large, high-quality software systems within cost, time and other constraints
  • IEEE : the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software
  • Wikipedia (13 Sep 2010) : a profession dedicated to designing, implementing, and modifying software so that it is of higher quality, more affordable, maintainable, and faster to build Multi-faceted
  • risk : degree of uncertainty. SE considers three major categories: technical , schedule , budget
  • historical : 1968 SE Conference declaration of software crisis with engineering approach as solution
  • historical : major study in 2001 reveals 28% of software development projects successful (works, on time, w/i budget), 49% delivered but deficient, 23% canceled before delivery.
  • economic : development decisions may involve complex economics. Consider these examples:
  • offshoring programming tasks
  • adoption of new specification technique or programming language,
  • "adding personnel to a late project only makes it later" (Brooks)
  • (^) life cycle phases : classical phases include requirements , analysis , design , implementation , postdelivery maintenance , retirement. Many studies have considered the relative efforts that each require, and the cost of repairing faults detected along the way.
  • teams : project size and schedule usually dictates team solution. If one person can develop it in one year, can a team of six develop it in two months? Consider the overhead involved and opportunities for error.
  • organizations : ACM, IEEE-CS, ISO (International Organization for Standardization)
  • ethics : major codes of ethics governing software engineers are
  • Software Engineering Code of Ethics and Professional Practice , developed by ACM/IEEE-CS Joint Task Force on Software Engineering Ethics and Professional Practices. See http://www.acm.org/ serving/se/code.htm ACM Code of Ethics and Professional Conduct , see http://www.acm.org/constitution/code.html

Classical Phases

  • requirements : find out what the client needs
  • analysis : analyze client needs and document in specification. Focus is on client and problem domain and terminology
  • design : determine solution framework (architecture) and design its components. Focus shifts to solution domain and terminology
  • implementation : coding, integration and testing. Deliver upon completion.
  • postdelivery maintenance : changes, which fall into three categories: corrective (repair faults), perfective (improve features), adaptive (adapt to new environment). Total cost can be 3 times development cost. Paradoxically, good software may have higher maintenance costs than poor software because it is used!
  • retirement : removed from service

Comments on Phases

  • There is not a planning phase because planning is done during multiple phases. Particularly in the period prior to design.
  • There is not a testing phase because testing is done during multiple phases. The sooner a fault is detected, the less expensive it is to fix. Studies show exponential growth. Consider a requirements fault not discovered until delivery...
  • There is not a documentation phase because documentation is done during multiple phases. Documentation serves as progress marker, blueprint for next phase, source of test data, shared information resource for project personnel.
  • Modern definitions of maintenance include maintenance activities, such as correcting faults, that occur during development prior to delivery. Author calls this (modern) maintenance.

Classical vs. Object-Oriented paradigm

  • paradigm refers to a model for framing the way you think about complex things
  • classical paradigm refers to the structured approach , developed during the 1970s and 1980s.
    • Practices include structured analysis , structured design , structured programming , etc.
    • Does not scale up well to hyper-sized products, usually measured by lines of code (LOC)
    • Practices usually consider operations and data separately. Dataflow Diagrams (DFD), despite the name, focus on operation sequences. Entity-Relation Diagrams (ERD) focus on data structures.
    • These are important and we will study and use them
  • object-oriented paradigm refers to an approach developed during the 1980s and 1990s.
    • (^) Practices include object-oriented analysis , object-oriented design , object-oriented programming , etc.
    • Practices combine operations and data into objects.
    • Encapsulation in particular distinguishes OO from structured. In a structured approach, the data are exposed to ANY operations which may want to use or misuse them. In the OO approach, the data are accessible to external operations only through defined methods.
  • Object-oriented life cycle comprises similar kinds of activities as classical, but they are called workflows rather than phases. "Phase" carries a sense of sequentiality. "Workflows" can be done concurrently.

Life-Cycle Model

  • a way of organizing the life cycle phases and activities
  • (^) there are many ways of organizing
  • each has different strengths and weaknesses
  • we will focus on several
  • two issues important to all life cycle models:
    • validation : "does the right thing" (meets clients expressed needs)
    • verification : "does the thing right" (phase n correctly reflects phase n-1)

Waterfall Model

  • developed in early 1970s
  • phases are conducted sequentially
  • requirements -> analysis -> design -> implementation -> maintenance
  • (^) phase n is not begun until phase n-1 is complete and documented and approved
  • traditionally no feedback until implementation complete
  • an error in any phase cannot be detected until post-delivery maintenance
  • all the above support calling it "waterfall"

Agile Process Models

  • recent and still-evolving family of development practices
  • term agile refers to responsiveness to change and small number of rules
  • called a lightweight model due to small number of rules and practices
  • some model characteristics
    • highly iterative, close collaboration with clients
    • implementation starts early
    • reduced emphasis on analysis, design, documentation
    • heavy emphasis on testing
  • (^) known to work well for small scale and vaguely specified projects
  • not yet known how well it scales up
  • most well known agile process is extreme programming (XP)
    • see www.extremeprogramming.org for life cycle diagram
    • involves more than just programming!
    • highly iterative and incremental
    • clients write user stories to describe how system is used
    • developers develop time estimates from user stories
    • acceptance tests are also developed from user stories
    • developers and clients use time estimates to determine which stories will be implemented when. This is documented in release plan , which outlines sequence and schedule of releases.
    • releases should be small and frequent (for agility)
    • For a given release, stories are broken down into programming tasks.
    • Programming tasks are assigned to programming pairs (driver at keyboard, navigator at side to give direction and spot errors quickly)
    • programming begins early
    • testing is formal, semi-automated, and continual ( test-driven development ) before, during and after coding
    • integration is done frequently
    • refactoring is done on the fly, rather than in pre-implementation design phase

Spiral Model

  • risk-focused model developed in 1980s
  • waterfall modified to add risk analysis at start of each phase
  • idea is to identify and resolve risks before proceeding with a phase
  • many risks can be resolved through prototyping
  • a heavyweight process due to all the rules and activities
  • many "lighter" variations have been adapted for specific projects
  • works well for large scale projects
  • overhead of risk analysis makes spiral unwieldy for smaller projects

Some Other Models

  • (^) Open-Source Model
    • term "open source" normally associated with product and its licensing
  • How does it differ from "free" software? Richard Stallman explains
  • iterative and incremental model used for major free and open source products (e.g. Linux, Apache)
  • First phase characterized by development of initial version, which is made available to be freely- distributed
  • If it catches on, second phase evolves as users become co-developers ■ Their everyday usage serves as testing workflow ■ Reporting and fixing failures and defects ■ Extending the software's capabilities ■ Porting the software to new and different platforms
  • (^) Note that the last three above points illustrate the three types of maintenance: corrective, perfective, adaptive
  • If project is large-scale, second phase management becomes an issue
  • If you detected a fault in Linux and were able to fix it, how would you get your fix into the next release?
  • Core group makes the decisions
  • This model suits only certain kinds of software
  • Evolutionary Tree Model
  • Modifies waterfall by recording each feedback action as separate waterfall branch during actual development
  • (^) cannot be planned in advance, must be recorded as development evolves
  • Synchronize-and-Stabilize Model
  • a iterative and incremental model pioneered by and used within Microsoft
  • following analysis, clients prioritize features into categories (e.g. core, important, nice to have)
  • Sequence of builds is planned, first one with highest priority features, etc
  • teams working on build must synchronize their work at end of day (integrate and test)
  • at the end of build, requirements behind that build are frozen, or stabilized
  • Code and Fix Model
  • does not involve explicit requirements, analysis or design phases
  • highly iterative and incremental
  • (^) risks are high: difficult to maintain and many faults not discovered until post-delivery maintenance
  • works only for very small projects