CSC/ECE 517 Fall 2010/ch7 7a AV: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
It is a template that provides a description of good design alternatives for the benefit of programmers. It is used to provide recurring solutions to design patterns in both static and dynamic object oriented languages.  
It is a template that provides a description of good design alternatives for the benefit of programmers. It is used to provide recurring solutions to design patterns in both static and dynamic object oriented languages.  


===Importance of design patterns in programming languages===
==Importance of design patterns in programming languages==


i. In a given context, design patterns can be a reusable solution for a general problem.<br>
i. In a given context, design patterns can be a reusable solution for a general problem.<br>
Line 12: Line 12:
iv. Design patterns are a framework for evolution and improvement of existing patterns. <br>
iv. Design patterns are a framework for evolution and improvement of existing patterns. <br>
v. It provides better abstraction for program organization. <br>
v. It provides better abstraction for program organization. <br>
==How to choose a particular design pattern?==
i. Identify the different classes and methods for a given problem.
ii. Recognize the different solutions that can be used to solve the problem.
iii. Compare and contrast the trade offs between the design patterns that can be used for that particular context.
iv. Recognize the language limitations for each of the design patterns.
v. Finally choose the most suitable and efficient design.

Revision as of 06:46, 1 December 2010

Novel implementations of design patterns in dynamic languages

Design Pattern

It is a template that provides a description of good design alternatives for the benefit of programmers. It is used to provide recurring solutions to design patterns in both static and dynamic object oriented languages.

Importance of design patterns in programming languages

i. In a given context, design patterns can be a reusable solution for a general problem.
ii. For the benefit of novice programmers, design patterns are usually documented systematically.
iii. Design patterns help us to learn from the experience of other software developers.
iv. Design patterns are a framework for evolution and improvement of existing patterns.
v. It provides better abstraction for program organization.





How to choose a particular design pattern?

i. Identify the different classes and methods for a given problem. ii. Recognize the different solutions that can be used to solve the problem. iii. Compare and contrast the trade offs between the design patterns that can be used for that particular context. iv. Recognize the language limitations for each of the design patterns. v. Finally choose the most suitable and efficient design.