• No results found

So#ware Architecture

N/A
N/A
Protected

Academic year: 2021

Share "So#ware Architecture"

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)

Chair of Software Engineering

So#ware Architecture 

Prof. Bertrand Meyer, Dr. Michela Pedroni 

ETH Zurich, February‐May 2010 

(2)

Software lifecycle models

Describe an overall distribution of the software

construction into tasks, and the ordering of these tasks They are models in two ways:

  Provide an abstracted version of reality

  Describe an ideal scheme, not always

(3)

Lifecycle: the waterfall model

Feasibility study Requirements Specification Global design Detailed design Implemen- tation V & V Distribution

Royce, 1970 (original article

actually presented the model to

criticize it!)

Succession of steps, with possibility at each step to question and update the results of the preceding step

(4)

A V-shaped variant

FEASIBILITY STUDY REQUIREMENTS ANALYSIS GLOBAL DESIGN DETAILED DESIGN DISTRIBUTION IMPLEMENTATION UNIT VALIDATION SUBSYSTEM VALIDATION SYSTEM VALIDATION

(5)

Arguments for the waterfall

(After B.W. Boehm: Software engineering economics)

  The activities are necessary

•  (But: merging of middle activities)

(6)

Merging of middle activities

Feasibility study Requirements Specification Global design Detailed design Implemen- tation V & V Distribution

(7)

Arguments for the waterfall

(After B.W. Boehm: Software engineering economics)

  The activities are necessary

•  (But: merging of middle activities)

(8)

Problems with the waterfall

  Late appearance of actual code.

  Lack of support for

requirements change — and more generally for extendibility and reusability

  Lack of support for the

maintenance activity (70% of software costs?)

  Division of labor hampering Total

Quality Management

  Impedance mismatches

  Highly synchronous model

Feasibility study Requirements Specification Global design Detailed design Implemen- tation V & V Distribution

(9)

Lifecycle: “impedance mismatches”

As Management requested it As the Project Leader defined it As Systems designed it

As

Programming developed it

As Operations installed it What the user wanted

(10)
(11)

The spiral model (Boehm)

Apply a waterfall-like approach to successive prototypes

Iteration 1 Iteration 2

(12)
(13)

“Prototyping” in software

The term is used in one of the following meanings:

  1. Experimentation:

Requirements capture

Try specific techniques: GUI, implementation

(“buying information”)

  2. Pilot project

  3. Incremental development

  4. Throw-away development

(Fred Brooks, The Mythical Man-Month, 1975:

(14)

The problem with throw-away development

Software development is hard because of the need to reconcile conflicting criteria, e.g. portability and

efficiency

A prototype typically sacrifices some of these criteria Risk of shipping the prototype

In the “anniversary” edition of his book (1982), Brooks admitted that “plan to throw one away” is bad advice

(15)

Seamless, incremental development

Seamless development:

  Single set of notation, tools, concepts, principles throughout

  Continuous, incremental development

  Keep model, implementation and documentation consistent

Reversibility: can go back and forth

(16)

Seamless development

 Single notation, tools,

concepts, principles

 Continuous, incremental

development

 Keep model, implementation

and documentation consistent

 Reversibility: go back and

forth Example classes: PLANE, ACCOUNT, TRANSACTION… STATE, COMMAND… HASH_TABLE… TEST_DRIVER… TABLE… Analysis Design Implemen- tation V&V Generali- zation

(17)

Generalization

Prepare for reuse. For example:

  Remove built-in limits

  Remove dependencies on

specifics of project

  Improve documentation,

contracts...

  Abstract

  Extract commonalities and

revamp inheritance hierarchy

Few companies have the guts to provide the budget for this

B A* Y X Z A D I V

G

(18)

Finishing a design

It seems that the sole purpose of the work of engineers, designers, and calculators is to polish and smooth out, lighten this seam, balance that wing until it is no longer noticed, until it is no longer a wing attached to a fuselage, but a form fully unfolded, finally freed from the ore, a sort of mysteriously joined whole, and of the same quality as that of a poem. It seems that perfection is reached, not when there is nothing more to add, but when there is no longer anything to remove.

(Antoine de Saint-Exupéry,

(19)

Reversibility

Analysis Design Implemen- tation V&V Generali- zation

(20)

The cluster model

Cluster 1 Cluster 2 A D I V&V G A D I V&V G A D I V&V G A D I V&V G

(21)

Extremes

Cluster 1 Cluster 2 A D I V&V G A D I V&V G A D I V&V G A D I V&V G “Trickle” “Clusterfall” A D I V&V G A D I V&V G Cluster 1 Cluster 2

(22)

Dynamic rearrangement

Cluster 1 A D I V&V G Cluster 2 A D I V&V G A D I V&V G Cluster 3 A D I V&V Cluster 4

(23)

Order of clusters

Bottom up: start with most fundamental functionalities, end with user interface

A D I V&V G A D I V&V G A D I V&V G Cluster 1 Cluster 3 Cluster 2

(24)

Seamless development with EiffelStudio

Diagram Tool

• System diagrams can be produced automatically

from software text

• Works both ways: update diagrams or update text

– other view immediately updated No need for separate UML tool

Metrics Tool Profiler Tool

Documentation generation tool ...

(25)

CMMI: maturity levels*

Initial Managed Defined Quantitatively Managed Optimizing

Level Process Characteristics Management Visibility

Out In In Out In Out In Out In Out Process is unpredictable, poorly controlled, and reactive

Process is characterized for projects and is often reactive

Process is characterized for the organization and is proactive

Process is measured and controlled

Focus is on continuous quantitative improvement

(26)

Agile/lean methods and extreme programming

De-emphasize formal process

De-emphasize design, emphasize refactoring

Emphasize short-cycled, time-boxed iterative development Emphasize the role of tests to guide the development

(“TDD”, Test-Driven Development)

Emphasize the benefit of a second set of eyes:

Pair programming

Emphasize self-organizing teams Emphasize customer involvement

(27)

Open-source processes

Collaborative, distributed developments Concentric trust circles

Success with strong project leader (e.g. Linux) “Given enough eyes, all bugs are shallow”

References

Related documents

We undertake a systematic review of the different biological, operational and chemical hazards within the agri-food industry using a dataset of 2,070 registered

The candidate does not provide evidence of working with faculty or faculty teams to create, implement, and formatively evaluate a school improvement action plan that includes use of

In the international context, one might query whose policy the WTO should take into consideration when deciding a dispute between two or more nations that have

The claim “Free calls for the first three months” could be justified, even on an ongoing basis where the paid-for item is a package, if the marketer showed that the offer was

The diamonds in the above schema were either implanted as separate tables such in the case of the cart -> item relation or added as foreign keys in most cases to a table

tuples in a database. Consequently, the class of keys is of a great significance for almost all data processing tasks. There are two competing approaches to

The JMA physicians’ liability insurance covered the liability of individual Class-A members, but payments for the liability of non-member physi- cians were cut, and there was a rush

These associations remained significant at 20 and 26 years after adjusting for BMI at the previous age (model 1) in both men and women, suggesting that higher BMI gain at these ages