Lecture 3
Lecture 3
Lecture 3
Lecture 3
1
Approaches to System Development
2
• Models
– Model: A representation of some important aspect of the real
world
– Models used in system development include representations of
inputs, outputs, processes, data, objects, object interactions,
locations, networks, and devices etc.
– Most models are graphical – diagrams and charts
– Models of system components
• Flow chart
• Data flow diagram (DFD)
• Entity-relationship diagram (ERD)
• Structure chart
• Use case diagram
• Class diagram
• Sequence diagram
– Models to manage the development process
• PERT chart
• Gantt chart
• Organizational hierarchy chart 3
• Tools
– Tool: Supportive software that helps create models or
other components required in the project
– Examples of tools
• Project management application
• Drawing/graphics application
• Word processor/text editor
• Computer-aided system engineering (CASE) tools
• Integrated development environment (IDE)
• Database management application
• Reverse-engineering tool
• Code generator tool
4
• Techniques
– Technique: a collection of guidelines that help the
analyst complete a system development activity or task
– Examples of techniques
• Strategic planning techniques
• Project management techniques
• User interviewing techniques
• Data-modeling techniques
• Relational database design techniques
• Structured analysis technique
• Structured programming technique
• Software-testing techniques (e.g. usability testing)
• Object-oriented analysis and design techniques
5
6
Two Approaches to System Development
• Structured program
– A program or program module that has one beginning
and one ending, and each step in the program execution
consists of one of the following
• Sequence (of program statements)
• Decision (where one set of statements or another executes)
• Repetition (of a set of statements)
– Related to concept of top-down programming
• Division of complex problems into a hierarchy of smaller, (more
manageable) program modules
• Top program “calls” lower-level modules
• Lower level modules deal with lower-level detail
• Makes programs much easier to write and understand
• Module: collection of instructions to accomplish some logical
function or task (“modular programming”) – e.g. 9
Procedures/functions in a programming language
10
11
Structured Design
• Structured design
– A technique providing guidelines for deciding what the
set of programs should be, what each program should
accomplish, and how the programs should be organized
into a hierarchy
– Related to (similar principles) as structured
programming, but here looking at a larger level of how
program modules themselves are organized
– Top-down approach again
• start with highest level functions – top-level and break down
into lower level program modules (lower level details goes
below)
– Use of a structure chart helps
• A graphical model showing the hierarchy of program modules
produced in a structured design 12
13
Notes on structured design
14
Structured Analysis
Orders
HANDLE CUSTOMER DATA
CUST. Credit
ORDER
Invoices status
(with books)
18
19
Weaknesses of the Structured Approach
22
Object-Oriented Approach
• Based on notion of “objects” – things in the
computer system (and the world) which have
behaviours and respond to “messages”
• Objects can be anything
– A menu bar, or window on the screen
– A car
– A house
– A number etc.!
• Can send a message to an object
– E.g. to a window to draw itself on the computer screen
– E.g. to a number to square itself!
• Can model very complex systems (e.g. a reactor)
23
24
History of Object Orientation
26
27
System Development Life Cycle (SDLC)
Variations
• Traditional approach: “Waterfall method” – only
when one phase is finished does the project team
drop down (fall) to the next phase
– Fairly rigid approach – decisions at each phase get frozen
– Can’t easily go back to previous phases (each phase
would get “signed off”)
– Good for traditional type of projects, e.g. payroll system
or system with clearly definable requirements
– Not as good for many of the new types of interactive and
highly complex applications
• applications where it is hard to specify all requirements once and
for all
28
29
30
Differences in Approaches
Project planning
Analysis
Design
Implementation
32
33
Prototyping tool requirements
• Flexibility and power needed for fast development
• WYSIWYG (what you see is what you get)
development of interface components
• Generation of complete programs, program
skeletons etc.
• Rapid customization of software libraries or
components
• Sophisticated error-checking and debugging
capabilities
36
37
SDLC Variations
38
Iteration
• Iteration assumes no one gets the right results the first time
• Do some analysis, then some design, then do some further analysis,
until you get it right
• Idea: not always realistic to complete analysis before starting
design
• Waterfall no longer applies - Phases become blurred
• Decisions are not frozen at the end of each phase
• Good for projects where requirement specifications are hard to
arrive at
• However, can lead to ambiguity
– Harder to know how far you are along in the project
– Could be hard to manage
39
Rational Unified Process
40
Variations based on an emphasis on people
• Sociotechnical systems
– Systems that include both social and technical subsystems
– Both social and technical subsystems must be considered
– User-centered design/Participatory design
– Example in text: Multiview
41
42
Variations based on speed of development
43
Causes of failure (and symptoms) in software
development
• Requirements Analysis
– No written requirements
– Incompletely specified requirements
– No user interface mock-up
– No end –user involvement (can happen – may have
talked to clients BUT not users!)
• Design
– Lack of, or insufficient, design documents
– Poorly specified data structures and file formats
– Infrequent or no design reviews
44
• Implementation
– Lack of, or insufficient coding standards
– Infrequent or no code reviews
– Poor in-line code documentation
• Maintenance
– Too many bug reports
– Fixing one bug introduces new bugs
46
Stats on Software Errors (large systems)
47
200 x
Cost to
Repair
48
Computer-Aided System Engineering (CASE)
• CASE tools: Software tools designed to help
system analyst complete development tasks
• The CASE tool contains a database of information
called a repository
– Information about models
– Descriptions
– Data definitions
– References that link models together
• Case tools can check the models to make sure they
are complete and follow diagramming rules
• Also can check if the models are consistent
• Adds a number of capabilities around the
repository 49
50
Types of CASE tools
• Upper CASE tools
– Support analyst during the analysis and design phases
• Lower CASE tools
– Support for implementation – eg. generating programs
• Tools may be general, or designed for specific
methodology (like for information engineering –
TIs’ IEF, CoolTools)
• Examples of CASE tools
– Visual Analyst for creating traditional models
• Called “integrated application development tool”
– Rational Architect for object-oriented modelling
• Based on UML standard for object orientation
• Allows for reverse-engineering and code generation (can
integrate with other tools like Visual C++ etc.)
51
52
53
Background: The case for CASE
• Why need CASE?
– As software systems get large and more complex they
have become prone to unpredictable behaviour and bugs
– Problem of systems that are not reliable, do not meet
requirements or that just plain don’t work!
– CASE tries to eliminate or reduce design and development
problems
– Ultimate goal of CASE is to separate the application
program’s design (and analysis) from the program’s code
implementation
• Generally, the more detached the design process is from actual
coding, the better
• Traditional software development emphasized programming and
debugging, CASE focuses on good analysis and design
54
What CASE can do to help
CASE-
Analysis +
Design
sophistication
Debuggers
Compilers
Assemblers
56
Current Status of CASE
• A number of commercial products
• Some aspects (e.g. diagramming support)
are widely applicable and useful
• Other features such as code generation are
more specific
– CASE tools not so successful for generic code
generation
– However, specific code generation is now being
used for things such as user interface design
57