Summary of common design patterns

This article is my study notes, mainly Learn self fashion Silicon Valley design pattern video Shang Silicon Valley design mode Factory mode mainly comes from Snail college design mode 1 observer mode The meteorological station designs an open API to push data to the website. When updating meteorological data, it needs to * * inform (push) ...

Posted by n00byboy on Mon, 02 May 2022 23:07:35 +0300

Design Mode - Combination Mode (Did you understand the double eleven combination discount)

Combination mode The Composite Pattern, also known as the Part Whole Pattern, is used to treat a group of similar objects as a single object. The composition pattern composes objects according to a tree structure, which is used to represent parts and whole hierarchies. This type of design pattern is a structural pattern that creates a tr ...

Posted by Gaoshan on Sun, 01 May 2022 03:45:42 +0300