Docsity

Definition of Software, Study notes of Software Engineering

Toggle sidebar
bg1
1. Chapter
Overview of software Engineering & the Software Development
Process 1.1. Definition of Software and Characteristics of Software
Computer software is the product that software professionals build and then support over the
long term.
Software is a set of instructions to acquire inputs and to manipulate them to produce the
desired output in terms of functions and performance as determined by the user of the
software.
Definition of Software
Software is:
1. Instructions (computer programs) that when executed provide desired features, function, and
performance;
2. Data structures that enable the programs to adequately manipulate information, and
3. Descriptive information (documents) in both hard copy and virtual forms that describes the
operation and use of the programs.
―Ideas and technological discoveries are the driving engines of economic growth.‖
-The Wall Street Journal
―In modern society, the role of engineering is to provide systems and products that enhance
the material aspects of human life, thus making life easier, safer, move secure, and more
enjoyable.‖
- Richard Fairley & Mary Will Shire
Software Engineering is defined as a discipline that addresses the following aspects of the
software and its development. The aspects are:
1.
Economic
: Cost, Benefits, and Returns on Investment (ROI).
2.
Design
: Ease of development and ensuring delivery of customer requirements.
3.
Maintenance
: Ease of effecting changes and modifications.
4. Implementation : Ease of installation, Demonstration, and implementation of software by
the customer and users.
It is an engineering discipline which is systemic, scientific, and methodical and uses standards,
models and algorithms in design & development.
The IEEE (Institution of Electrical and Electronics Engineers) defines Software Engineering
as the application of a systematic, disciplined, quantifiable approach to the development,
operations and maintenance of software.
Today, software takes on a dual role. It is both a product and a vehicle for delivering a
product. As a product, it delivers the computing potential embodied by computer hardware or,
more broadly, by a network of computers that are accessible by local hardware. Software is an
information transformer - producing, managing, acquiring, modifying, displaying, or
transmitting information that can be as simple as a single bit or as complex as a multimedia
presentation.
As a vehicle, for delivering the product, software acts as the basis for the control of computer
(Operating System), the communication of information (networks), and the creation and
control of other programs (Software tools and environments).
―Computers make it easy to do a lot of things, but most of the things they make it easier to do
don’t need to be done‖
- Andy Rooney
Characteristics of Software:
Software is written to handle an Input – Process – Output system to achieve predetermined
goals. Software is logical rather than a physical system element. Therefore software has
characteristic that are different than that of hardware.
1. Software is developed or engineered; it is not manufactured in the classical sense.
2. Software doesn’t ―wear out‖ like hardware and it is not degradable over a period.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Definition of Software and more Study notes Software Engineering in PDF only on Docsity!

1. Chapter Overview of software Engineering & the Software Development Process 1.1. Definition of Software and Characteristics of Software Computer software is the product that software professionals build and then support over the long term. Software is a set of instructions to acquire inputs and to manipulate them to produce the desired output in terms of functions and performance as determined by the user of the software.

Definition of Software

Software is:

  1. Instructions (computer programs) that when executed provide desired features, function, and performance;
  2. Data structures that enable the programs to adequately manipulate information, and
  3. Descriptive information (documents) in both hard copy and virtual forms that describes the operation and use of the programs.

