Software Engineering Lec#1&2 PDF

Summary

This document provides an introduction to software engineering and its significance in various aspects of modern life, highlighting its importance in addressing complex challenges.The document presents the fundamental concepts related to software engineering and notes its crucial role in modern societies, which includes the functioning of government, society, businesses, and entertainment. It also shows how software engineering is needed to deal with the expanding world.

Full Transcript

# Chapter 1: Introduction ## Objectives - Understand what software engineering is and why it is important - Understand that the development of different types of software systems may require different software engineering techniques. - Understand ethical and professional issues that are important...

# Chapter 1: Introduction ## Objectives - Understand what software engineering is and why it is important - Understand that the development of different types of software systems may require different software engineering techniques. - Understand ethical and professional issues that are important for software engineers. - Have been introduced to four systems of different types, which are used as examples throughout the book. ## Contents 1.1 Professional software development 1.2 Software engineering ethics 1.3 Case studies ## Software Engineering is Essential Software engineering is essential for the functioning of government, society, and national and international businesses and institutions. We can't run the modern world without software. - National infrastructures and utilities are controlled by computer-based systems. - Most electrical products include a computer and controlling software. - Industrial manufacturing and distribution are completely computerized, as is the financial system. - Entertainment, including the music industry, computer games, and film and television, is software-intensive. - More than 75% of the world's population have a software-controlled mobile phone, and, by 2016, almost all of these will be internet-enabled. Software systems are abstract and intangible. - They are not constrained by properties of materials. - They are not governed by physical laws or by manufacturing processes. This **simplifies** software engineering, for there are no natural limits to the potential of software. However, because of the lack of physical constraints, software systems can quickly become extremely complex, difficult to understand, and expensive to change. ## Software Engineering Complexity There are many different types of software system, ranging from simple embedded systems to complex, worldwide information systems. There are no universal notations, methods, or techniques for software engineering because different types of software require different approaches. - Developing an organizational information system is completely different from developing a controller for a scientific instrument. - Neither of these systems has much in common with a graphics-intensive computer game. - All of these applications need software engineering; they do not all need the same software engineering methods and techniques. There are still many reports of software projects going wrong and of “software failures." Software engineering is criticized as inadequate for modern software development. However, in my opinion, many of these so-called software failures are a consequence of two factors: 1. **Increasing system complexity** As new software engineering techniques help us to build larger, more complex systems, the demands change. - Systems have to be built and delivered more quickly; - Larger, even more complex systems are required; - Systems have to have new capabilities that were previously thought to be impossible. - New software engineering techniques have to be developed to meet the challenges of delivering more complex software. 2. **Failure to use software engineering methods** It is fairly easy to write computer programs without using software engineering methods and techniques. - Many companies have drifted into software development as their products and services have evolved. - They do not use software engineering methods in their everyday work. - Consequently, their software is often more expensive and less reliable than it should be. - We need better software engineering education and training to address this problem. ## Software Engineering Achievements Software engineers can be rightly proud of their achievements. Of course, we still have problems developing complex software, but without software engineering we would not have the following: - Explored space - The internet - Modern telecommunications - All forms of travel would be more dangerous and expensive. ## Challenges of the 21st Century Challenges for humanity in the 21st century are: - Climate change - Fewer natural resources - Changing demographics - An expanding world population. ## Software Engineering's Role We will rely on software engineering to develop the systems that we need to cope with these issues. A common misconception is that “Software is just a computer program." However, when we’re talking about software engineering, software is not just the programs themselves but also all associated documentation, libraries, support websites, and configuration data that are needed to make these programs useful. A professionally developed software system is often more than a single program: - A system may consist of several separate programs and configuration files. - This includes system documentation, which describes the structure of the system, user documentation, which explains how to use the system, and websites for users to download recent product information. ## Professional vs. Amateur Software Development The difference between professional and amateur software development is that if you are writing a program for yourself, no one else will use it. Thus, you don't have to worry about writing program guides, documenting the program design, and so on. However, if you are writing software that other people will use and other engineers will change, then you usually have to provide additional information as well as the code of the program. ## Software Products Software engineers are concerned with developing software products, that is, software that can be sold to a customer. There are two kinds of software product: 1. **Generic products** These are stand-alone systems that are produced by a development organization and sold on the open market to any customer who is able to buy them. Examples of this type of product include apps for mobile devices, software for PC's such as databases, word processors, drawing packages, and project management tools. This kind of software also includes "vertical" applications designed for a specific market such as library information systems, accounting systems, or systems for maintaining dental records. 2. **Customized (or bespoke) software** These are systems that are commissioned by and developed for a particular customer. A software contractor designs and implements the software especially for that customer. Examples of this type of software include control systems for electronic devices, systems written to support a particular business process, and air traffic control systems. ## Quality of Professional Software The critical distinction between these types of software is that, in generic products, the organization that develops the software controls the software specification. This means that if they run into development problems, they can rethink what is to be developed. For custom products, the specification is developed and controlled by the organization that is buying the software. The software developers must work to that specification. However, the distinction between these system product types is becoming increasingly blurred. More and more systems are now being built with a generic product as a base, which is then adapted to suit the requirements of a customer. Enterprise Resource Planning (ERP) systems, such as systems from SAP and Oracle, are the best examples of this approach. Here, a large and complex system is adapted for a company by incorporating information about business rules and processes, reports required, and so on. When we talk about the quality of professional software, we have to consider that the software is used and changed by people apart from its developers. Quality is therefore not just concerned with what the software does. Rather, it has to include the software’s behavior while it is executing and the structure and organization of the system programs and associated documentation. This is reflected in the software’s quality or non-functional attributes. Examples of these attributes are the software’s response time to a user query and the understandability of the program code. The specific set of attributes that you might expect from a software system obviously depends on its application: - An aircraft control system must be safe. - An interactive game must be responsive. - A telephone switching system must be reliable, and so on. These attributes can be generalized into the set of attributes shown in fig 1.2, which I think are the essential characteristics of a professional software system. ## Software Engineering Software engineering is an engineering discipline that is concerned with all aspects of software production from the early stages of system specification through to maintaining the system after it has gone into use. In this definition, there are two key phrases: 1. **Engineering discipline** Engineers make things work. They apply theories, methods, and tools where these are appropriate. However, they use them selectively and always try to discover solutions to problems even when there are no applicable theories and methods. Engineers also recognize that they must work within organizational and financial constraints, and they must look for solutions within these constraints. 2. **All aspects of software production** Software engineering is not just concerned with the technical processes of software development. It also includes activities such as software project management and the development of tools, methods, and theories to support software development. ## Engineering vs. Software Engineering Engineering is about getting results of the required quality within schedule and budget. This often involves making compromises-engineers cannot be perfectionists. People writing programs for themselves, however, can spend as much time as they wish on the program development. In general, software engineers adopt a systematic and organized approach to their work, as this is often the most effective way to produce high-quality software. However, engineering is all about selecting the most appropriate method for a set of circumstances, so a more creative, less formal approach to development may be the right one for some kinds of software. A more flexible software process that accommodates rapid change is particularly appropriate for the development of interactive web-based systems and mobile apps, which require a blend of software and graphical design skills. There are two reasons software engineering is important: 1. More and more, individuals and society rely on advanced software systems. We need to be able to produce reliable and trustworthy systems economically and quickly. 2. It is usually cheaper, in the long run, to use software engineering methods and techniques for professional software systems rather than just write programs as a personal programming project. Failure to use software engineering method leads to higher costs for testing, quality assurance, and long-term maintenance. ## The Software Process The systematic approach that is used in software engineering is sometimes called a software process. A software process is a sequence of activities that leads to the production of a software product. The following four fundamental activities are common to all software processes: 1. **Software specification**, where customers and engineers define the software that is to be produced and the constraints on its operation. 2. **Software development**, where the software is designed and programmed. 3. **Software validation**, where the software is checked to ensure that it is what the customer requires. 4. **Software evolution**, where the software is modified to reflect changing customer and market requirements. ## Difference Between Software Development Processes Different types of systems need different development processes. For example, real-time software in an aircraft has to be completely specified before development begins. In e-commerce systems, the specification and the program are usually developed together. Consequently, these generic activities may be organized in different ways and described at different levels of detail, depending on the type of software being developed. ## Connection to Computer Science and Systems Engineering Software engineering is related to both computer science and systems engineering: 1. **Computer science** is concerned with the theories and methods that underlie computers and software systems, whereas software engineering is concerned with the practical problems of producing software. Some knowledge of computer science is essential for software engineers in the same way that some knowledge of physics is essential for electrical engineers. Computer science theory, however, is often most applicable to relatively small programs. Elegant theories of computer science are rarely relevant to large, complex problems that require a software solution. 2. **Systems engineering** is concerned with all aspects of the development and evolution of complex systems where software plays a major role. System engineering is therefore concerned with hardware development, policy and process design, and system deployment, as well as software engineering. System engineers are involved in specifying the system, defining its overall architecture, and then integrating the different parts to create the finished system. ## Four Issues Affecting Many Different Systems As I discuss in the next section, there are many different types of software. There are no universal software engineering methods or techniques that may be used. However, there are four related issues that affect many different types of software: 1. **Heterogeneity** Increasingly, systems are required to operate as distributed systems across networks that include different types of computers and mobile devices. As well as running on general-purpose computers, software may also have to execute on mobile phones and tablets. You often have to integrate new software with older legacy systems written in different programming languages. The challenge here is to develop techniques for building dependable software that is flexible enough to cope with this heterogeneity. 2. **Business and social change** Businesses and society are changing incredibly quickly as emerging economies develop and new technologies become available. They need to be able to change their existing software and to rapidly develop new software. Many traditional software engineering techniques are time consuming, and delivery of new systems often takes longer than planned. They need to evolve so that the time required for software to deliver value to its customers is reduced. 3. **Security and trust** As software is intertwined with all aspects of our lives, it is essential that we can trust that software. This is especially true for remote software systems accessed through a web page or web service interface. We have to make sure that malicious users cannot successfully attack our software and that information security is maintained. 4. **Scale** Software has to be developed across a very wide range of scales, from very small embedded systems in portable or wearable devices through to Internet-scale, cloud-based systems that serve a global community. ## Diversity of Software Engineering To address these challenges, we will need new tools and techniques as well as innovative ways of combining and using existing software engineering methods. Software engineering is a systematic approach to the production of software that takes into account practical cost, schedule, and dependability issues, as well as the needs of software customers and producers. The specific methods, tools, and techniques used depend on the organization developing the software, the type of software, and the people involved in the development process. There are no universal software engineering methods that are suitable for all systems and all companies. Rather, a diverse set of software engineering methods and tools has evolved over the past 50 years. However, the SEMAT initiative (Jacobson et al. 2013) proposes that there can be a fundamental meta-process that can be instantiated to create different kinds of process. This is at an early stage of development and may be a basis for improving our current software engineering methods. ## The Type of Application is Important Perhaps the most significant factor in determining which software engineering methods and techniques are most important is the type of application being developed. There are many different types of application, including: 1. **Stand-alone applications** These are application systems that run on a personal computer or apps that run on a mobile device. They include all necessary functionality and may not need to be connected to a network. Examples of such applications are office applications on a PC, CAD programs, photo manipulation software, travel apps, productivity apps, and so on. 2. **Interactive transaction-based applications** These are applications that execute on a remote computer and that are accessed by users from their own computers, phones, or tablets. Obviously, these include web applications such as e-commerce applications where you interact with a remote system to buy goods and services. This class of application also includes business systems, where a business provides access to its systems through a web browser or special-purpose client program and cloud-based services, such as mail and photo sharing. Interactive applications often incorporate a large data store that is accessed and updated in each transaction. 3. **Embedded control systems** These are software control systems that control and manage hardware devices. Numerically, there are probably more embedded systems than any other type of system. Examples of embedded systems include the software in a mobile (cell) phone, software that controls antilock braking in a car, and software in a microwave oven to control the cooking process. 4. **Batch processing systems** These are business systems that are designed to process data in large batches. They process large numbers of individual inputs to create corresponding outputs. Examples of batch systems are periodic billing systems, such as phone billing systems, and salary payment systems. 5. **Entertainment systems** These are systems for personal use that are intended to entertain the user. Most of these systems are games of one kind or another, which may run on special-purpose console hardware. The quality of the user interaction offered is the most important distinguishing characteristic of entertainment systems. 6. **Systems for modeling and simulation** These are systems that are developed by scientists and engineers to model physical processes or situations, which include many separate, interacting objects. These are often computationally intensive and require high-performance parallel systems for execution. 7. **Data collection and analysis systems** Data collection systems are systems that collect data from their environment and send that data to other systems for processing. The software may have to interact with sensors and often is installed in a hostile environment such as inside an engine or in a remote location. “Big data” analysis may involve cloud-based systems carrying out statistical analysis and looking for relationships in the collected data. 8. **Systems of systems** These are systems, used in enterprises and other large organizations, that are composed of a number of other software systems. Some of these may be generic software products, such as an ERP system. Other systems in the assembly may be specially written for that environment. ## Blending System Types Of course, the boundaries between these system types are blurred. If you develop a game for a phone, you have to take into account the same constraints (power, hardware interaction) as the developers of the phone software. Batch processing systems are often used in conjunction with web-based transaction systems. For example, in a company, travel expense claims may be submitted through a web application but processed in a batch application for monthly payment. Each type of system requires specialized software engineering techniques because the software has different characteristics. For example, an embedded control system in an automobile is safety-critical and is burned into ROM (read-only memory) when installed in the vehicle. It is therefore very expensive to change. Such a system needs extensive verification and validation so that the chances of having to recall cars after sale to fix software problems are minimized. User interaction is minimal (or perhaps nonexistent), so there is no need to use a development process that relies on user interface prototyping. For an interactive web-based system or app, iterative development and delivery is the best approach, with the system being composed of reusable components. However, such an approach may be impractical for a system of systems, where detailed specifications of the system interactions have to be specified in advance so that each system can be separately developed. Nevertheless, there are software engineering fundamentals that apply to all types of software systems: 1. They should be developed using a managed and understood development process. The organization developing the software should plan the development process and have clear ideas of what will be produced and when it will be completed. Of course, the specific process that you should use depends on the type of software that you are developing. 2. Dependability and performance are important for all types of system. Software should behave as expected, without failures, and should be available for use when it is required. It should be safe in its operation and, as far as possible, should be secure against external attack. The system should perform efficiently and should not waste resources. 3. Understanding and managing the software specification and requirements (what the software should do) are important. You have to know what different customers and users of the system expect from it, and you have to manage their expectations so that a useful system can be delivered within budget and to schedule. 4. You should make effective use of existing resources. This means that where appropriate, you should reuse software that has already been developed rather than write new software. These fundamental notions of process, dependability, requirements, management, and reuse are important themes of this book. Different methods reflect them in different ways, but they underlie all professional software development.

Use Quizgecko on...
Browser
Browser