Q.7 Design Patterns
Patterns understand:
-Facade
Using simplified interface to a larger body of code, such as a class library. Java is a example of using facade, the Java Standard library contains dozens of classes for parsing font files and rederint text into geometric outlines and ultimately into pixel.
- Proxy
The proxy pattern usually have a main core object that is complex or in a remote place. A proxy is used to transfer the job to that main object. As the word "proxy" says, it is just a "middleman" of the program. Moreover, usually many proxies are occurs, that means the main object can serve multiple clients through different proxies.
-Observer
The pattern use two class Observer and Listener to handle events.
Don't understand:
-Prototype
-Adapter
Design patterns are templates and examples of sepecific solutions for specific problems. However, it is not the final solution of the problem, it just provide a direction for solving the problem. Using design patterns can speed up the development process. Also, Reusing design patterns helps to prevent subtle issues that can cause major problems and improves code readability for coders and architects familiar with the patterns.
-Facade
Using simplified interface to a larger body of code, such as a class library. Java is a example of using facade, the Java Standard library contains dozens of classes for parsing font files and rederint text into geometric outlines and ultimately into pixel.
- Proxy
The proxy pattern usually have a main core object that is complex or in a remote place. A proxy is used to transfer the job to that main object. As the word "proxy" says, it is just a "middleman" of the program. Moreover, usually many proxies are occurs, that means the main object can serve multiple clients through different proxies.
-Observer
The pattern use two class Observer and Listener to handle events.
Don't understand:
-Prototype
-Adapter
Design patterns are templates and examples of sepecific solutions for specific problems. However, it is not the final solution of the problem, it just provide a direction for solving the problem. Using design patterns can speed up the development process. Also, Reusing design patterns helps to prevent subtle issues that can cause major problems and improves code readability for coders and architects familiar with the patterns.


0 Comments:
Post a Comment
<< Home