Presentation is loading. Please wait.

Presentation is loading. Please wait.

Software Engineering Principles Principles form the basis of methods, techniques, methodologies and tools Principles form the basis of methods, techniques,

Similar presentations


Presentation on theme: "Software Engineering Principles Principles form the basis of methods, techniques, methodologies and tools Principles form the basis of methods, techniques,"— Presentation transcript:

1 Software Engineering Principles Principles form the basis of methods, techniques, methodologies and tools Principles form the basis of methods, techniques, methodologies and tools Seven important principles that may be used in all phases of software development Seven important principles that may be used in all phases of software development Apply to the software product as well as the development process Apply to the software product as well as the development process 1

2 Key principles Rigor and formality Rigor and formality Separation of concerns Separation of concerns Modularity Modularity Abstraction Abstraction Anticipation of change Anticipation of change Generality Generality Incrementally Incrementally 2

3 Rigor and formality Software engineering is a creative design activity, BUT It must be practiced systematically Software engineering is a creative design activity, BUT It must be practiced systematically Rigor is a necessary complement to creativity that increases our confidence in our developments Rigor is a necessary complement to creativity that increases our confidence in our developments Formality is rigor at the highest degree Formality is rigor at the highest degree 3

4 Examples: Rigor and formality Product: Product: – Formal-Mathematical analysis of program correctness – Formal-Mathematical analysis of program correctness – Rigorous-Systematic test data derivation – Rigorous-Systematic test data derivation Process: Process: – Rigorous- detailed documentation of each development step in waterfall model – Rigorous- detailed documentation of each development step in waterfall model – Formal- automated transformational process to derive program from formal specifications – Formal- automated transformational process to derive program from formal specifications 4

5 Separation of concerns To dominate complexity, separate the issues to concentrate on one at a time To dominate complexity, separate the issues to concentrate on one at a time – "Divide & conquer" – "Divide & conquer" Supports parallelization of efforts and separation of responsibilities Supports parallelization of efforts and separation of responsibilities 5

6 Examples: Process: Go through phases one after the other as in waterfall Model Process: Go through phases one after the other as in waterfall Model –Do separation of concerns by separating activities with respect to time –Do separation of concerns by separating activities with respect to time – Product: Keep different types of product requirements separate – Product: Keep different types of product requirements separate –Functionality discussed separately from the performance constraints –Functionality discussed separately from the performance constraints 6

7 Modularity A complex system may be divided into simpler pieces called modules A complex system may be divided into simpler pieces called modules A system that is composed of modules is called modular A system that is composed of modules is called modular Supports application of separation of concerns Supports application of separation of concerns – when dealing with a module we can ignore details of other modules – when dealing with a module we can ignore details of other modules 7

8 Modularity: Cohesion and coupling Each module should be highly cohesive Each module should be highly cohesive – module understandable as a meaningful unit – module understandable as a meaningful unit – Components of a module are closely related to – Components of a module are closely related to one another one another Modules should exhibit low coupling Modules should exhibit low coupling – modules have low interactions with others – modules have low interactions with others – understandable separately – understandable separately 8

9 An Example 9

10 Abstraction Identify the important aspects of a phenomenon and ignore its details Identify the important aspects of a phenomenon and ignore its details – Special case of separation of concerns – Special case of separation of concerns – The type of abstraction to apply depends on purpose – The type of abstraction to apply depends on purpose Example: the user interface of a watch (its buttons) abstracts from the watch's internals for the purpose of setting time; other abstractions needed to support repair Example: the user interface of a watch (its buttons) abstracts from the watch's internals for the purpose of setting time; other abstractions needed to support repair 10

11 Anticipation of change Ability to support software evolution requires anticipating Ability to support software evolution requires anticipating potential future changes potential future changes –It is the basis for software evolvability –It is the basis for software evolvability 11

12 Generality While solving a problem, try to discover if it is an instance of a more general problem whose solution can While solving a problem, try to discover if it is an instance of a more general problem whose solution can be reused in other cases be reused in other cases Sometimes a general problem is easier to solve than a special case Sometimes a general problem is easier to solve than a special case –Carefully balance generality against performance and cost –Carefully balance generality against performance and cost 12

13 Incrementality Process proceeds in a stepwise fashion (increments) Process proceeds in a stepwise fashion (increments) Examples (process) Examples (process) – deliver subsets of a system early to get early feedback from expected users, then add new features incrementally – deliver subsets of a system early to get early feedback from expected users, then add new features incrementally – deal first with functionality, then turn to performance – deal first with functionality, then turn to performance 13

