cseb233: fundamentals of software...

47
CSEB233: Fundamentals of Software Engineering Introduction to Software & Software Engineering

Upload: others

Post on 09-Aug-2020

14 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

CSEB233: Fundamentals

of Software Engineering

Introduction to

Software & Software Engineering

Page 2: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Lesson Objectives

Define software

Define software engineering’ (SE)

Explain nature of software (wear versusdeterioration

Describe Polya’s four essence of SEpractices

Explain Hooker’s seven SE principles

Discuss several myths of SE

Page 3: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software & Software Engineering

What is Software?

Page 4: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

What is 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)

documentation that describes the operation

and use of the programs.

Page 5: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

What is Software?

Software is developed or engineered, it is not

manufactured in the classical sense

Although the industry is moving toward

component-based construction, most

software continues to be custom-built

Unlike hardware, software does not "wear

out"

Page 6: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Wear vs. Deterioration

Page 7: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software Application Domains

System software

Application software

Engineering/scientific software

Embedded software

Product-line software

WebApps (Web applications)

Artificial intelligence software

Page 8: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Characteristics of WebApps - I

Network Intensiveness A WebApp resides on a network and must serve the needs of

a diverse community of clients

Concurrency A large number of users may access the WebApp at one time

Unpredictable load The number of users of the WebApp may vary by orders of

magnitude from day to day

Performance If a WebApp user must wait too long (for access, for server-

side processing, for client-side formatting and display), he orshe may decide to go elsewhere

Page 9: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Characteristics of WebApps - II

Availability Although expectation of 100 percent availability is unreasonable,

users of popular WebApps often demand access on a “24/7/365”basis.

Data driven The primary function of many WebApps is to use hypermedia to

present text, graphics, audio, and video content to the end-user.

Content sensitive The quality and aesthetic nature of content remains an important

determinant of the quality of a WebApp.

Continuous evolution Unlike conventional application software that evolves over a series

of planned, chronologically-spaced releases, Web applicationsevolve continuously.

Page 10: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Characteristics of WebApps - III

Immediacy Although immediacy—the compelling need to get

software to market quickly—is a characteristic of manyapplication domains, WebApps often exhibit a time tomarket that can be a matter of a few days or weeks

Security Because WebApps are available via network access, it

is difficult, if not impossible, to limit the population ofend-users who may access the application

Aesthetics An undeniable part of the appeal of a WebApp is its look

and feel

Page 11: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software Categories

Open world computing (IoT) The rapid growth of wireless

networking leads to true pervasive, distributed computing

The challenge is to develop software that can communicate across mobile devices

Netsourcing WWW becoming a computing

engine as well as content provider

The challenge is to develop sophisticated but simple applications for worldwide end-user are needed

Open source “Free” source code open to the

computing community

A trend that results indistribution of source codewhere many people cancontribute

a blessing, but also a potentialcurse!

The challenge is to build selfdescriptive code and to ensurethat changes are traceable.

Page 12: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Legacy Software

Legacy software is system that was

developed decades ago, and has been

continually modified to meet changes in

business requirements and computing

platforms.

Legacy software is costly to maintain and

risky to evolve.

Page 13: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Legacy Software

Why must it change? Legacy software must be adapted to meet the

needs of new computing environments ortechnology

Legacy software must be enhanced to implementnew business requirements

Legacy software must be extended to make itinteroperable with other more modern systems ordatabases

Legacy software must be re-architected to make itviable within a network environment

Page 14: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software & Software

Engineering

What is Software Engineering?

Page 15: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software Engineering

Some realities: a concerted effort should be made to

understand the problem before a softwaresolution is developed

design becomes a pivotal activity

software should exhibit high quality

software should be maintainable

The conclusion? Software should be ‘engineered’

Page 16: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software EngineeringThe Seminal Definition

Software engineering encompasses aprocess, the management of activities,technical methods, and use of tools todevelop software products.

Seminal definition: The establishment anduse of sound engineering principles in orderto obtain economically, software that isreliable and works efficiently on realmachines (Fritz Bauer)

Page 17: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software EngineeringThe IEEE Definition

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

The study of approaches as described above

Page 18: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

A Layered Technology

Software Engineering is a layered technology withthe quality focus being the bedrock that supports it

a “quality” focus

process model

methods

tools

Page 19: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

A Process Framework

Framework activities

Activities that are always applicable, regardless

of project type

Umbrella Activities

Activities that persist across the entire software

process

Complementing framework activities

Page 20: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Framework Activities

Communication

Planning

Modeling Analysis of requirements

Design

Construction Code generation

Testing

Deployment

Page 21: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Umbrella Activities

Software project management

Formal technical reviews

Software quality assurance

Software configuration management

Work product preparation and production

Reusability management

Measurement

Risk management

Page 22: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Adapting a Process Model

the overall flow of activities, actions, and tasksand the interdependencies among them

the degree to which actions and tasks aredefined within each framework activity

the degree to which work products are identifiedand required

the manner which quality assurance activitiesare applied

the manner in which project tracking and controlactivities are applied

Page 23: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Adapting a Process Model

the overall degree of detail and rigor with

which the process is described

the degree to which the customer and other

stakeholders are involved with the project

the level of autonomy given to the software

