Software Re-Engineering
Software Re-Engineering
Software Re-engineering
Some material is based on the CSER projects at U of T
Covers almost all concepts of the course
Detail explanations to come
Spring 2005
ECE450H1S
Software Engineering II
Last lecture
General Information
Instructor: Yijun Yu [email protected]
Office: BA7200 (Bahen Center, 7th floor),
946-8530
Office hours: Wed 5pm 6pm, Fri 2pm-3pm
TA: Alexia Giannoula [email protected]
Clark Merchant [email protected]
Mazen Almaoui [email protected]
Class homepage:
http://www.cs.toronto.edu/~yijun/ece450h
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
ECE450H1S
Software Engineering II
Today
1. Review SE process
2. Discuss Reengineering Concepts
3. Go over some case studies, a road map to our
lectures and tutorials:
VIM: componentization, reveal architectures
osCommerce: aspect elicitation, reveal requirements
SquirrelMail: goal elicitation from refactored code
4. Your exercise is to use the learnt knowledge to
study two other legacy software systems:
OpenOME and OmniEditor
5. Summary
Spring 2005
ECE450H1S
Software Engineering II
1.
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
2. Reengineering concepts
Why Software Reengineering?
Legacy software are increasing
(Software vs. Hardware)
New technology appearing
(Moores law)
Successful ratio of projects increasing
(IBM internal history)
Companies are more competing
(now we have the open-source movement and free-software
foundation)
Quality attributes are demanding
(Thats the selling point)
People are changing
(developers joining and leaving, customers are changing)
Software maintenance are pressing
(Largest cost in software development lifecycle >60%)
Spring 2005
ECE450H1S
Software Engineering II
2. Reengineering concepts
Understanding (predictive)
Repairing (corrective)
Improving (perfective)
Evolving (adaptive)
Related topics
Quality-driven software engineering (-ilities, quality attributes)
Requirements engineering (goals, non-functional requirements)
Software architectures (architectural views: components,
statecharts, features, )
Model-driven development (MOF, UML, EMF)
Design patterns (structural, behavioural)
Software refactoring (the code smells)
Performance tuning (trade-offs, multi-criteria optimizations)
Paradigms: Object-oriented, Goal-oriented, Agent-oriented,
Aspect-oriented
Spring 2005
ECE450H1S
Software Engineering II
2. Reengineering concepts
The Horseshoe model
Spring 2005
ECE450H1S
Software Engineering II
GOAL MODEL
REQUIREMENTS
Intentions
Forward engineering
GOAL MODEL
customizable
architecture
SOA
Architectures
STATECHARTS
Functions
Web services
components
LEGACY CODE
Source Code
Spring 2005
ECE450H1S
Software Engineering II
Reading assignments
on software architectures
Previous lecture note for ECE450H1S:
What is software architecture?
How to represent it?
D. Penny. Introduction to software
architecture:
http://www.cs.toronto.edu/~chechik/courses00
/ece450/lectures/penny.2up.pdf
M. Chechnik. ADL and Darwin.
http://www.cs.toronto.edu/~chechik/courses00
/ece450/lectures/Marsha-Darwin.pdf
Spring 2005
ECE450H1S
Software Engineering II
Further readings
Martin Fowler. The Refactoring
homepage: http://www.refactoring.com/
CMU SEI: Software architecture.
http://www.sei.cmu.edu/ata/ata_init.html
KMLab. On goal oriented software
engineering.
http://www.cs.utoronto.ca/km/goal_oriente
d
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Understanding
the architecture of VIM
Lees initial VIM architecture
Spring 2005
ECE450H1S
Software Engineering II
Vim 5.3
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
http://www.cs.toronto.edu/~yijun/literature/
paper/dayani-fard05fase.pdf
VIM 6.2
Spring 2005
ECE450H1S
Software Engineering II
Restructuring headers
Components provides and uses interfaces
In C/C++, such as VIM, interfaces are written in Headers
Abstraction and information hiding is a good principle in
SE, thus we should do the componentization
Large-cohesion and Low coupling is the modularity
principle of SE
The inclusion of the headers may violate this principle
Too much entities included leads to redundancies, and also
False dependencies
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Motivation
PHP, 65 KLOC
It is an parallel implementation of the
Media Shop, an information system
example in Goal-oriented Requirements
Engineering
It has been studied by clone detection
We want to show the connection of goal
models with aspect elicitation
Y. Yu, J.C. Leite, J. Mylopulos. From Goals to
Aspects: Discovering Aspects from Requirements
Goal Models, RE 2004. 38-47.
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
To right
LOGIN/OUT
Source Files
ACCOUNT_MGMT
PRIVACY_INFO
PAGE LAYOUT
PRODUCT_INFO
ADVANCED_SEARCH
SHOPPING_CART
Spring 2005
CHECK_OUT
SSL
ECE450H1S
Software Engineering II
ECE450H1S
Software Engineering II
SquirrelMail 1.5.0
Open source
70 KLOC
PHP + HTML
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Spring 2005
ECE450H1S
Software Engineering II
Summary
Reengineering is a hot topic in the software
engineering research
Case studies show some ways to understand a
legacy software
We will use several tutorials to explore further on
individual case studies, explaining advanced
topics on:
The concepts of software architecture (components,
service-oriented architecture, build architecture),
aspect-oriented paradigm, software refactoring
The software engineering tools for these tasks,
including code fact extraction, reflexion model,
Eclipse, aspectJ etc.
How to apply them to our course project
Spring 2005
ECE450H1S
Software Engineering II
Whats next
A Tutorial on Web Services
Next lecture will give you some examples
of requirement specifications and project
documents
Do we cover the material you want to
learn? If no, please send me email and
see whether the course can motivate your
study
Spring 2005
ECE450H1S
Software Engineering II