P4L5 Design Principles

.pdf

School

Georgia Institute Of Technology *

*We aren’t endorsed by this school

Course

6310

Subject

Computer Science

Date

Oct 30, 2023

Type

pdf

Pages

14

Uploaded by SuperElkMaster712

Report
Design Guidelines e Design CAN'T resly be taught, but has to be learned through experience o Offered severa ways to learn from the experience of others l e Design principles are informal guidelines Design Quality » One of severa ways of gauging the quality of designs e Utimate validation of design is to build the program and have its users report their satisfaction o Can buld 8 prototype or conduct design reviews e Various metrics can compute actudl numbers assessing the quality \ « Least expensive but conceivably most valuable
Design Guidelines Coupling e also caled 8 design principle or design heuristics » Extent to which 3 module is dependent on other modules * an ipformal piece of e Coupling of your advice about the . modules should be low in structure of 8 design order to make it easier to maintain them o téke the form of * invented by Larry k do's and don'ts Constantine Cohesion Orthogonality . o Extent to which the features of a o Extent to which 8 module has 8 system can be varied independently single purpose i gie purp e Enhance the orthogonality of your system in order to « Cohesion shoud be high g:/aa'fgblfgotrg i?Spfli‘cgr;?s in order to enhance understandability and o Clarifies system promote reuse descriptions and support automatic generation e Developed by David l e Invented b.y Larry McGovern and Christopher Constantine Date
e also caled encapsulation o Extent to which the implementation details of a system are encapsulated behind abstract interfaces e Use of inheritance can Information Hiding Catalog e Give the principle's name, author, definition and implications of its use violate information hiding e Only guidelines and not e developed by David Parnas hard-and-fast rules Place the letter indicating the described design principle into the text box next to the situation describing it: A. Coupling B. Cohesion C. Orthogonality D. Information hiding B C D A Improves reusability Enables maximum variability Raises the level of adbstraction Requires more code reading
Catalog e Give the principle's name, author, definition and implications of its use e Only guidelines and not hard-and-fast rules Liskov Substitution Principle e Barbara Liskov e Subclass instances should satisfy . parent-class constraints e Implies that child class instances should obey parent class invariants \ and method contracts
Law of Demeter e Karl Lieberherr e Suggests limits on the classes that can be referred to by 8 given method o Limits the objects that can be referred to e Reduces coupling, but sometimes requires extra wrapper classes Hollywood Principle e Donald Wallace o Frameworks consist of a set of abstract classes together with rules for the ways that therr concrete subclasses may interact » Suggests that calls should be made from the framework to the client classes e also caled inversion of control \ « "Don't cal us; we'l cal you"
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: . the position that distinguishes between DNA and RNA is 2. the carbon that the phosphate group…
Q: In outer space two space modules are joined together by a massless cable. These probes are rotating…
Q: Assuming the company uses direct labor-hours to compute its predetermined overhead rate, what is the…
Q: A stereo store is offering a special price on a complete set of components (receiver, compact disc…
Q: Netowrk Concepts Class: Considering the total number of IPv4 addresses is limited to 4,294,967,296…
Q: According to a recent report​ (based on historical​ data), 47% of college student internships are…
Q: After having been on the air for more than a decade, Fox's American Idol seemed to be suffering from…
Q: Graph the feasible region subject to the following constraints: Select the correct answer below: O…
Q: A person exerts a horizontal force of 190 N in the test apparatus shown in the figure. Find the…
Q: In Oracle database, If we have Iname field in our table then regardless of how the value have been…
Q: Two blocks are connected by a very light string passing over a massless, frictionless pulley (see…
Q: You may be wondering, "Why bother with a technical analysis?" Explain how it is used, why it is…
Q: When Dylan jumps into the air, his height in feet above the surface of the water is given by h = -…
Q: Companies can choose from several different branding strategies. Kohl’s, with its own Croft &…
Q: 5 Determine if the following are functions of x, and if they are determine if they are 1-1. Explain…
Q: Find the quotient and remainder using synthetic division for r3 + 6x? + 15x + 15 x + 2 The quotient…
Q: 1) The circuit in the above figure (1) has a supply voltage of 60 volts, and three resistors of…
Q: Which of the following is not an example of an open ended question? O What features do you want on…
Q: ind the intervals on which f is increasing or decreasing. Find the local maximum and minimum values…
Q: The following data was collected from 1 bag of Hershey Kisses®. Each Kiss® was weighed in grams with…
Q: Definition 3: Let X be a subspace of Rn and let X be the set of all vectors in R" that are…
Q: The Brew House needs to decide which of two coffee maker designs is better environmentally. Using…