14 14 Process: A Generic View

15 15 A Layered Technology Software Engineering a “quality” focus process model methods tools

16 16 A Process Framework Process framework Framework activities work tasks work products milestones & deliverables QA checkpoints Umbrella Activities

17 17 Framework Activities Communication Communication Planning Planning Modeling Modeling Analysis of requirements Analysis of requirements Design Design Construction Construction Code generation Code generation Testing Testing Deployment Deployment

18 18 Umbrella Activities Software project management Software project management Formal technical reviews Formal technical reviews Software quality assurance Software quality assurance Software configuration management Software configuration management Work product preparation and production Work product preparation and production Reusability management Reusability management Measurement Measurement Risk management Risk management

19 19 The Process Model: Adaptability the framework activities will always be applied on every project... BUT the framework activities will always be applied on every project... BUT the tasks (and degree of rigor) for each activity will vary based on: the tasks (and degree of rigor) for each activity will vary based on: the type of project the type of project characteristics of the project characteristics of the project common sense judgment; concurrence of the project team common sense judgment; concurrence of the project team

20 20 The CMMI Capability Maturity Model Integration (CMMI) – developed by The Software Engineering Institute (SEI) Capability Maturity Model Integration (CMMI) – developed by The Software Engineering Institute (SEI) The CMMI defines each process area in terms of “specific goals” and the “specific practices” required to achieve these goals. The CMMI defines each process area in terms of “specific goals” and the “specific practices” required to achieve these goals. Specific goals establish the characteristics that must exist if the activities implied by a process area are to be effective. Specific goals establish the characteristics that must exist if the activities implied by a process area are to be effective. Specific practices refine a goal into a set of process- related activities. Specific practices refine a goal into a set of process- related activities.

21 21 The CMMI Level 0: Incomplete - Process goals not satisfied Level 0: Incomplete - Process goals not satisfied Level 1: Performed - Process goals satisfied Level 1: Performed - Process goals satisfied Level 2: Managed - Process areas conforms to organizationally defined policy, resources are available, work tasks are monitored Level 2: Managed - Process areas conforms to organizationally defined policy, resources are available, work tasks are monitored Level 3: Defined - Tailored according to the organization’s standard processes Level 3: Defined - Tailored according to the organization’s standard processes Level 4: Quantitatively managed - Quantitative assessment Level 4: Quantitatively managed - Quantitative assessment Level 5: Optimized - Processes are optimized Level 5: Optimized - Processes are optimized

22 22 Process Patterns Process patterns define a set of activities, actions, work tasks, work products and/or related behaviors Process patterns define a set of activities, actions, work tasks, work products and/or related behaviors A template is used to define a pattern A template is used to define a pattern Typical examples: Typical examples: Customer communication (a process activity) Customer communication (a process activity) Analysis (an action) Analysis (an action) Requirements gathering (a process task) Requirements gathering (a process task) Reviewing a work product (a process task) Reviewing a work product (a process task) Design model (a work product) Design model (a work product)

23 23 Process Assessment The process should be assessed to ensure that it meets a set of basic process criteria that have been shown to be essential for a successful software engineering The process should be assessed to ensure that it meets a set of basic process criteria that have been shown to be essential for a successful software engineering. Many different assessment options are available: Many different assessment options are available: SCAMPI SCAMPI CBA IPI CBA IPI SPICE SPICE ISO 9001:2000 ISO 9001:2000

24 24 Assessment and Improvement

25 25 Personal Software Process (PSP) Recommends five framework activities: Recommends five framework activities: Planning Planning High-level design High-level design High-level design review High-level design review Development Development Postmortem Postmortem stresses the need for each software engineer to identify errors early and as important, to understand the types of errors stresses the need for each software engineer to identify errors early and as important, to understand the types of errors

26 26 Team Software Process (TSP) Each project is “launched” using a “script” that defines the tasks to be accomplished Each project is “launched” using a “script” that defines the tasks to be accomplished Teams are self-directed Teams are self-directed Measurement is encouraged Measurement is encouraged Measures are analyzed with the intent of improving the team process Measures are analyzed with the intent of improving the team process

27 27 The Primary Goal of Any Software Process: High Quality Remember: High quality = project timeliness Why? Less rework!


Download ppt "Software Engineering Principles Principles form the basis of methods, techniques, methodologies and tools Principles form the basis of methods, techniques,"

Similar presentations


Ads by Google