https://github.com/21hook/creator
Implementing a Creator using JavaScript
https://github.com/21hook/creator
Last synced: about 1 year ago
JSON representation
Implementing a Creator using JavaScript
- Host: GitHub
- URL: https://github.com/21hook/creator
- Owner: 21hook
- Created: 2018-01-11T06:12:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T03:26:12.000Z (over 8 years ago)
- Last Synced: 2025-02-09T15:38:43.204Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Creator Pattern
### Implementing a Creator/Builder using JavaScript
Creator/builder pattern: the template of creting an object; seperate the representation & behaviour of an object
1. Design needs: readibility, reusability, maintance(change once, change everywhere),
2. Design means: defining a class to repersent a set of objects
3. Design benifits:
From the implementor's perspective: separation of representation & behaviour, abstraction boundary, information hiding
From the client's perspective: no need to worry about the implement details, easily to use
### Design Abstract
cooperative building a set of objects design relation
maintance in the furture design relation
[design object]
def, design pattern, design intentention/purpose 分析