Relative Content

Tag Archive for abstraction

Refactorable God v.s. too many classe [duplicate]

This question already has answers here: How do I prove or disprove “God objects” are wrong? (8 answers) Closed 11 years ago. So I have this problem: in order to structure my code hierarchically, for every new tiny thing, I create a separate sub-folder, file, class … and in it one 10-line function. It is […]

Short function names for often used function or general concept [duplicate]

This question already has answers here: Why are cryptic short identifiers still so common in low-level programming? (11 answers) Closed 9 years ago. I am a bit in a dilemma: Let’s suppose I have a very general function and a specialization of it for convenience reasons. Let’s also assume that the specialized function is used […]

Short function names for often used function or general concept [duplicate]

This question already has answers here: Why are cryptic short identifiers still so common in low-level programming? (11 answers) Closed 9 years ago. I am a bit in a dilemma: Let’s suppose I have a very general function and a specialization of it for convenience reasons. Let’s also assume that the specialized function is used […]

Short function names for often used function or general concept [duplicate]

This question already has answers here: Why are cryptic short identifiers still so common in low-level programming? (11 answers) Closed 9 years ago. I am a bit in a dilemma: Let’s suppose I have a very general function and a specialization of it for convenience reasons. Let’s also assume that the specialized function is used […]

Abstracting user interface from domain

My course text suggests creating a ‘facade’ class to completely abstract the user interface from the domain layer. That is, the UI uses only basic types, and if it needs a reference to a domain object, it only knows it as an Object.

Abstracting user interface from domain

My course text suggests creating a ‘facade’ class to completely abstract the user interface from the domain layer. That is, the UI uses only basic types, and if it needs a reference to a domain object, it only knows it as an Object.