Software As She’s Developed

Mahemoff’s Podcast/Blog – Web, Programming, Usability from the Author of ‘Ajax Design Patterns’ (AjaxPatterns.org)

Software As She’s Developed header image 4

Entries Tagged as 'Dependency Injection'

Automagic Event Registration

March 22nd, 2010 · 3 Comments · SoftwareDev

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: ···

Mocks, Stubs, Dependency Injection, and … XMLHttpRequest

October 31st, 2005 · 1 Comment · Links, SoftwareDev

"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: ·········