- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 69字
- 2021-07-16 17:46:07
Using high cohesion and loose coupling principles
As far as possible, Puppet modules should be made up of classes with a single responsibility. In software engineering, we call this high, functional cohesion. Cohesion in software engineering is the degree to which the elements of a certain module belong together. Try to make each class have a single responsibility, and don't arbitrarily mix together unrelated functionalities in your classes.