![]() ![]() Solution: Assign responsibility to the class that has the information needed to fulfill it. Problem: What is a basic principle by which to assign responsibilities to objects? Many patterns, given a specific category of problem, guide the assignment of responsibilities to objects. In object-oriented design, a pattern is a named description of a problem and solution that can be applied in new contexts ideally, a pattern advises us on how to apply its solution in varying circumstances and considers the forces and trade-offs. It is not UML or any other technology.' : 272 Thus, the GRASP principles are really a mental toolset, a learning aid to help in the design of object-oriented software. Larman states that 'the critical design tool for software development is a mind well educated in design principles. Modules are independent if they can function completely without the presence of the other. Loosely coupled are made up of units that are independent or almost independent. Highly coupled have program units dependent on each other. ![]() These techniques have not been invented to create new ways of working, but to better document and standardize old, tried-and-tested programming principles in object-oriented design.ĬOUPLING and COHESION COUPLING An indication of the strength of interconnections between program units. All these patterns solve some software problem common to many software development projects. The different patterns and principles used in GRASP are controller, creator, indirection, information expert, low coupling, high cohesion, polymorphism, protected variations, and pure fabrication. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |