Software Engineering Introduction


Software Engineering Introduction

Maria
Welcome to our introduction to software engineering. The central idea today is that professional software development is much more than knowing how to code. It includes the whole effort of producing software: understanding what is needed, designing and building it, checking it, and supporting it after people begin using it.

Simon
So this is about the work around the program as well as the program itself. Why does that broader view matter? Because software is increasingly involved in systems people and organizations depend on, and the economies of developed nations rely heavily on software.

Maria
Exactly. Software represents a substantial economic investment, and the cost of software can exceed the cost of the hardware it runs on. In long-lived systems, maintenance can cost several times as much as initial development. That is why software engineering emphasizes developing software cost-effectively over its entire life.

Simon
And it helps explain why a project that seems inexpensive to code can become expensive later. If requirements change or problems appear after release, the software has to be modified. For many systems, the cost of changing software after it goes into use is a major part of the total cost.

Maria
The lecture distinguishes two broad kinds of software product. Generic products are developed for a market and sold to many customers: examples include graphics programs, project-management tools, computer-aided design software, database systems, and operating systems.

Simon
Customized products, by contrast, are commissioned for a particular customer’s needs. Embedded control systems, air-traffic control software, and traffic-monitoring systems are examples. The customer owns the specification of what the system should do and makes decisions about requested changes.

Maria
For a generic product, the developer generally owns the specification and decides how the product changes. That difference affects how development decisions are made: one is shaped for a broader market, while the other is shaped by a specific customer’s requirements.

Simon
Let’s pin down the vocabulary. Software means computer programs together with associated documentation. A software product may be made for one particular customer or developed for the general market.

Maria
And good software has to do more than merely run. It should provide the functionality and performance users require, while also being maintainable, dependable, and usable. We’ll return to those qualities because they are central to evaluating a product.

Simon
Software engineering is an engineering discipline concerned with all aspects of software production. That means it is not synonymous with programming. It covers the practical work from early specification through delivery and continuing maintenance.

Maria
It also differs from computer science. Computer science focuses on theory and fundamentals; software engineering focuses on the practicalities of developing and delivering useful software. The two are related, but they ask different kinds of questions.

Simon
And software engineering is part of the larger discipline of systems engineering. Systems engineering considers the development of computer-based systems as a whole, including hardware, software, and process engineering. Software engineering concentrates on the software part of that broader effort.

Maria
Across projects, four high-level activities recur. First is software specification: customers and engineers define what the software must do and the constraints under which it operates.

Simon
Second is software development, where the software is designed and programmed. Third is validation, checking that the software meets the customer’s requirements. Fourth is evolution: modifying the software as customer and market needs change.

Maria
Those activities help explain what makes the discipline an engineering one. Engineers use appropriate theories and methods to solve problems while considering organizational and financial constraints. The work also includes project management and the development or use of tools and methods—not just the technical act of writing code.

Simon
A managed process can cost less in the long run than treating a system like a personal programming project. A professional process helps teams deal with requirements, testing, coordination, and change. That matters particularly because maintenance and other changes after release often account for a large share of a system’s costs.

Maria
The lecture gives a rough cost breakdown: about 60 percent of software costs are development and about 40 percent are testing. For custom software, evolution costs often exceed development costs. These figures underline that testing and post-release change are not minor afterthoughts.

Simon
There isn’t one universally best development method. Different systems need different techniques. A game can be developed through successive prototypes and versions, where users can help expose bugs; a safety-critical control system needs a complete, analyzable specification and much more rigorous assurance before release.

Maria
That’s the key: match the approach to the consequences of failure and the nature of the system. In a medical device, a faulty or insufficiently tested system could put someone’s life at risk. In a banking system, errors could cause serious financial damage. The acceptable development and testing approach depends on the application.

Simon
Software engineering also faces broad challenges: increasing diversity in the systems and devices software must support, pressure to reduce delivery times, and the need to develop trustworthy software. Those demands make disciplined engineering more important, not less.

Maria
The web has changed how software is delivered and built. It enables software services and highly distributed systems, and web services let applications access functionality over the network. Cloud computing is another way to provide computing services: applications run remotely, and users may pay according to use rather than buying a traditional software copy.

Simon
Web development has also encouraged advances in programming languages and software reuse. A web-based system can draw on existing software components rather than being created entirely from scratch. More broadly, modern systems often combine frameworks, libraries, and other existing components because building every part anew is impractical.

Maria
Web-based systems are often developed and delivered incrementally because it can be impractical to specify every requirement in advance. Their interfaces are also shaped by browser capabilities. The lecture notes that browser technologies can support richer interfaces, while web forms with local scripting have also been commonly used.

Simon
Even though web systems are distributed and can be complex, the same fundamental software-engineering ideas still apply: manage development, understand requirements, validate the result, and plan for evolution. The platform changes; the need for sound engineering does not.

