Pattern and<br>Best Practices

Video
Pattern and<br>Best Practices

In order to increase source code quality, software engineering establishes proven styles and patterns for implementing certain functionality. For example, object-oriented programming bears the concept of data encapsulation. Hence, it is a proposed best practice to declare each field private to its class, and to provide externally visible access methods where required to retrieve or set the according value. Furthermore, in case of bidirectional navigable associations, it is strongly advised to ensure referential integrity between objects, a goal easily met through proper access methods. Finally, object composition should introduce a life-cycle dependency in that dependent object are deleted whenever their parent object is deleted. UML Lab includes templates implementing various best practices including these examples. Hence, UML Lab helps in adapting existing source code to most recent technology advances and supports the effective enforcement of code conventions.