Facade Pattern

In computer programming, a facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can:
  • make a software library easier to use and understand, since the facade has convenient methods for common tasks;
  • make code that uses the library more readable, for the same reason;
  • reduce dependencies of outside code on the inner workings of a library, since most code uses the facade, thus allowing more flexibility in developing the system;
  • wrap a poorly designed collection of APIs with a single well-designed API.
The facade is an object-oriented design pattern. Facades are very common in object-oriented design. For example, the Java standard library contains dozens of classes for parsing font files and rendering text into geometric outlines and ultimately into pixels. However, most Java programmers are unaware of these details, because the library also contains facade classes (Font and Graphics) that offer simple methods for the most common font-related operations.

See also

External links

 

<< PreviousWord BrowserNext >>
337 bc
go (board game)
angiogenesis
a600
attention deficit hyperactivity disorder
barn owl
boggart
baloch
factsheet five
cassette culture
christian democratic appeal
skin cancer
lodi, italy
kaiju
gamera
the big u
sasquatch
shub niggurath
damselfly
oz
billi 99
swamp thing
william hope hodgson
adapter pattern
hms sidon
dll
versatackle knot
george mcfarland
bridge pattern
tire
muskeg
asia carrera
singleton pattern
list of children's literature authors
portable executable
lee kuan yew
list of playwrights
monster
beetle (disambiguation)
triticale
brian froud
pika
ida rentoul outhwaite
richard dadd