Chapter 1: Introduction to Software Engineering
1.1 Understanding Software and Software Products
- What is Software? Computer programs and their associated documentation.
- Types of Software Products:
- Generic: Developed to be sold to a broad range of different customers in the general market.
- Bespoke (Custom): Developed for a single, specific customer according to their unique specifications.
- Programs vs. Software Products:
- Programs: Usually small, built by a single developer (who is often the sole user), and generally lack proper user interfaces, documentation, and systematic development (ad hoc).
- Software Products: Large-scale, built by a team of developers for a large number of users, featuring well-designed interfaces, thorough documentation/user manuals, and systematic development.
1.2 What is Software Engineering?
Software engineering is the establishment and use of sound engineering principles to economically obtain software that is reliable and works efficiently on real machines. It is characterized by four main activities:
- Modeling Activity: Creating abstract representations of a system to deal with complexity. Models help focus on relevant details while ignoring extraneous information, especially when systems are too large, expensive, or complicated to experience firsthand.
- Problem-Solving Activity: Engineering is not purely algorithmic. It involves a five-step method: formulate the problem \rightarrow analyze \rightarrow search for solutions \rightarrow decide on the appropriate solution \rightarrow specify the solution.
- Knowledge Acquisition Activity: Collecting data, organizing it into information, and formalizing it into knowledge. This is a nonlinear process, as a single new piece of data can invalidate an entire model.
- Rationale-Driven Activity (Rationale Management): Capturing the context and reasons behind decisions so that future engineers can understand the implications of proposed changes.
1.3 The Software Crisis and the Need for Software Engineering
- Why Study Software Engineering?
- To acquire skills to develop large programs (complexity grows exponentially with size).
- To learn techniques to break down complex problems into manageable parts (specification, design, testing, project management).
- To become a better programmer with higher productivity and better quality output.
- The Software Crisis: In the 1950s and 60s, system development was unstructured. The "software crisis" (coined in 1968) emerged as hardware advanced, leading to complex software that frequently crashed, failed to meet requirements, was delivered late, ran over budget, and was difficult to maintain.
- Historical Examples: The Leap-year bug (1988), London underground train interface misuse (1990), Internet Worm security breach (1988), and the Denver Airport luggage system being late/over budget.
- Computer Science vs. Software Engineering:
- Computer Science: Concerned with theory and fundamentals (algorithms, data structures, complexity theory).
- Software Engineering: Concerned with the practicalities of developing and delivering useful, complex software products. CS acts as the foundational underpinning for SE.
1.4 Software Processes and Models
- Software Process: A set of activities aimed at the development or evolution of software. The four fundamental activities are:
- Specification: Defining what the system should do and its constraints.
- Development: Designing and implementing the software.
- Validation: Checking that the software meets the customer's needs.
- Evolution: Changing the software to meet changing demands.
- Software Process Model (SPM): A simplified representation of a software process.
- Perspectives: Workflow (inputs/outputs), Data-flow (data transformations), and Role/action (people and activities).
- Generic Models: Waterfall, Evolutionary development, Formal transformation, and Integration from reusable components.
1.5 Computer-Aided Software Engineering (CASE)
CASE refers to software systems intended to provide automated support for software process activities.
- Upper-CASE: Tools that support early process activities like requirements analysis and system design/modeling.
- Lower-CASE: Tools that support later activities such as programming, debugging, and testing.
1.6 Attributes of Good Software
Good software must deliver required functionality and performance while possessing four key attributes:
- Maintainability: It must be able to evolve to meet changing user needs.
- Dependability: It must be trustworthy, reliable, and secure.
- Efficiency: It should not make wasteful use of system resources (memory, processor time).
- Usability: It must be highly usable and accessible for its intended audience.
1.7 Key Challenges in the 21st Century
- Legacy Systems: The challenge of maintaining and updating old, highly valuable software systems.
- Heterogeneity: Managing distributed systems that include a complex mix of different hardware and software.
- Delivery: Coping with the increasing business pressure for faster delivery of software without sacrificing quality.