Software Engineering Introduction
Software Engineering: Foundations, Practice, and Ethics
What Software Engineering Is
Software engineering is an engineering discipline concerned with every aspect of producing software. It covers the work from early requirements and system specification through design, implementation, testing, delivery, and maintenance.
Software engineering is therefore broader than programming or coding. It includes technical work as well as the processes, tools, methods, and management practices needed to produce useful software reliably and economically.
An engineering discipline applies appropriate theories and methods while taking practical constraints into account, including organizational needs, budgets, schedules, and the capabilities of the people developing the system.
Software and software products
Software consists of computer programs and their associated documentation. It may be developed:
For a particular customer, according to that customer’s needs.
For a general market, so that many customers can use the same product.
Professional software development
Professional software development aims to produce systems that meet their requirements and remain useful after delivery. It differs from an informal personal programming project because it considers the entire product lifecycle, including:
What users and customers need.
How the system should be designed and implemented.
How it will be tested and validated.
How it will be maintained as requirements change.
How it will be managed, secured, and supported.
Why Software Engineering Matters
Modern economies and societies rely on software. Software controls or supports an increasing number of systems, and software expenditure represents a significant part of economic activity in developed countries.
Software is also often a major part of the total cost of a computer-based system:
The cost of software can exceed the cost of the hardware on which it runs.
Software maintenance can cost more than initial development.
For long-lived systems, the total cost of evolution and maintenance may be several times the original development cost.
Software engineering focuses on cost-effective software development: producing software that meets its needs without wasting time, money, or other resources.
Although estimates vary among projects, one rough breakdown puts software costs at about 60% for development and 40% for testing. For customized systems, costs of evolution after delivery often exceed the initial development costs. The important general principle is that software costs continue throughout the system’s life, not just while it is being built.
Using professional methods is usually more economical in the long term than simply writing a program and addressing problems only as they arise. This is especially important because changing software after it enters use accounts for a large share of the costs for many systems.
Types of Software Products
Generic products
Generic software products are developed and marketed for customers who choose to buy them. The developer determines the product’s specifications and generally makes decisions about changes and new versions.
Examples include:
Graphics software.
Project-management tools.
Computer-aided design software.
Database-management systems.
Operating systems.
Software designed for a general market, such as appointment-management tools for a particular profession.
Because the same product can be sold to many customers, the cost of development can be spread across a large user base.
Customized products
Customized software products are commissioned by a particular customer to meet that customer’s requirements. The customer typically owns or controls the specification and has a significant role in deciding what changes are needed.
Examples include:
Embedded control systems built for a particular device or organization.
Air-traffic control software.
Traffic-monitoring systems.
Customized software often costs more per customer than a widely sold generic product because it is tailored to specific needs and cannot necessarily spread its development costs across a large market. The precise cost depends on the system and its contractual arrangements.
Differences in specification ownership
Generic product: The software developer determines what the product should do and decides which changes to make.
Customized product: The customer defines what the commissioned system should do and commonly directs or approves changes.
Attributes of Good Software
Good software must provide the required functionality and performance while also possessing qualities that make it dependable and useful over time. Four central attributes are maintainability, dependability and security, efficiency, and acceptability.
Maintainability
Maintainability is the ability of software to be changed and improved as needs evolve. Business environments, technologies, and user requirements change, so software should be designed and written to support modification.
Maintainable software is easier to:
Correct when faults are found.
Adapt to new requirements.
Improve or extend.
Update when its operating environment changes.
Dependability and security
Dependability includes characteristics such as reliability, security, and safety.
Reliability: The system performs its intended functions consistently.
Security: The system resists unauthorized access, damage, or misuse.
Safety: System failure does not create unacceptable risk of harm.
Dependable software should not cause physical or economic damage when it fails, and malicious users should not be able to gain unauthorized access or damage the system.
Efficiency
Efficiency concerns how economically software uses system resources. It includes:
Responsiveness.
Processing time.
Memory use.
Use of processor cycles and other resources.
The appropriate level of efficiency depends on the application. Some applications have strict performance and resource constraints; in others, efficiency can be improved over time, provided the system initially meets its requirements.
Acceptability
Acceptability means that the software is suitable for the people and environments for which it is intended. It should be:
Understandable.
Usable.
Compatible with other systems that users rely on.
Supported by an appropriate interface and documentation.
Software that technically works but is confusing or incompatible may still fail to serve its users effectively.
Core Software Process Activities
Software processes commonly include four high-level activities. They are useful for understanding software production, although real projects may repeat or overlap them.
1. Software specification
Customers and engineers establish what the software should do and identify constraints on its operation. This includes understanding and managing requirements: the expected functions, qualities, and limitations of the system.
2. Software development
The software is designed and programmed. Development turns the requirements into a system structure, components, and executable software.
3. Software validation
The system is checked to determine whether it meets the customer’s requirements. Testing and other forms of verification help identify defects and assess whether the system behaves as intended.
4. Software evolution
The software is modified after or during use to reflect changing customer, business, and market requirements. Evolution is a normal part of a software product’s life, not an unusual exception.
Software Engineering and Related Disciplines
Software engineering and computer science
Computer science focuses primarily on theories, principles, and fundamentals of computation.
Software engineering focuses on the practicalities of developing, validating, delivering, and maintaining useful software.
The disciplines are related: software engineering draws on computer science, but it must also address the real-world constraints of producing and operating software.
Software engineering and system engineering
System engineering is concerned with the development of complete computer-based systems. It includes hardware, software, and the engineering of the processes through which the system is developed and operated.
Software engineering is one part of this broader activity. A software engineer must understand how software fits into the larger system, but system engineering also considers components and concerns beyond software.
Challenges and Choice of Methods
Key challenges
Software engineering faces several continuing challenges:
Increasing diversity: Systems must work across different devices, platforms, networks, and environments.
Reduced delivery times: Organizations often need software developed or changed more quickly.
Trustworthiness: Users and organizations must be able to rely on software that has become deeply integrated into everyday life.
No single method fits every project
Different kinds of software require different development techniques. The appropriate approach depends on factors such as:
The type of application.
The customer’s requirements.
The consequences of system failure.
The experience and background of the development team.
For example, entertainment software may be developed through prototypes and successive releases, allowing users to provide feedback and identify defects. A safety-critical control system requires much more rigorous specification, analysis, and testing before it can be relied on. A development method suitable for one kind of system is not automatically suitable for another.
Common Application Types
Software systems vary widely. Recognizing their type helps engineers choose suitable development methods and tools.
Stand-alone applications
These run on a local computer and provide their main functionality without needing a network connection. Some stand-alone applications also connect to remote services for additional features, so a system may combine local and network-based behavior.
Interactive transaction-based applications
These run on remote computers or servers and are accessed by users through their own computers or terminals. Web-based commerce applications are a common example. They respond to user actions and often perform transactions involving stored data.
Embedded control systems
These control or manage hardware devices. They are integrated into the devices or equipment they operate. Embedded systems are numerous and appear in many kinds of products and infrastructure.
Batch processing systems
These process large quantities of data in batches. Many individual inputs are processed to produce corresponding outputs, often without requiring continuous interaction with a user.
Entertainment systems
These are primarily intended for personal use and are designed to entertain users.
Systems for modeling and simulation
Scientists and engineers use these systems to represent physical processes or situations. They may model many separate objects that interact with one another.
Data collection systems
These collect measurements from an environment using sensors and send the resulting data to other systems for processing.
Systems of systems
A system of systems is made up of multiple other software systems that interact or work together to provide a broader capability.
General Issues Affecting Software Systems
Heterogeneity
Systems increasingly operate across networks that include different types of computers and mobile devices. Software may need to work across varied hardware, platforms, and network conditions.
Business and social change
Organizations and societies change rapidly as new technologies and economic conditions emerge. Software must be adaptable enough to support changes to existing services and the rapid development of new ones.
Security and trust
Because software is involved in many aspects of life, users need to trust it. Security, dependable operation, and the responsible handling of information are essential considerations.
Diversity of systems and methods
There is no universal set of tools and techniques suitable for every software system. The methods used should reflect the application, customer requirements, and development team.
Software Engineering Fundamentals
Several principles apply broadly, regardless of the specific software-development techniques used:
Software should be developed using a managed and understood process. The particular process can differ between projects.
Dependability and performance matter across software systems, although the required levels vary.
Requirements must be understood and managed so developers know what the system should do.
Reuse should be considered when appropriate: using existing software can be more effective than developing everything from scratch.
Reusing suitable, well-tested software can save time and improve robustness and dependability. Existing libraries, frameworks, components, and systems provide functionality that would otherwise need to be built and maintained anew. Reuse still requires judgment: components must be appropriate, compatible, and suitable for the system’s quality and security needs.
The Web and Software Engineering
The web has changed how software is delivered and used. It is a platform for applications, and organizations increasingly develop web-based systems rather than relying only on locally installed software.
Web services and cloud computing
Web services make application functionality available over the web so that other applications or users can access it remotely.
Cloud computing provides computing services through remote infrastructure. Applications run on cloud-based systems, and users may pay according to their use rather than purchasing and operating all the software and hardware themselves.
Cloud-based services make remote computing capacity and application functions available on demand.
Distributed development and collaboration
Web-based tools make it possible for developers in different locations to collaborate on the same software. Code-management systems support shared development by tracking changes and coordinating contributions. This supports the development and maintenance of large projects, including open-source software.
Reuse and incremental development
Web-based systems are often assembled from existing components and services rather than built entirely from scratch. Reuse is a broad software-engineering practice, not a technique limited to web applications.
Web systems are also commonly developed and delivered incrementally. It may be impractical to define every requirement in advance because users’ needs and the system’s environment change. Incremental delivery allows developers to introduce functionality in stages and respond to new information.
User interfaces in browsers
A web application’s interface must work within the capabilities of web browsers. Browser technologies allow interactive interfaces to be built, but interface design remains constrained by browser behavior, supported technologies, and the needs of users.
Applying general software-engineering principles
Web-based systems can be complex and distributed, but the fundamental principles of software engineering still apply. They still need clear requirements, suitable design, validation, dependable operation, security, and ongoing evolution.
Professional Responsibility and Ethics
Software engineering creates responsibilities beyond the application of technical skills. Software can affect individuals, organizations, and society, so engineers are expected to act honestly and responsibly.
Ethical behavior is more than obeying the law. It also involves acting according to morally responsible principles. Professional respect depends on engineers recognizing the consequences of their work and considering the people affected by it.
Professional responsibilities
Confidentiality
Engineers should normally respect the confidential information of employers and clients, whether or not they have signed a formal confidentiality agreement.
Competence
Engineers should not misrepresent their abilities. They should not knowingly accept work that is outside their competence unless they can obtain the support, knowledge, or training needed to perform it responsibly.
Intellectual property rights
Engineers should understand applicable rules concerning intellectual property, such as copyright and patents. They should protect the intellectual property of clients and employers and avoid using it improperly.
Computer misuse
Engineers should not use technical knowledge to misuse other people’s computers. Misuse ranges from inappropriate personal use of an employer’s system to serious acts such as distributing malicious software.
The ACM/IEEE Software Engineering Code of Ethics
Professional societies such as the Association for Computing Machinery (ACM) and the Institute of Electrical and Electronics Engineers (IEEE) have developed a joint code of ethics for software engineering. It applies broadly to practitioners as well as educators, managers, supervisors, policymakers, trainees, and students.
The code combines high-level aspirations with practical guidance. Aspirations without detail may be vague; details without aspirations may become a mere checklist. Together, they describe the values and conduct expected of the profession.
The code is grounded in the fact that software has a growing role in fields such as commerce, government, medicine, education, and entertainment. Software engineers can contribute to beneficial outcomes or cause harm, and they can influence whether others do the same. Their work should support the health, safety, and welfare of the public and help make software engineering a beneficial and respected profession.
Eight ethical principles
Public: Software engineers should act consistently with the public interest.
Client and employer: They should serve the best interests of their client and employer while remaining consistent with the public interest.
Product: They should ensure that software and related modifications meet the highest professional standards possible.
Judgment: They should preserve integrity and independence in professional judgment.
Management: Engineering leaders and managers should promote ethical approaches to software development and maintenance.
Profession: They should support the integrity and reputation of the profession in ways consistent with the public interest.
Colleagues: They should treat colleagues fairly and support them.
Self: They should continue learning throughout their careers and promote ethical professional practice.
Ethical dilemmas
Ethical principles can be difficult to apply when responsibilities conflict. Examples include:
An employer plans to release a safety-critical system before testing is complete.
An engineer disagrees with the policies or decisions of senior management.
An engineer is asked to participate in developing military weapons or nuclear systems.
Such situations require engineers to consider professional obligations, public consequences, and the likely effects of their choices rather than focusing only on technical instructions.
Example Systems in Software Engineering
Different systems illustrate how requirements, risks, and operating environments affect software design. Three examples are an insulin-pump control system, a mental-health patient-management system, and a wilderness weather station.
Insulin-pump control system
An insulin pump is an embedded, safety-critical system used by people with diabetes. It reads a blood-sugar sensor and calculates how much insulin should be delivered. The calculation must take the current blood-sugar level and its rate of change into account.
A simplified operating sequence is:
Read data from the blood-sugar sensor.
Analyze the readings and estimate the current blood-sugar level.
Calculate the required insulin amount.
Decide the insulin dose and generate pump commands.
Deliver insulin through the pump.
Record the dose and related information.
Use subsequent readings to continue assessing whether treatment is appropriate.
The system involves hardware such as an insulin reservoir, needle assembly, sensor, pump, controller, clock, alarm, and display. The software must coordinate with these components and monitor the operation of the device.
Incorrect dosing can have severe consequences. Low blood sugar can cause brain malfunction, coma, or death, while persistently high blood sugar can cause long-term damage, including harm to the eyes and kidneys. The system therefore requires careful design and rigorous validation.
Its high-level requirements include:
It must be available to deliver insulin when required.
It must operate reliably and deliver the correct amount of insulin to respond to the patient’s blood-sugar level.
Mental Health Care Patient Management System
A Mental Health Care Patient Management System (MHC-PMS) maintains information about people receiving mental-health care and the treatments they have received. Patients may visit specialist clinics located in hospitals, local medical practices, or community centers.
The system uses a centralized patient database but can also operate on local computers at sites without secure network access. When a secure connection is available, local systems use the central database. When disconnected, they can use local copies of patient records. This combination of connected and offline operation helps staff access information at different locations.
Main goals
Provide medical staff with timely information to support patient treatment.
Generate management information that helps health-service managers assess performance against local and government targets.
Key features
Individual care management: Clinicians can create and edit records, review patient histories, and consult summaries of key problems and prescribed treatments.
Patient monitoring: The system monitors records of patients receiving treatment and raises warnings when it detects possible problems.
Administrative reporting: It produces reports such as the number of patients treated at each clinic, the number entering or leaving the care system, and information about prescribed drugs and their costs.
Main concerns
Privacy: Patient information must remain confidential and should be accessible only to authorized people, such as appropriate medical staff and the patient.
Safety: Some patients may be suicidal or dangerous to others. The system should warn medical staff about potential risks when possible.
Availability: If staff cannot access the system when needed, patient safety may be affected, and appropriate treatment or medication may be delayed.
Although this is not necessarily a safety-critical system in the same sense as an insulin pump, failures in availability, privacy, or monitoring can still have serious consequences.
Wilderness weather station
A wilderness weather station is a data-collection system deployed in a remote area. A network may contain hundreds of stations, each measuring conditions such as:
Temperature and air or ground temperature.
Atmospheric pressure.
Sunshine.
Rainfall.
Wind speed and direction.
Software at each station controls the instruments, takes readings periodically, and manages collected data. Remote locations may lack reliable internet access or electrical power, so the system must operate under environmental and communication constraints.
Main system components
Weather-station system: Collects measurements, performs initial processing, and transmits data to the central data-management system.
Data-management and archiving system: Collects information from the stations, performs further processing and analysis, and archives the data.
Station-maintenance system: Communicates with stations, including by satellite, to monitor their condition and report problems.
Additional functionality and constraints
The station software may need to:
Monitor instruments, power supplies, and communication hardware.
Report faults to the management system.
Manage power, charging batteries when conditions permit.
Shut down generators during potentially damaging conditions, such as high winds.
Support dynamic reconfiguration, including software updates and switching to backup instruments when equipment fails.
This example demonstrates why system development requires attention not only to the main function—collecting data—but also to maintenance, power, communication, environmental conditions, and recovery from faults.
Key Takeaways
Software engineering addresses the full process of software production, from specification through development, validation, and evolution.
Good software should be maintainable, dependable and secure, efficient, and acceptable to its users.
The appropriate methods and tools depend on the system’s purpose, requirements, risks, and development context; no single method suits every project.
Software reuse can reduce duplicated effort and support reliable development when reused components are appropriate and well understood.
Web and cloud technologies enable distributed services, collaborative development, and incremental delivery, but they do not remove the need for sound engineering practices.
Software engineers have responsibilities to the public, clients, employers, colleagues, and profession, and must consider ethical consequences as well as technical correctness.
Different systems present different risks: an insulin pump requires strict safety controls, a patient-management system must protect privacy and availability, and a weather station must operate reliably in remote and difficult conditions.

Ask anything
We've read this whole study set, so questions about it get the best answers.