―Ideas and technological discoveries are the driving engines of economic growth.‖ -The Wall Street Journal ―In modern society, the role of engineering is to provide systems and products that enhance the material aspects of human life, thus making life easier, safer, move secure, and more enjoyable.‖

  • Richard Fairley & Mary Will Shire Software Engineering is defined as a discipline that addresses the following aspects of the software and its development. The aspects are:
  1. Economic : Cost, Benefits, and Returns on Investment (ROI).
  2. Design : Ease of development and ensuring delivery of customer requirements.
  3. Maintenance : Ease of effecting changes and modifications.
  4. Implementation : Ease of installation, Demonstration, and implementation of software by the customer and users. It is an engineering discipline which is systemic, scientific, and methodical and uses standards, models and algorithms in design & development. The IEEE (Institution of Electrical and Electronics Engineers) defines Software Engineering as the application of a systematic, disciplined, quantifiable approach to the development, operations and maintenance of software. Today, software takes on a dual role. It is both a product and a vehicle for delivering a product. As a product, it delivers the computing potential embodied by computer hardware or, more broadly, by a network of computers that are accessible by local hardware. Software is an information transformer - producing, managing, acquiring, modifying, displaying, or transmitting information that can be as simple as a single bit or as complex as a multimedia presentation. As a vehicle, for delivering the product, software acts as the basis for the control of computer (Operating System), the communication of information (networks), and the creation and control of other programs (Software tools and environments). ―Computers make it easy to do a lot of things, but most of the things they make it easier to do don’t need to be done‖
  • Andy Rooney Characteristics of Software: Software is written to handle an Input – Process – Output system to achieve predetermined goals. Software is logical rather than a physical system element. Therefore software has characteristic that are different than that of hardware.
  1. Software is developed or engineered; it is not manufactured in the classical sense.
  2. Software doesn’t ―wear out‖ like hardware and it is not degradable over a period.

The following figure depicts failure rate as a function of time for hardware. The relationship often called as ―bathtub curve‖, indicates that, hardware exhibits relatively high failure rates early in its life.

Failure curve for Hardware:

Time

Failure curve for Software:

Software is not susceptible to the environmental maladies that cause hardware to wear out. Hence, the failure rate curve for software should take the form of ―idealized curve‖ as shown in the above figure. Undiscovered defects will cause high failure rates early in the life of a program. However, these are corrected and the curve flattens as shown. Hence the software doesn’t wear out, but it does deteriorate.

  1. Although the industry is moving toward component – based construction, most software continues to be custom built.
  2. A software component should be designed and implemented so that it can be reused in many different programs.

The classical and conventional definition of software is that it is a set of instructions, which, when executed through a computing device, produces the desired result by the execution of functions and processes.

Software is a set of instructions to acquire inputs and to manipulate them to produce the desired output in terms of functions and performance as determined by the user of the

7. Artificial Intelligence Software: AI Software makes use of non–numerical algorithms to solve complex problems that are not amenable to computation or straightforward analysis. Applications within this area include robotics, expert systems, pattern recognition (image and voice), artificial neural networks, theorem proving, and game playing. Due to changing nature of software, i.e. rapid growth of technology, the challenge for software engineers will be – a) To develop systems and application software that will allow small devices, personal computers, and enterprise system to communicate across vast networks to meet rapid growth of wireless networking. b) To architect simple (e.g.- personal financial planning) and sophisticated applications that provide benefit to targeted end-user markets worldwide to meet rapid growth of net sourcing (World Wide Web) c) To build source code that is self descriptive, but, more importantly, to develop techniques that will enable both customers and developers to know what changes have been made and how those changes manifest themselves within the software. d) To build applications that will facilitate mass communication and mass product distribution using concepts that is only now forming. e) ―The computer itself will make a historic transition from something that is used for analytic tasks…. to something that can elicit emotion‖. - David Vaskevitch 1.3. Software Engineering- Definition, Need

According to Fritz Bauer, software engineering is establishment and use of sound engineering principles in order to obtain economically software that is reliable and works efficiently on real machines. ―More than a discipline, or a body of knowledge, engineering is a verb, an action word, a way of approaching a problem‖.

  • Scott Whit mire A more comprehensive definition of IEEE- Software Engineering: The application of a systematic, disciplined, quantifiable approach to the development, operation and maintenance of software; that is the application of engineering to software. 1.4. Relationship between Systems Engineering and Software Engineering

Software Engineering Software engineering deals with designing and developing software of the highest quality. A software engineer does analyzing, designing, developing and testing software. Software engineers carry out software engineering projects, which usually have a standard software life cycle. For example, the Water Fall Software Life cycle will include an analysis phase, design phase, development phase, testing and verification phase and finally the implementation phase. Analysis phase looks at the problem to be solved or the opportunities to be seized by developing the software. Sometimes, a separate business analyst carries out this phase. However, in small companies, software engineers may do this task. Design phase involves producing the design documents such as UML diagrams and ER diagrams depicting the overall structure of the software to be developed and its components. Development phase