team

the degree to which team organization and

roles are prescribed

Page 24: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software & Software Engineering

Four Essence of SE Practices

Page 25: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

The Essence of SE Practices

Polya suggests:

Understand the problem

♦ communication and analysis

Plan a solution

♦ modeling and software design

Carry out the plan

♦ code generation

Examine the result for accuracy

♦ testing and quality assurance

Page 26: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

The Essence of SE Practices1. Understand the Problem

Who has a stake in the solution to the problem? Who are the stakeholders?

What are the unknowns? What data, functions, and features are required to

properly solve the problem?

Can the problem be compartmentalized? Is it possible to represent smaller problems that may

be easier to understand?

Can the problem be represented graphically? Can an analysis model be created?

Page 27: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

The Essence of SE Practices 2. Plan the Solution

Have you seen similar problems before? Are there patterns that are recognizable in a potential

solution?

Is there existing software that implements the data, functions,and features that are required?

Has a similar problem been solved? If so, are elements of the solution reusable?

Can sub-problems be defined? If so, are solutions readily apparent for the subproblems?

Can you represent a solution in a manner that leads toeffective implementation? Can a design model be created?

Page 28: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

The Essence of SE Practices 3. Carry Out the Plan

Does the solution conform to the plan?

Is source code traceable to the design model?

Is each component part of the solution

provably correct?

Has the design and code been reviewed, or

better, have correctness proofs been applied to

algorithm?

Page 29: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

The Essence of SE Practices4. Examine the Result

Is it possible to test each component part ofthe solution? Has a reasonable testing strategy been

implemented?

Does the solution produce results thatconform to the data, functions, and featuresthat are required? Has the software been validated against all

stakeholder requirements?

Page 30: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software & Software Engineering

Seven General Principles of SE

Page 31: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles

Provide value to users

KIS (Keep it simple!)

Maintain the Vision

What You Produce, Others Will Consume

Be Open to the Future

Plan Ahead for Reuse

Think!

Page 32: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles1. Provide value to users

This is the reason why it all exists in the first

place

All decisions should be made with this in

mind

Page 33: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles2. Keep It Simple (KISS)

There are many factors to consider in any

design effort

Thus, all software design should be as simple

as possible but not simpler to ease

understanding and maintenance of the

software

Page 34: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles3. Maintain the Vision

A clear vision is essential to the success of a

software project

Compromising the architectural vision of a

software system weakens and break even

well-designed systems

Page 35: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles4. What You Produce, Others Will Consume

Consume

use, maintain, document or depend on

Always specify, design, and implement

knowing others will have to understand what

you are doing

Page 36: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles5. Be Open to the Future

True “industrial-strength” software must

endure long lifetime

Hence, design the software to:

solve the general problem, not just the specific

one,

be ready to adapt to changes (in hardware,

computing platform etc.), and

be reused

Page 37: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles6. Plan Ahead for Reuse

Reuse reduces the cost and increases the

value of the reused components and the

systems into which they are incorporated

Page 38: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Hooker’s General Principles7. Think

When you think about something (placing

clear, complete thought before action), you

are more likely to do it right (more

importantly, the first time).

Page 39: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software & Software Engineering

Software Myths

Page 40: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software Myths

Software myths – erroneous beliefs about

software and the process that is used to build it

Misleading attitudes that have caused serious

problems for managers and practitioners

Classifications of software myths:

Management

Customer

Practitioner

Page 41: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software MythsManagement

Myth: We already have a book that’s full of standards

and procedures for building software. Won’t thatprovide my people with everything they need toknow?

If we get behind schedule, we can add moreprogrammers and catch up.

If I decide to outsource the software project to athird party, I can just relax and let that firm buildit.

Page 42: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software Myths Customer

Myth:

A general statement of objectives is sufficient to

begin writing program – we can fill the details

later.

Software requirements continuously change, but

change can be easily accommodated because

software is flexible.

Page 43: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Software MythsPractitioner

Myth: Once we write the program and get it work, our

job is done.

Until I get the program running, I have no way ofassessing its quality

The only deliverable work product of asuccessful project is the working program

Software engineering will make us createvoluminous and unnecessary documentationand will invariably slow us down.

Page 44: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

How It all Starts

Every software project is precipitated by somebusiness need the need to correct a defect in an existing

application;

the need to adapt a ‘legacy system’ to a changingbusiness environment;

the need to extend the functions and features of anexisting application, or

the need to create a new product, service, orsystem.

Page 45: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Summary

Definitions of software and software engineering

Software deteriorates but never wear out

Several software application domain – system

software, engineering/scientific software, AI

software, embedded software, etc.

The Polya’s Four Essence of SE Practices

Understand the problem; Plan a solution; Execute

the plan; Examine the result for accuracy

Page 46: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

Summary

Seven SE Principles

The Reason It All Exists; KISS; Maintain the

Vision; What You Produce, Others Will

Consume; Be Open to the Future; Plan Ahead

for Reuse; Think!

Software myths have caused serious

problems for the software industry

Page 47: CSEB233: Fundamentals of Software Engineeringmetalab.uniten.edu.my/~hazleen/CSEB233/CSEB233Module1.pdfapplications for worldwide end-user are needed Open source “Free” source code

THE END