





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






2.Why is design difficult? -created answerBecause design is an abstraction of the solution which has yet to be
Can a try/catch statement contain a try/catch statement? - answer 3.What is the Law of Demeter? - answer 4.Name four design principles: - answer1. Cohesion
7.What is the difference between routine design and original design? Give examples of each. - answer What is cohesion? -responsibilities of a module are. answerCohesion is a measure of how strongly related the functions or A module has high cohesion if all of its elements are working towards the same goal. What is coupling? - answer
What is important about the relationship between cohesion and coupling? -program is one with high cohesion (also called strong cohesion) within modules and low coupling (also answerA well-designed called weak coupling) between modules. Modules are easier to read and understand. Modules are easier to modify.There is an increased potential for reuse. Modules are easier to develop and test. Explain separation of concerns: - answer Name three examples of separation of concerns: -HTML and presentation style in CSS answer1. A web page with content expressed in
Are you more or less likely to have regression errors when maintaining code that abides by the singleresponsibility principle? - answerLess likely
What is a fan? - answer What is dependency inversion? - answer What is dependency injection? - answer
One of the absolute worst programming practices (when maintainability is a concern) is to have onemodule write code that is then executed.
What is common coupling? - answerTwo or more modules connected via global data.
}else {.. .} What is stamp coupling? -it. Example: passing a record with three fields to a module that only needs the first two fields. answerPassing a composite data structure to a module that uses only part of
What is data coupling? - answerModules that share data through parameters. What is information hiding? - answer Name and describe three characteristics of software design: -deterministic process we have heuristics or rules-of-thumb rather than precise steps. answer**Because design isn't a Role of principles and heuristics: they are used to guide decisions and assess intermediate results.Heuristics arrive from trial and error with practice.
These heuristics tend to produce designs with the desirable characteristics listed earlymanaging complexity. ** —primarily
What is encapsulation? -information hiding and abstractions. answerEncapsulation is an implementation mechanism for enforcing
There is no clear widely accepted definition of encapsulation. It can mean: A grouping together of related things (records, arrays) A protected enclosure (object with private data and/or methods) Write an example of each type of coupling: -2. Common answer1. Content
What is Fan In/ Fan Out? - answerHigh Fan Out is bad What is clojure? - answer For inheritance purposes, can you extend a class that is "final" in Java? -it can't be inherited from so you can't extend its behavior via inheritance answerIf a class is final (in Java)
What's another name for high level design? - answerArchitecture Why is it a good idea to attempt routine design before an original design? -means to apply common patterns to familiar problems. answerA routine design
What are the three main characteristics of abstraction? -included? answer1. Which type of details should be
**Encapsulation is a means of implementing information hiding. It is a programming language featurethat encloses one or more items. Examples: arrays recordsclasses
**subroutines
Name three examples of Information Hiding? -Avoid global variables answerScope variables as tight as possible The choice of algorithm or data structureSeparation of Interface and Implementation
What is the degree of coupling determined by? -and number of parameters passed for a connection between classes/interfaces. answer1. The complexity of the reference. The type
What is the difference between an interface and a concrete class? An abstract class? - answer What are heuristics? -thumb that works in most but not all situations. answerTrial and error methods for solving a problem. A heuristic is a rule-of-
What do analysis models represent? -domain and design models represent abstractions from the solution domain answerAnalysis models represent abstractions from the problem
What is the optimal relationship between use cases within an iteration and between iterations? - answerThere should be high cohesion among use cases within an iteration and low coupling between use cases in different iterations. It is generally easier to implemented a group of functionally related use cases rather than a group ofunrelated use cases. High coupling between use cases in different iterations will make development and integration more difficult. What type of fan-in/out will a popular, well written, easy to maintain, low utility module likely have? - answerHigh Fan-In
What is the worst Fan situation a module could be in? - answerHigh Fan-Out Which design strategy is most likely to yield reusable components that can be reused on other projects.- answerBottom-up aggregation