An open API service indexing awesome lists of open source software.

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

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 分析