java script design pattern mediator
" It places the responsibility for maintaining a constraint squarely in the mediator."
what is the meaning of this sentence?
it means that you can more-or-less hijack an existing API, add your own validation to the values accepted by some/all of the API calls, and seamlessly return acceptable values from the original API via the new facade.
this would be in contrast to re-coding the orig API to check constraints inline. if somethings already there are working but not ideal, this is one way to modify it without having to "re-invent the wheel".
im not saying "don't learn the patterns", but don't worry as much about coloring inside the lines as writing a fast and maintainable application.
Last edited by rnd me; 11-25-2012 at 03:14 PM.
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
Agree!!!You can find a Java book which describes this part in detail to read.
Originally Posted by rnd me
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread