Do you use design patterns?

后端 未结 15 2142
盖世英雄少女心
盖世英雄少女心 2020-12-23 09:56

What\'s the penetration of design patterns in the real world? Do you use them in your day to day job - discussing how and where to apply them with your coworkers - or do the

15条回答
  •  暖寄归人
    2020-12-23 10:49

    Yes, design patterns are largely used in the real world - and daily by many of the people I work with.

    In my opinion the biggest value provided by design patterns is that they provide a universal, high level language for you to convey software design to other programmers.

    For instance instead of describing your new class as a "utility that creates one of several other classes based on some combination of input criteria", you can simply say it's an "abstract factory" and everyone instantly understands what you're talking about.

提交回复
热议问题