What is the difference between design patterns and libraries?
问题 What is the difference between design patterns and libraries? I cannot seem to find the difference anywhere. 回答1: DesingPatterns are considered to assist the developer by solveing already known problems. For instance, the ObserverPattern is used to observe a concreate object and carry out specific actions, the mediator is used to center the application logic and handle dependencies on a object, the composite is used to model a tree structure, etc. In general DesignPatterns can be categorized