How do you define a design pattern when reading source code?

Is there a way to better define the design pattern in the source code, especially. if you are not familiar with all the patterns? What is the best way to identify them?

+3
source share
4 answers

What do you mean? You identify them by knowing them, and then seeing the signs of one and stacking the pieces.

Sometimes the name indicates, FooFactoryetc.

There is no "magic." I do not quite understand the essence of this issue ...

+5
source

/, , . /, , , , , Gang of Four

+1

, , - . ( ) , , - .

0

Code Smells. , / . - . .

0

Source: https://habr.com/ru/post/1735359/


All Articles