Software Engineering Introduction
Transcript
Hello, dear students. Welcome to the Lecture 1 of Software Engineering course. I will be using Ian Somerville 9th Edition lecture slides and I won’t be mostly don't touch their slides. So in this course what we are going to learn is
Professional Software Development. What is meant by software engineering? So, what truly means software engineering? Is it just about knowing how to program? Knowing coding? Is it just about being a coder and being a web designer? No. Software Engineering means much more than just a being a programmer. We will learn that. What we are going to learn in this course will help you tremendously in your professional life, especially if you work with a
professional big company. A corporate company. Believe me, you will you will have great easiness if you take this course too seriously and learn what is taught in this lesson? Software engineering ethics. A brief introduction to ethical issues that affect software engineering. Case studies. An introduction to 3 examples that are used in later chapters in the book. Okay, case studies is not that important. Okay, so software engineering.
The economies of all developed nations are dependent on software. More and more systems or software controlled. Software engineering is concerned with theories, methods, and tools for professional software development. Expenditure on software represents a significant fraction of gross national product GNP in all developed countries. Yes, as you know that already just the value of Facebook and Google probably is more than all of the companies in our country. So, software is the future.
Software costs often dominate computer system costs. The cost of software on a PC or often greater than the hardware cost. Software costs more to maintain than it is to develop. For systems with a long life, maintenance costs may be several times development costs. Software engineering is concerned with cost-effective software development. This is also so true. After you deliver it your software maintenance of it. Sometimes, maybe usually cost more than the developing that software. Moreover, software almost always costs more than the hardware itself.
Think about MSSQL Server. MSSQL license costs many times more than the hardware that it's running on. Software products. Generic products. Stand-alone systems that are marketed and sold to any customer who wishes to buy them. Examples: PC software such as Graphics programs, project management tools; computer-aided design (CAD) software; software for specific markets such as appointment systems for dentists. For example, Photoshop is a generic Graphics program, or MSSQL Server a generic database management program. Or a Windows 10 a generic operating system software. These are all generic products to Sold millions of customers.
Customized products software that is commissioned by a specific customer to meet their own needs. Examples, embedded Control Systems, Air Traffic Control software, traffic monitoring systems. Customized products always costs more because you can sell it to the many people thus you cannot reduce price and so yes customized products always cost more. Product specification Generic products the specification of what the software should do as owned by the software developer and decisions on software change are made by the developer. Customized products The specification of what the software should do as owned by the customer for the software and they make decisions on software changes that are required.
Okay. Frequently asked questions about software engineering. What is software? Computer programs and associated documentation. Software products may be developed for a particular customer or may be developed for a general market. What are the attributes of good software? Good software should deliver the required functionality and performance to the user and should be maintainable, dependable and usable.
What is software engineering? Software engineering is an engineering discipline that has concerned with all aspects of software production. Not just coding or not just doing the job. Okay? What are the fundamental software engineering activities? Software specification, software development, software validation, and software evolution.
What is the difference between software engineering and computer science? Computer science focuses on theory and fundamentals; software engineering is concerned with the practicalities of developing and delivering useful software. So, this is important. What is the difference between software engineering and computer science? Let's listen again. Computer science focuses on theory and fundamentals; software engineering is concerned with the practicalities of developing and delivering useful software. So, actually, software engineering is more useful in the daily life when you get a job. Okay. So it's more focuses on the practical usage of software development. What is the difference between software engineering and system engineering? System engineering is
concerned with all aspects of computer-based systems development including Hardware, software, and process engineering. Software engineering is part of this more general process. Frequently asked questions about software engineering. Okay more questions and answers. What are the key challenges facing software engineering? Coping with increasing diversity, demands for reduced delivery times and developing trustworthy software.
What are the costs of software engineering? Roughly 60% of software costs are development costs, 40% are testing costs. For custom software, evolution costs often exceed development costs. What are the best software engineering techniques and methods? While all software projects have to be professionally managed and developed, different techniques are appropriate for different types of system. For example, games should always be developed using a series of prototypes were as safety-critical control systems require a complete and analyzable specification to be developed. You can't, therefore, say that one method is better than another.
Yes, for games, you can open a pre-beta, beta, and omega versions or alpha versions and the errors are not critical for games. However, if you are developing a critical software system, let's say, for example, you are developing a software for MR (Magnetic Resonance) devices that is running on patients, you can't have not-completed, not truly tested software. Because, it may be hazardous for life. It may cost life or you are let's say developing a software for banks. You can't have a not-completed software. It may cost millions, billions of dollars. Okay, so methods differs for different type of software. For games, it is perfectly fine to open beta, alpha versions, and let's the clients,
the users, the gamers to find out bugs and you fix them. So it changes. What differences has the web made to software engineering? The web has led to the availability of software services and the possibility of developing highly distributed service-based systems. Web-based systems development has led to important advances in programming languages and software reuse. Definitely. For example, let's take into the account that Code Management systems such as GitHub. With GitHub, tens of, hundreds of, thousands of developers can work
around the world on the same software and contribute to the open-source development. And there are limitless number of new opportunities with the web. Essential attributes of good software. Maintainability: Software should be written in such a way so that it can evolve to meet the changing needs of customers. This is a critical attribute because software change as an inevitable requirement of a changing business environment. This is so true. Your software should be able to updateable, and maintainable.
Dependability and security: Software dependability includes a range of characteristics including reliability, security, and safety. Dependable software should not cause physical or economic damage in the event of system failure. Malicious users should not be able to access or damage the system. Yeah, try to understand this because this is extremely important. Let's read again. Software dependability includes a range of characteristics including reliability, security, and safety. Dependable software should not cause physical or economic damage in the event of system failure. Malicious users should not be able to access or damage the system. So in many cases your software it has to be dependable. So you need to be careful of all of this. Efficiency:
Software should not make wasteful use of system resources such as memory and processor cycles. Efficiency, therefore, includes responsiveness, processing time, memory utilization, etc. In most cases. Let's say in client base software, this is at the moment the least important factor. Because the hardware becomes much more powerful for single-user applications. Efficiency can always be improved after the delivery. And so I would say this is the least important one. Dependability is the most important one. Maintainability is also second most important one. And acceptability:
Software must be acceptable to the type of users for which it is designed. This means that it must be understandable, usable, and compatible with other systems that they use. And this is the third important one. Yes. It must be easy to use. It must have a good user interface or good documentation. This is also very, it is also important, but not important as these two. Okay. Software engineering: Software engineering as 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. So, you'll see a software engineer thinks about all of the aspects, not just coding, not just developing.
Not just producing a software that doesn't think about, don't think about other aspects of development. We will see what does this mean with the future lessons. Engineering discipline: Using appropriate theories and methods to solve problems bearing in mind organizational and financial constraints. All aspects of software production: Not just technical process of development. Also project management and the development of tools, methods, etc. to support software production. Yes. Importance of software engineering:
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. It is usually cheaper, in the long run, to use software engineering methods and techniques for software systems rather than just write the programs as if it was a personal programming project. For most types of system, the majority of costs are the costs of changing the software after it has gone into you. This is so true. I also experienced this myself for my personal projects and programs believe me. This is so true. So let's read this again.
It is usually cheaper, in the long run, to use software engineering methods and techniques for software systems rather than just write the programs as if it was a personal programming project. For most types of system, the majority of costs are the costs of changing the software after it has gone into use. This also separates a programmer, a coder from a software engineer. In this era, you have to be a software engineer to be wanted programmer, not just a simple programmer or a coder. It will make a difference. Software process activities:
Software specification, where customers and engineers define the software that has to be produced in the constraints on its operation. Software development, where the software is designed and programmed. Software validation, where the software is checked to ensure that it has what the customer requires. Software evolution, where the software is modified to reflect changing customer and market requirements. So, software engineering separates software into the four processes, into the four stages. Software specification, software development, software validation, and software evolution as we can see, okay. General issues that affect most software: Heterogeneity:
increasingly systems are required to operate as distributed systems across networks that include different types of computer and mobile devices. Business and social change: Business 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. Security and trust: As software is intertwined with all aspects of our lives, it is essential that we can trust that software. Software engineering diversity:
There are many different types of software system and there is no universal set of software techniques that is applicable to all of these. The software engineering methods and tools used depend on the type of application being developed, the requirements of the customer, and the background of the development team. Yes, this is so true. Let's read it again. This is important. The software engineering methods and tools used depend on the type of application being developed, the requirements of the customer, and the background of the development team. So you have to be careful about which type of software you are developing and choose the proper methods and tools for that application types. Okay, Stand-alone applications:
These are application systems that run on a local computer such as a PC. They include all necessary functionality and do not need to be connected to a network. Okay. Interactive transaction-based applications: Applications that execute on a remote computer and are accessed by users from their own PCs or terminals. These include web applications such as e-commerce applications. And, 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. I will say currently most of the applications are either interactive transaction-based applications or
stand-alone applications that accesses to remote computers to execute the core functions. Such as online games and server-based applications. For example, even to run Photoshop on your computer, even though it is a stand-alone application, it has to connect its server, and also it provides many features that you can do with its remote servers. So it's a mixed of both. Okay, Application types. We continue.
Embedded Control Systems: This is a rare area and in Turkey doesn't have much of, it doesn't have much job opportunities. But, if you get into a manufacturing factory of embedded control systems, of course, it is still mandatory. Application types: 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. Entertainment systems:
These are systems that are primarily for personal use in which are intended to entertain the user. 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. Okay, some of the application types. Data collection systems. These are systems that collect data from their environment using a set of sensors and send that data to other systems for processing. And Systems of systems: These are systems that are composed of a number of other software systems. Okay, Software engineering fundamentals. This is really important. Some fundamental principles apply to all types of software system, irrespective of the development techniques used: Ok let's read them.
System should be developed using a managed and understood development process. Of course, different processes are used for different types of software. Dependability and performance are important for all types of system. Understanding and managing the software specification and requirements (what the software should do) are important. Where appropriate, you should reuse software that has already been developed rather than write new software. This is a core
concept for being useful in software development. You should reuse software, especially open source software that is checked and validated many times by many other users. Not, not try to invent the wheel again and again. Okay? This will make your software more dependable, better, more robust, more effective, more efficient. And it will save your a lot of time.
Software engineering and the web: The web is now a platform for running application and organizations are increasingly developing web-based systems rather than local systems. Web services (discussed in chapter 19) allow application functionality to be accessed over the web. Cloud computing as an approach to the provision of computer services where applications run remotely on the 'cloud'. Users do not buy software buy pay according to use. Yes, this is the most commonly used service type at the moment.
For example, for reading this text to speech I am using premium service of Google Cloud. Google Cloud text-to-speech API. I have subscribed to them. It is normally paid but they give you some free credits. Currently I am using free credits. So this is the future of the software development, cloud computing. Web services also very similar to cloud computing.
So, we can say the future is the web. Web software engineering. We continue. Software reuse as the dominant approach for constructing web-based systems. When building these systems, you think about how you can assemble them from pre-existing software components and systems. Actually this is not dominant approach for only web-based, but all systems. Because it is extremely hard to in today world to build something from scratch.
In, in today's world, software are so advanced, so attractive, so complex, so that it is very very hard to develop from scratch it. They are usually composed from existing frameworks, existing libraries, and utilizing what is already there. This is very important.
Web-based system should be developed and delivered incrementally. It is now generally recognized that it is impractical to specify all the requirements for such systems in advance. Yes, you constantly update your web service or web system. It is easy to update also. User interfaces are constrained by the capabilities of web browsers. Technologies such as AJAX allow rich interface has to be created within a web browser but are still difficult to use. Web forms with local scripting are more commonly used. Actually, this is pretty much changing with your recent advances in asynchronous programming technologies. Web-based software engineering: Okay, Continue.
Web-based systems are complex distributed systems but the fundamental principles of software engineering discussed previously or is applicable to them as they are to any other types of system. The fundamental ideas of software engineering, discussed in the previous section, apply the web-based software in the same way that they apply to other types of software system. Yeah. This is, this is true. Key points: Okay. Software engineering has an engineering discipline that has concerned with all aspects of software production. Essential software product attributes are maintainability, dependability and security, efficiency and acceptability. The high-level activities of specification, development, validation and evolution are part of all software processes. The fundamental notions of software engineering are universally applicable to all types of
system development. Okay. All these key points are so true. Let's read them again. Software engineering has an engineering discipline that is concerned with all aspects of software production. Essential software product attributes are maintainability, dependability and security, efficiency and acceptability. The high-level activities of specification, development, validation and evolution are part of all software processes. The fundamental notions of software engineering are universally applicable to all types of system development.
Okay, two more key points. There are many different types of system and each requires appropriate software engineering tools and techniques for their development. The fundamental ideas of software engineering are applicable to all types of software system. Okay, let's read again to. There are many different types of system and each requires appropriate software engineering tools and techniques for their development. The fundamental ideas of software engineering are applicable to all types of software system. Okay, let's continue to Lecture 2.
Okay, so this is Lecture 2 of the slides but we are in still Lecture 1 of our courses. Our course. Okay software engineering ethics: Software engineering ethics. Let's read them. Software engineering involves wider responsibilities than simply the application of technical skills. Software engineers must behave in an honest and ethically responsible way if they are to be respected as professionals. Ethical behavior is more than simply upholding the law but involves following a set of principles that are morally correct. We already have to abide the law. However, to be ethical software developer. We have to follow the principles that are morally correct.
Okay, Issues of professional responsibility: First, Confidentiality, okay. Engineers should normally respect the confidentiality of their employers or clients irrespective of whether or not a formal confidentiality agreement has been signed. Okay, Competence. Engineers should not misrepresent their level of competence. They should not knowingly accept work, which is outwith their competence. Okay.
Intellectual property rights: Engineers should be aware of local laws governing the use of intellectual property such as patents, copyright, etc. They should be careful to ensure that the intellectual property of employers and clients is protected. Computer misuse: Software engineers should not use their technical skills to misuse other people's computers. Computer misuse ranges from relatively trivial (game playing on an employer's machine, say) to extremely serious (dissemination of viruses). Okay.
ACM (Association for Computing Machinery) IEEE (Institute of Electrical and Electronics Engineers) Code of ethics. Okay. The professional societies in the US have cooperated to produce a code of ethical practice. Members of these organizations sign up to the code of practice when they join. The code contains eight principles related to the behavior of and decisions made by professional software engineers, including practitioners, educators, managers supervisors, and policymakers as well as trainees and students of the profession.
Okay, let's see the code of ethics. Rationale for the code of ethics: Computers have a central and growing role in commerce, industry, government, medicine, education, entertainment, and society at large. Software engineers are those who contribute by direct participation or by teaching to the analysis, specification, design, development, certification, maintenance, and testing of software systems.
Because of their roles in developing software systems, software engineers have significant opportunities to do good or cause harm, to enable others to do good or cause harm, or to influence others to do good or cause harm. To ensure, as much as possible, that their efforts will be used for good, software engineers must commit themselves to making software engineering a beneficial and respected profession. Okay.
The ACM/IEEE code of ethics. Software Engineering Code of Ethics and Professional Practice: ACM/IEEE-CS Joint Task Force on Software Engineering Ethics and Professional Practices Preamble: The short version of the code summarizes aspirations at a high level of the abstraction; the clauses that are included in the full version give examples and details of how these aspirations change the way we act as software engineering professionals. Without the aspirations, the details can become legalistic and tedious; without the details, the aspirations can become high-sounding but empty; together, the aspirations and the details form a cohesive code.
Software engineers shall commit themselves to making the analysis, specification, design, development, testing, and maintenance of software a beneficial and respected profession. In accordance with their commitment to the health, safety, and welfare of the public, software engineers shall adhere to the following 8 principles. Okay.
Okay, so ethical principles, let's see the 8 code. 1) Public: Software Engineers shall act consistently with the public interest. 2) Client and employer: Software Engineers shall act in a manner that is in the best interests of their client and employer consistent with the public interest. 3) Product: Software Engineers shall ensure that their products and related modifications meet the highest professional standards possible. 4) Judgement:
Software engineers shall maintain integrity and independence in their professional judgment. 5) Management: Software engineering managers and leaders shall subscribe to and promote an ethical approach to the management of software development and maintenance. 6) Profession: Software engineers shall advance the integrity and reputation of the profession consistent with the public interest. 7) Colleagues: Software engineers shall be fair to and supportive of their colleagues.
8) Self: Software engineers shall participate in lifelong learning regarding the practice of their profession and shall promote an ethical approach to the practice of the profession. Okay. So if you follow these ethical principles, you become a self-respected, an example software engineer. Ethical dilemmas, Okay.
Okay. Disagreement in principle with the policies of senior management. Your employer acts in an ethical way and releases a safety-critical system without finishing the testing of the system. Participation in the development of military weapons systems or nuclear systems. So these are the dilemmas for software engineers and hard to choose what to do in such cases. Case studies, okay. Okay, case studies of some system development. A personal insulin pump: We will see that with details. In an embedded system in an insulin pump used by diabetics to maintain blood glucose control. A mental health case patient management system:
A system used to maintain records of people receiving care for mental health problems. A wilderness weather station: A data collection system that collects data about weather conditions in remote areas. There are three rather different systems and let's see about them. Insulin pump control system.
Collects data from a blood sugar sensor and calculates the amount of insulin required to be injected. Calculation based on the rate of change of blood sugar levels. Send signals to a micro pump to deliver the correct dose of insulin. Safety-critical system as low blood sugars can lead to brain malfunctioning, coma, and death; high-blood sugar levels have long-term consequences such as eye and kidney damage. So, this system is a critical safety system. Safety-critical system. And the software engineer has to be extremely cautious with this system before releasing it. As you can see first the description of the system is made. And let's continue.
So the insulin pump hardware architecture. Architecture is designed and planned. There is insulin reservoir, needle assembly, sensor, pump, controller, clock, alarm, and display. This is the basic architecture of the hardware. Activity model of the insulin pump. A software engineer prepares all of these before even starting to code. This is what makes difference that software engineer from a simple programmer or a coder. We will have more ideas about this in the future lessons, future lectures, okay. So the activity model of the insulin pump
blood sensor, analyze sensor reading. So analyze sensor gets the data from blood sensor and reads it and calculates blood sugar. Compute the needed insulin amount and then decide the insulin dose, and then send the dose to the compute pump commands, pump data. So, the pumping command is send to the control insulin pump, insulin is pumped into the blood, and what dose is used, and all other related data is logged. Then it computes the insulin again to decide whether insulin was enough or not. Okay, Essential high-level requirements:
The system shall be available to deliver insulin when required. The system shall perform reliably and deliver the correct amount of insulin to counteract the current level of blood sugar. The system must therefore be designed and implemented to ensure that the system always meets these requirements. Okay, so this was a safety critical system quick design.
A patient information system for mental healthcare: A patient information system to support mental health care as a medical information system that maintains information about patients suffering from mental health problems and the treatments that they have received. Most mental health patients do not require dedicated hospital treatment but need to attend specialist clinics regularly where they can meet a doctor who has detailed knowledge of their problems. To make it easier for patients to attend, these clinics are not just run in hospitals. They may also be held in local medical practices or community centers. MHC-PMS. It is mental health care patient management system. MHC-PMS, Okay. The MHC-PMS (Mental Health Care
Patient Management System) is an information system that is intended for use in clinics. It makes use of a centralized database of patient information but has also been designed to run on a PC, so that it may be accessed and used from sites that do not have secure network connectivity. When the local systems have secure network access, they use patient information in the database but they can download and use local copies of patient records when they are disconnected. So this is kind of a mixed system that works both online and offline. So what are the goals of this system?
To generate management information that allows health service managers to assess performance against local and government targets. To provide medical staff with timely information to support the treatment of patients. So it has two main goals. The organization of the MHC-PMS. It has a local databases as you can see. It has a main server and it has a patient database. So you see they both exchange data between them. This is the main organization. Key features: Individual Care Management:
Clinicians can create records for patients, edit the information in the system view patient history, etc. The system supports data summaries so that doctors can quickly learn about the key problems and treatments that have been prescribed. Patient monitoring: The system monitors the records of patients that are involved in treatment and issues warnings of possible problems are detected. Administrative reporting:
The system generates monthly management reports showing the number of patients treated at each clinic, the number of patients who have entered and left the care system, number of patients section, the drugs prescribed in their cost, etc. You see these administrative reporting is all about statistical data and it can tremendously help administrators of the system to improve efficiency. Okay. So, what concerns there are? This is not a safety-critical system. However, it's still have some concerns. First one is privacy.
It is essential that patient information is confidential and is never disclosed to anyone apart from authorized medical staff in the patient themselves. Usually, this is the most common problem in such systems. It's also, it also existing e-commerce systems or in other systems. Privacy is not that much taken into the account. And Safety: Some mental illnesses cause patients to become suicidal or a danger to other people. Wherever possible, the system should warn medical staff about potentially suicidal or dangerous patients. The system must be available when needed otherwise safety may be compromised and it may be impossible to prescribe the correct medication to patients.
Okay, and the third example system is Wilderness weather station: The government of a country with large areas of wilderness decides to deploy several hundred weather stations in remote areas. Weather stations collect data from a set of instruments that measure temperature and pressure sunshine, rainfall, wind speed, and wind direction. The weather station includes a number of instruments that measure whether parameters such as the wind speed and direction, the ground and air temperatures, the barometric pressure, and the rainfall over a 24-hour period. Each of these instruments is controlled by a software system that takes parameter readings periodically and manages the data collected from the instrument. These instruments are also sensors
of station. The weather stations environment. So, the weather station is put on a very remote area where there may not be an internet connection for a long time or electric for a long time. So, system weather station, system station maintenance, and system data management and archiving is the main environment. Weather information system: The weather station system is. This is the system design.
This is responsible for collecting weather data, carrying out some initial data processing, and transmitting it to the data management system. The data management and archiving system: So it is composed of three system. This system collects the data from all of the wilderness weather stations, carries out data processing and analysis, and archives the data. So the system maintenance system. The station maintenance system: This system can communicate by satellite with all wilderness weather stations to monitor the health of these systems and provide reports of problems. And additional software functionality, functionality okay functionality:
Monitor the instruments, power, and communication hardware and Report faults to the management system. Manage the system power, ensuring that batteries are charged whenever the environmental conditions permit but also the generators are shut down in potentially damaging weather conditions, such as high wind. Support dynamic reconfiguration where parts of the software are replaced with new versions and where backup instruments are switched into the system in the event of system failure. So you see there are many other key issues that the software engineers has to take into consideration. It is not just about starting and running data collector station. There are many other issues always in
such projects, in big projects and you have to consider all of them planned, all of them before even starting coding. So, key points so far. Software engineers have responsibilities to the engineering profession and society. They should not simply be concerned with technical issues. Professional societies publish codes of conduct which set out the standards of behavior expected of their members. Three case studies are used in the book: 1: An embedded insulin pump control system. 2: A system for mental health care patient management. 3: A wilderness weather station. And you will have more detailed explanations or example about these systems in the future lectures. And.
Okay, so I am finishing the first lecture here. Let me upload them to our GitHub repository. And. I will be posting more information about the lecture on the LMS system of the school.
You should also learn how to use code management system such as GitHub and a software to use this code management system. Such as Git Bash. I am using Git Bash to upload or synchronize my data with the remote repository. Definitely learn how to use GitHub or and Git Bash. It will be extremely useful useful in your professional job. Almost every professional company now uses as such code management repository.
Whatever you learn in this course will help you in your professional life. This course is not about developing your skills in coding or programming. This course is about improving your group working skills, improving your professional viewpoints, your professional life in future and believe me. This is the truth. And hopefully, see you next week. Stay safe. Stay from, stay away from crowded places until covid-19 pandemic ends. All right. See you later, hopefully.

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