Maria
Let’s unpack the essential product qualities. Maintainability means the software is written so it can evolve to meet changing customer needs. This is crucial because business environments change, and software requirements change with them.

Simon
Dependability includes related qualities such as reliability, security, and safety. Dependable software should not cause physical or economic harm if a failure occurs, and malicious users should not be able to access or damage the system.

Maria
Efficiency is about avoiding wasteful use of resources such as processor time and memory. It includes matters such as responsiveness and processing time. How much emphasis efficiency receives depends on the system and its requirements; it is one of the important qualities to consider, alongside the others.

Simon
Acceptability means the software suits the people who are meant to use it. It should be understandable and usable, and it should work compatibly with other systems those users rely on. A system that technically works but cannot be understood or used appropriately is not a successful product.

Maria
The lecture also describes several broad application types. Stand-alone applications run on a local computer and provide their functionality without needing a network connection. Interactive transaction-based applications run on a remote computer and are accessed from users’ computers or terminals; web-based commerce systems are an example.

Simon
Embedded control systems manage hardware devices. There are many such systems, and the software is closely tied to the equipment it controls. Their requirements can be very different from those of a desktop application.

Maria
Other categories include batch-processing systems, which process large numbers of individual inputs in batches to produce outputs; entertainment systems, intended primarily for personal use and enjoyment; and modeling and simulation systems, used by scientists and engineers to represent physical processes or situations with many interacting objects.

Simon
Data-collection systems gather information from their environment using sensors and send it to other systems for processing. Systems of systems are made up of several other software systems. These categories show why software engineering methods have to be chosen with the particular application in mind.

Maria
Three fundamentals apply across software types. First, systems should be developed through a managed, understood process. Second, dependability and performance matter across system types. Third, teams must understand and manage software specifications and requirements—what the software is supposed to do.

Simon
And a fourth principle is to reuse software when appropriate rather than repeatedly rebuilding what already exists. Reuse can save time and make use of components that have already been exercised and checked. It still needs to be appropriate to the system and its requirements.

Maria
The methods and tools a team chooses depend on the application, the customer’s requirements, and the development team’s background. There is no single toolkit that fits every project. The variety of software systems is one reason professional judgment matters.

Simon
Now let’s turn to professional responsibility. Software engineers have responsibilities beyond applying technical skills. To be respected as professionals, they need to act honestly and ethically. Ethical behavior goes beyond obeying the law; it also means following morally responsible principles.

Maria
The lecture names four practical responsibility areas. Confidentiality means normally respecting information from employers or clients, whether or not a formal confidentiality agreement has been signed. Competence means being honest about what you can do and not knowingly accepting work outside your capabilities.

Simon
Intellectual property rights matter too. Engineers should know the applicable laws around patents, copyright, and other intellectual property, and take care to protect the rights of employers and clients. Computer misuse is another concern: technical skills should not be used to misuse someone else’s computer, whether the behavior is relatively minor or extremely serious, like spreading viruses.

Maria
The ACM and IEEE computer societies developed a joint Software Engineering Code of Ethics and Professional Practice. It applies broadly—not only to practitioners, but also to educators, managers, supervisors, policymakers, trainees, and students.

Simon
Why have a code? Software is central to areas such as commerce, government, medicine, education, and entertainment. People who analyze, specify, design, develop, test, certify, and maintain software can do good or cause harm, and can influence others to do either. The code is intended to help make software engineering a beneficial and respected profession.

Maria
The code’s preamble connects its high-level aspirations with detailed guidance. Aspirations without examples can sound empty, while details without broader principles can become legalistic. Together, the two levels help professionals understand both the goals and how those goals should shape decisions.

Simon
There are eight principles. The first is public: act consistently with the public interest. The second is client and employer: serve their best interests, but consistently with the public interest. Third is product: aim for the highest professional standards in products and their modifications.

Maria
Fourth is judgment: maintain integrity and independence in professional judgment. Fifth is management: software engineering leaders should support and promote ethical management of development and maintenance. Sixth is profession: advance the profession’s integrity and reputation in a way consistent with the public interest.

Simon
Seventh is colleagues: be fair to and supportive of colleagues. Eighth is self: continue learning throughout your professional life and promote ethical practice. Together, these principles show that professional responsibility includes relationships with the public, clients, teams, the profession, and oneself.

Maria
Ethical dilemmas arise when principles conflict or when pressure makes the right course difficult. The lecture gives examples: disagreeing with senior management’s policies, being involved when an employer releases a safety-critical system before testing is complete, or participating in the development of military weapons or nuclear systems.

Simon
Those situations don’t always have an easy answer. But the code and the broader responsibilities of the profession provide a framework for thinking beyond immediate technical tasks and considering consequences for people and society.