6

involves programming or coding using a certain programming environment. Testing phase deals with verifying that software is bug free and also satisfies all the customer requirements. Finally, the completed software is implemented at the customer site (sometimes by a separate implementation engineer). In recent years, there has been a rapid growth of other software development methodologies in order to further improve the efficiency of the software engineering process. For example, Agile methods focus on incremental development with very short development cycles. Software Engineering profession is a highly rated job because of its very high salary range. System Engineering System Engineering is the sub discipline of engineering which deals with the overall management of engineering projects during their life cycle (focusing more on physical aspects). It deals with logistics, team coordination, automatic machinery control, work processes and similar tools. Most of the times, System Engineering overlaps with the concepts of industrial engineering, control engineering, organizational and project management and even software engineering. System Engineering is identified as an interdisciplinary engineering field due to this reason. System Engineer may carry out system designing, developing requirements, verifying requirements, system testing and other engineering studies. 1.5. Software engineering layers: A Layered Technology Approach

Software engineering is a layered technology. The layers of software engineering as shown in the above diagram are:-

1. A Quality Focus: Any engineering approach (including software engineering) must rest on an organizational commitment to quality. Total quality management, six sigma and similar philosophies foster a continuous process improvement culture, and it is this culture that ultimately leads to the development of increasingly more effective approaches to software engineering. The bedrock that supports software engineering is a quality focus. 2. Process Layer: The foundation for software engineering is the process layer. Software Engineering process is the glue that holds the technology layers together and enables rational and timely development of computer software. Process defines a framework that must be established for effective delivery of software engineering technology. The software process forms the basis for management control of software projects and establishes the context in which technical methods are applied, works products (models, documents, data, reports, forms etc.) are produced, milestones are established, quantity is ensured and change is properly managed. 7

From the above figure, each framework activity is populated by a set of software engineering actions- a collection of related tasks that produces a major software engineering work product (e.g. design is a SE action). Each action is populated with individual work tasks that accomplish some part of the work implied by the action.

―A process defines who is doing what, when and how to reach a certain goal‖.

  • Ivar Jacobson, Grady Booch and James Rumbaugh

The following generic process framework is applicable to the vast majority of software projects.

1. Communication :

This framework activity involves heavy communication & collaboration with the customer (and the stakeholders) and encompasses requirements gathering and other related activities.

2. Planning :

This activity establishes a plan for the software engineering work that follows. It describes the technical tasks to be conducted, the risks that are likely, the resources that will be required, the work products to be produced and a work schedule.

3. Modeling :

This activity encompasses the creation of models that allow the developer & the customer to better understand software requirements & the design that will achieve those requirements.

4. Construction :

This activity combines code generation and the testing that is required to uncover errors in the code.

5. Deployment :

The software is delivered to the customer who evaluates the delivered product and provides feedback based on the evaluation. ―Einstein argued that there must be a simplified explanation of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer. Much of the complexity that he must master is arbitrary.‖

  • Fred Brooks

Umbrella Activities:

Generic views of SE is complemented by a set of unbrella activities. They are

Software Project tracking and control:

The framework described in the generic view of SE is complemented by a number of umbrella activities, one of which is software project tracking and control. It allows the software team to access progress against the project plan and takes necessary action to maintain schedule. Umbrella activities occur throughout the software process and focus primarily on project management, tracking and control.

Risk Management:

Assess risks that are likely to affect performance and quality of project.

Software quality assurance:

Define and conduct activities to ensure software quality.

Formal Technical Review: Assess Software Engg. Work products to uncover and remove errors before they are shifted to next level of activity. Measurement: Defines and collects process, project and product measures to assist the team in delivering the software that meets customer needs can be used in conjunction with all framework and umbrella activities. Software configuration Management (SCM): Manages and effects the changes throughout the software process. Reusability management: Defines criteria for work product reuse (including software components) and establishes the mechanism to achieve reusable components. Work product preparation and production: Includes activities for creating work product such as models, documents, large, 1.7. Prescriptive Process Models:

