De roadrunner was aan het vechten met een code uitdaging.
De oplossing dreigde te complex te worden.
Nee, het moest simpel.
De oplossing was een tandem object.
Dit object wordt getoond, maar onzichtbaar voor de gebruiker wordt het echte object gewijzigd.
Dat op zijn beurt het tandem object wijzigt.
Dat moet toch een bekend design pattern zijn?
http://en.wikipedia.org/wiki/Design_pattern_(computer_science)
Maar de Gang of Four http://en.wikipedia.org/wiki/Gang_of_Four_(software) noemt deze truc niet.
The Gang of Four:Ralph, Erich, Richard, and John.
Een hoop theorie, maar de praktijk vraagt soms om andere oplossingen!
Verfrissend is dan ook dit boek:
http://www.amazon.com/Dating-Design-Patterns-Solveig-Haugland/dp/0974312002
The Design Patterns Conspiracy: How It All Happened When the Gang, as well as Grady, Christopher, and the Fifth member of the Gang of Four, Steve Swillvellis, were in college, they invented the ultimate reusable set of patterns for the most complex system of interactions available: dating. Their success with women was famous throughout the state. As Christopher said at the time, "Do you have any idea how unusual that is, for guys who read Knuth for fun?"
Then the sweet smell of success turned bitter. They realized that their grades were slipping, they were no longer as interested in computer science, and that they had more than once considered careers in marketing. They realized that while it is extremely pleasurable to have the dating world by the tail, that there were Higher Considerations. The scientific advancement and the economy of the world would be destroyed if all geeks were out dancing on Saturday nights instead of debugging.
So they suppressed their work and, to distract those who had heard of their remarkable book on patterns, they produced Design Patterns instead.
http://datingdesignpatterns.com/inthebeginning.htmlHadden de Gang of Five het hier maar bij gelaten, dat had een hoop te complexe software gescheeld.
No comments:
Post a Comment