Maria
The lecture introduces three case studies that return in later material: an insulin-pump control system, a mental-health-care patient management system, and a wilderness weather station. They are quite different, which makes them useful for seeing how requirements and risks vary.

Simon
The insulin pump is an embedded safety-critical system. It reads blood sugar measurements and calculates how much insulin to deliver, based on the level and rate of change. It then signals a micro-pump to deliver a dose, and relevant information can be logged.

Maria
The stakes are high. Blood sugar that is too low can lead to brain malfunction, coma, and death; persistently high levels can cause long-term damage, including to the eyes and kidneys. So the system must be designed and implemented to deliver the correct dose reliably when it is needed.

Simon
The lecture sketches hardware components such as an insulin reservoir, needle assembly, sensor, pump, controller, clock, alarm, and display. It also presents an activity sequence: read and analyze sensor data, compute the required amount, decide on a dose, command the pump, and log information about delivery.

Maria
Its high-level requirements are concise but demanding: it must be available to deliver insulin when required, and it must operate reliably and deliver the correct amount to counteract the current blood sugar level. Those requirements must shape the design and the evidence needed before the system is used.

Simon
The second case is the Mental Health Care Patient Management System, or MHC-PMS. It maintains information about patients with mental health problems and the treatments they have received. Many patients attend specialist clinics regularly rather than needing dedicated hospital treatment, and clinics may be located in hospitals, local practices, or community centers.

Maria
The MHC-PMS uses a centralized patient database but is designed to run on a PC at sites without secure network connectivity. When a secure connection is available, local systems use the central information; when disconnected, they can download and use local copies of patient records. In other words, it supports both connected and offline work.

Simon
It has two broad goals: provide medical staff with timely information to support patient treatment, and generate management information so health-service managers can assess performance against local and government targets. The system therefore serves clinical and administrative needs.

Maria
For individual care management, clinicians can create and edit patient records, view histories, and use summaries to quickly understand key problems and prescribed treatments. For patient monitoring, the system watches records for patients receiving treatment and issues warnings when it detects possible problems.

Simon
For administrative reporting, it can produce monthly information such as how many patients each clinic treated, how many entered or left the care system, and what drugs were prescribed and at what cost. Those statistics can help administrators understand how services are operating.

Maria
Its concerns include privacy: patient information should be confidential and disclosed only to authorized medical staff and the patient. Safety matters too. Some mental illnesses can make a patient suicidal or dangerous to others, so the system should warn medical staff about potential risks where possible.

Simon
Availability is also connected to safety in this case. If the system is unavailable when needed, staff may be unable to prescribe the correct medication. So, even though the MHC-PMS is not described as a safety-critical control system like the pump, its failures can still have serious consequences.

Maria
The third case is a wilderness weather station. A government plans to deploy hundreds of stations in remote areas. Instruments measure conditions such as temperature, pressure, sunshine, rainfall, wind speed, and wind direction, and software periodically reads and manages the collected data.

Simon
The wider weather information system has three parts. The station system collects weather data, performs initial processing, and transmits it. The data-management and archiving system gathers information from stations, processes and analyzes it, and stores it.

Maria
The station-maintenance system communicates by satellite with remote stations to monitor their health and report problems. The software also has to monitor instruments, power, and communications hardware, and report faults to the management system.

Simon
Power management is another requirement: batteries should be charged when environmental conditions permit, while generators should be shut down in potentially damaging conditions such as high winds. The system must also support dynamic reconfiguration—for example, replacing software with new versions or switching to backup instruments if something fails.

Maria
That example makes the larger engineering point visible. A weather station is not simply a data-collection program. The team has to consider remote communication, power, hardware faults, backups, data management, and how the system can be maintained in the field.

Simon
Across all three case studies, requirements reflect the context: precise and safe dosing for the insulin pump, confidentiality and clinical support for the MHC-PMS, and robust collection and maintenance for remote weather stations. That’s why the same basic engineering principles are applied differently in different systems.

Maria
One final practical point from the lecture is collaboration and software configuration. Code-management services such as GitHub let developers coordinate work on shared software, including open-source projects, and tools such as Git Bash can be used to synchronize work with a remote repository.

Simon
So the main message is that software engineering is a professional discipline, not just coding. It combines managed development, appropriate methods, requirements, validation, evolution, product qualities, teamwork, and ethical responsibility.

Maria
And the fundamentals apply broadly, even though specific techniques differ by system. Build software that meets its requirements, can be maintained, is dependable and acceptable, uses resources appropriately, and is developed with its users and wider consequences in mind.

Simon
That’s our introduction: understand the system before building it, choose methods suited to its risks and needs, and remember that the work continues after release. Those habits are what help turn programming into professional software engineering.

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