Irrespective of which level of CMM the organization has, the software engineer has five choices for selection of software process models. They are –

  1. Waterfall Model
  2. Incremental Model
  3. Prototype Model
  4. Spiral Model 1. The Waterfall Model:

There are times when the requirements of a problem are reasonably well understood – when work flows from communication through deployment in a reasonably linear fashion. The waterfall model is a traditional method, sometimes called the classic life cycle, suggests a systematic, sequential approach to software development that begins with customer specification of requirements and progresses through planning, modeling, construction and deployment, culminating in on-going support of the completed software. This is one of the initial models. As the figure implies stages are cascaded and shall be developed one after the other. In other words one stage should be completed before the other begins. Hence, when all the requirements are elicited by the customer, analyzed for completeness and consistency, documented as per requirements, the development and design activities commence. This model presents a high level view and suggests to the developer the sequence of events they should expect to encounter. This model is used to prescribe software development activities in variety of contexts. It is the basis for software deliverables. Associated with each activity are milestones and outcomes, for managers to monitor.

This is useful when the software team is smaller in size. Additional increments can be planned and managed to address technical risks. This has the advantage of prompt system delivery to users without hassle.

In case of availability of new hardware are delayed and early increments which could be executed on existing systems for partial functionality to prevent inordinate delays.

From this diagram, the incremental model applies linear sequences in a staggered fashion as calendar time progresses. Each linear sequence produces deliverable ―Increments‖ of the software.

For example, word-processing software developed using the incremental paradigm might deliver basic file management, editing and document production functions in the first increment; more sophisticated editing and document production capabilities in the second increment; spelling and grammar checking in the third increment; and advanced page layout capability in the fourth increment.

4. The Prototype Model:

The prototyping paradigm begins with communication as shown in the diagram below.

The software development process can help to control by including activities and sub processes to enhance understanding. Prototyping is a sub process or a partially developed product that enable customers and developers to examine aspects of a proposed system and decide if it is suitable or appropriate for the finished product.

Developers may build a system to implement a small portion of some of the key requirements to ensure that the requirements are consistent, feasible and practical. In case of changes, revisions are made at the requirements stage by prototyping parts of the design.

Design prototyping helps the developers assess alternative strategies and decide which best suits for the project. There may be radically different designs to get best performances. Often user interface is built and tested as a prototype for users to understand the new system and developers to get the idea of user’s reaction/response to the system.

In Business needs, requirements change very often making earlier methods unrealistic and redundant. Short market deadlines make it difficult to complete comprehensive software products.

The evolutionary models are iterative and help the developers to complete short version within the given deadlines.

Ideally prototype serves as a mechanism to identify software requirements for working prototypes. The developer attempts to make use of existing program fragments and applies tools such as report generators which enable working programs to be generated quickly.

The software engineer & customer meet and define the overall objectives for the software, identify whatever requirements are known and outline areas where further definition is mandatory. Prototyping iteration is planned quickly and modeling (in the form of quick design) occurs. The quick design focuses on a representation of those aspects of the software that will be visible to the customer/end-user (e.g. human interface layout or output display formats). The quick design leads to the construction of a prototype. The prototype is deployed & then evaluated by the customer/user. Feedback is used to refine requirements for the software.

5. The Spiral Model:

Boehm (1988) viewed the software development process in light of risks involved, Spiral model could combine development activities with risk management to minimize and control the risk impact.

This is again an evolutionary model which couples iterative nature of prototyping with controlled and systematic aspects of the waterfall model. It also provides scope for RAD for increasingly complete software.

The spiral development model is a risk-driven process model generator that is used to guide multi-stakeholder concurrent engineering of software intensive systems. It has two main distinguishing features. One is a cyclic approach for incrementally growing a system’s degree of definition and implementation while decreasing its degree of risk. The other is a set of anchor point milestones for ensuring stakeholder commitment to feasible and mutually satisfactory system solutions.

