Because of the crisis, a disciplined approach was proposed. It rests on a few ideas that are used in all later topics.

Software Engineering Approach

Software engineering is the application of a systematic, disciplined and quantifiable approach to the development, operation and maintenance of software. Its aim is to produce software that is of high quality, within the budget and on schedule. The approach rests on three elements. A process gives the framework of activities. Methods give the technical how-to of each activity. Tools give automated support. A fourth element, a focus on quality, runs through all of them.

Definition: Software engineering. The systematic, disciplined and quantifiable application of engineering principles to the development, operation and maintenance of software.

Principles of Software Engineering

Certain principles guide the work. Abstraction concentrates on the essential and hides the detail. Decomposition, or divide and conquer, breaks a large problem into smaller ones that can be solved separately. Modularity makes the system out of parts with clear interfaces. Information hiding keeps the design decisions of a module private. Incremental development builds the system in steps. Reuse uses existing work instead of building again. Anticipation of change designs the software so that it can be modified at lower cost. Rigour and formality require precise and checked work, and early verification checks the work at every stage. Documentation records the decisions.

Challenges

The challenges of software engineering include heterogeneity, since software must work on many different platforms, devices and networks, delivery, the demand to produce software quickly, and trust, the need for software that users can depend on and that is secure. Software has to cope with changing requirements as business changes. The scale of systems has grown from programs for a single computer to systems of systems. Another challenge is the lack of reliable estimation, so that cost and time are hard to predict. Finally there are ethical and professional responsibilities, such as privacy and the safe behaviour of systems that affect lives.

Table 1.2: Principles and their benefit

Principle Idea Benefit
Abstraction Show only what is essential Reduces complexity
Decomposition Split into smaller parts Easier to solve and test
Information hiding Keep detail private Easier change
Reuse Use existing work Saves time and cost
Incremental development Build in steps Early feedback

Example 1.2: Applying principles

Problem: A team must build an online examination system for 5000 students. Name two principles they should use and say how.

Solution:

  1. Decomposition: divide the system into registration, question bank, test delivery and result modules.
  2. Reuse: use an existing library for user login instead of writing one.

Result: Decomposition makes the work easy to share, and reuse saves time and reduces defects.

Common mistakes

  • Thinking that the approach is only a set of tools.
  • Skipping documentation to save time, which causes cost in maintenance.
  • Ignoring change, and designing as if requirements will never alter.

Key takeaways

  • The approach has process, methods, tools and a focus on quality.
  • Key principles are abstraction, decomposition, modularity, information hiding and reuse.
  • Challenges are heterogeneity, delivery pressure and trust.
  • Requirements change, so the design must expect change.

Practice questions

  1. State any four principles of software engineering.
  2. What does decomposition mean?
  3. Name two challenges of software engineering.

Answers to the practice questions

  1. Abstraction, decomposition, modularity and information hiding (also reuse and incremental development).
  2. Dividing a large problem into smaller problems that can be solved separately.
  3. Heterogeneity and delivery pressure (also trust and changing requirements).

Sources

  • Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit I