Further to last night's post on custom events, I've set things up now to use "magic event registration". It's a little like the auto-wiring facility of a dependency injection container. It's quite simple really - the app's initialisation sequence does this:
Register all components that might listen to something.
Register all events they might listen to.
For each [...]
[Read more →]
Tags: Ajax Patterns·Dependency Injection·Javascript·JQuery
"A Mock Is Not So Stupid After All!"
Dave Crane's been talking about Mocking the Server-Side:
A Mock Object is a stand-in for the real thing. Few modern programs are really standalone, and enterprise apps require a very complex context in order to operate; containers, databases, directories, web services, etc. This can make testing difficult, [...]
[Read more →]
Tags: AjaxPatterns·Dependency Injection·Links·Mock·Mock Objects·Software·Testing·Web·Web2.0·XMLHttpRequest