Instead, agile software processes focus on parsimony. That is, they require a minimal number of activities necessary to mitigate risks and achieve their goals.

Adaptive

During an iteration, new risks may be exposed which require some activities that were not planned. The agile process adapts the process to attack these new found risks. If the goal cannot be achieved using the activities planned during the iteration, new activities can be added to allow the goal to be reached. Similarly, activities may be discarded if the risks turn out to be ungrounded.

Incremental

An agile process does not try to build the entire system at once. Instead, it partitions the nontrivial system into increments which may be developed in parallel, at different times, and at different rates. We unit test each increment independently. When an increment is completed and tested, it is integrated into the system.

Convergent

Convergence states that we are actively attacking all of the risks worth attacking. As a result, the system becomes closer to the reality that we seek with each iteration. As risks are being proactively attacked, the system is being delivered in increments. We are doing everything within our power to ensure success in the most rapid fashion.

People-Oriented

Agile processes favor people over process and technology. They evolve through adaptation in an organic manner. Developers that are empowered raise their productivity, quality, and performance.

Collaborative

Agile processes foster communication among team members. Communication is a vital part of any software development project. When a project is developed in pieces, understanding how the pieces fit together is vital to creating the finished product. There is more to integration than simple communication. Quickly integrating a large project while increments are being developed in parallel requires collaboration.

A)Concept of Extreme Programming

Extreme Programming is an instance of an Agile Software Development method. XP is a method that is optimized for small to medium-sized project teams that fit a certain profile. It promotes rapid feedback and response to continual change. It is based upon the four values of simplicity, communication, feedback, and courage and is consistent with the values of agile software development.

Characteristics of an XP Project

Extreme Programming or XP is a development process that can be used by small to medium- sized teams to develop high quality software within a predictable schedule and budget and with a minimum of overhead. Since XP relies heavily on direct and frequent communication between the team members, the team should be co-located. An ideal project for using XP would be one that has most of the following characteristics:  A small to medium-sized team (fewer than 20 people on the complete team)  Co-located, preferably in a single area with a large common space  A committed, full-time, on-site customer or customer representative

The Extreme Programming Process

Goals

Extreme Programming Explained describes Extreme Programming as a software-development discipline that organizes people to produce higher-quality software more productively. XP attempts to reduce the cost of changes in requirements by having multiple short development cycles, rather than a long one. In this doctrine, changes are a natural, inescapable and desirable aspect of software-development projects, and should be planned for, instead of attempting to define a stable set of requirements. Extreme programming also introduces a number of basic values, principles and practices on top of the agile programming framework. Activities XP describes four basic activities that are performed within the software development process: coding, testing, listening, and designing. Each of those activities is described below. Coding The advocates of XP argue that the only truly important product of the system development process is code – software instructions that a computer can interpret. Without code, there is no working product. Coding can also be used to figure out the most suitable solution. Coding can also help to communicate thoughts about programming problems. A programmer dealing with a complex programming problem, or finding it hard to explain the solution to fellow programmers, might code it in a simplified manner and use the code to demonstrate what he or she means. Code, say the proponents of this position, is always clear and concise and cannot be interpreted in more than one way. Other programmers can give feedback on this code by also coding their thoughts. Testing Main article: Test-driven development Extreme programming's approach is that if a little testing can eliminate a few flaws, a lot of testing can eliminate many more flaws. Unit tests determine whether a given feature works as intended. A programmer writes as many automated tests as they can think of that might "break" the code; if all tests run successfully, then the coding is complete. Every piece of code that is written is tested before moving on to the next feature. Acceptance tests verify that the requirements as understood by the programmers satisfy the customer's actual requirements.

 Members of an ASD team begin to develop the components that are part of an adaptive cycle, the emphasis is on ―learning‖ as much as it is on progress toward a completed cycle. software developers often overestimate their own understanding (of the technology, the process, and the project) and that learning will help them to improve their level of real understanding through focus groups, technical reviews, and project postmortems.

