Category : Tutorials » Java Programming
Studying Design Patterns. 14. Notes on Object . Java Design Patterns. 15. 1. Creational Patterns. 17. The Factory Pattern. 18. How a Factory Works .
Download File
Free PDF eBooks Download
Tutorials
Java Programming
Content Summary :
S OME B ACKGROUND ON D ESIGN P ATTERNS The term “design patterns” sounds a bit formal to the uninitiated and can be somewhat off-putting when you first encounter it. But, in fact, designpatterns are just convenient ways of reusing object-oriented code betweenprojects and between programmers. The idea behind design patterns issimple-- write down and catalog common interactions between objects thatprogrammers have frequently found useful. The field of design patterns goes back at least to the early 1980s. At that time, Smalltalk was the most common OO language and C++ was still inits infancy. At that time, structured programming was a commonly-usedphrased and OO programming was not yet as widely supported. The idea ofprogramming frameworks was popular however, and as frameworksdeveloped, some of what we now called design patterns began to emerge. One of the frequently cited frameworks was the Model-View- Controller framework for Smalltalk [Krasner and Pope, 1988], which dividedthe user interface problem into three parts. The parts were referred to as adata model which contain the computational parts of the program, the view,which presented the user interface, and the controller, which interactedbetween the user and the view.