C) Scrum

Scrum principles are consistent with the agile manifesto and are used to guide development activities within a process that incorporates the following framework activities: requirements, analysis, design, evolution, and delivery. Within each framework activity, work tasks occur within a process pattern called a sprint. The work conducted within a sprint (the number of sprints required for each framework activity will vary depending on product complexity and size) is adapted to the problem at hand and is defined and often modified in real time by the Scrum team. Scrum emphasizes the use of a set of software process patterns. Each of these process patterns defines a set of development actions –  Backlog—a prioritized list of project requirements or features that provide business value for the customer. Items can be added to the backlog at any time (this is how changes are introduced). The product manager assesses the backlog and updates priorities as required.  Sprints—consist of work units that are required to achieve a requirement defined in the backlog that must be fit into a predefined time-box14 (typically 30 days). Changes (e.g., backlog work items) are not introduced during the sprint. Hence, the sprint allows team members to work in a short-term, but stable environment.  Scrum meetings—are short (typically 15 minutes) meetings held daily by the Scrum team. Three key questions are asked and answered by all team members -

  • What did you do since the last team meeting?
  • What obstacles are you encountering?
  • What do you plan to accomplish by the next team meeting?  A team leader, called a Scrum master, leads the meeting and assesses the responses from each person. The Scrum meeting helps the team to uncover potential problems as early as possible. Also, these daily meetings lead to ―knowledge socialization‖ and thereby promote a self- organizing team structure.  Demos—deliver the software increment to the customer so that functionality that has been implemented can be demonstrated and evaluated by the customer. It is important to note that the

demo may not contain all planned functionality, but rather those functions that can be delivered within the time-box that was established.

D) Dynamic Systems Development Method (DSDM)

The Dynamic Systems Development Method (DSDM) [Sta97] is an agile software development approach that ―provides a framework for building and maintaining systems which meet tight time constraints through the use of incremental prototyping in a controlled project environment‖. The DSDM philosophy is borrowed from a modified version of the Pareto principle—80 percent of an application can be delivered in 20 percent of the time it would take to deliver the complete (100 percent) application. DSDM is an iterative software process in which each iteration follows the 80 percent rule. That is, only enough work is required for each increment to facilitate movement to the next increment. The remaining detail can be completed later when more business requirements are known or changes have been requested and accommodated.

DSDM life cycle that defines three different iterative cycles, preceded by two additional life cycle activities:  Feasibility study—establishes the basic business requirements and constraints associated with the application to be built and then assesses whether the application is a viable candidate for the DSDM process.  Business study—establishes the functional and information requirements that will allow the application to provide business value; also, defines the basic application architecture and identifies the maintainability requirements for the application.  Functional model iteration—produces a set of incremental prototypes that demonstrate functionality for the customer. The intent during this iterative cycle is to gather additional requirements by eliciting feedback from users as they exercise the prototype.  Design and build iteration—revisits prototypes built during functional model iteration to ensure that each has been engineered in a manner that will enable it to provide operational business value for end users. In some cases, functional model iteration and design and build iteration occur concurrently.  Implementation—places the latest software increment (an ―operationalized‖ prototype) into the operational environment. It should be noted that (1) the increment may not be 100 percent complete or (2) changes may be requested as the increment is put into place. In either case, DSDM development work continues by returning to the functional model iteration activity.

E) Crystal

Crystal methods are a family of methodologies (the Crystal family) that were developed by Alistair Cockburn in the mid-1990s. Crystal methods are considered and described as “lightweight methodologies”. The use of the word Crystal comes from the gemstone where, in software terms, the faces are a different view on the “underlying core” of principles and values. The faces are a representation of techniques, tools, standards and roles.

Methodology, techniques, and policies are differentiated between by Cockburn:

 Methodology - set of elements (e.g. practices, tools)  Techniques - skill areas (e.g. developing use cases)  Policies - dictate organizational musts

. Crystal methods are focused on: 1. People 2. Interaction 3. Community 4. Skills