NOTE: This talk was first delivered before Clarkson decided that punching someone in the face over a steak was a good idea. When I deliver this talk now I use different subject matter.
Tonight: James May writes “Hello, World!”, Richard Hammond cleans up the mess and Clarkson does some shouting.
When most people first try to apply good OO design the wheels fall off as soon as their app starts to get complex. TDD, Mock of T, IoC, WTF? What are these TLAs, why should you care and where’s that owner’s manual when you need it, anyway?
Most people are afraid of trying TDD and IoC because they don’t really know what they’re doing. In true Top Gear spirit we’re not going to let ignorance prevent us from having a go, so sit back and watch us point a compiler in the general direction of France and open the throttle.
In this talk we’re going to introduce inversion of control from first principles so that it’s not just an abstract concept but a real, “I finally get it” tool in your toolbox. We’ll start with “Hello, world!” and finish by writing a functioning IoC container - live, in real-time and without a seat-belt - and you can take the code home afterwards and test-drive it yourself.
In the right hands, IoC is a very sharp tool. Just don’t let Clarkson drop it on his foot…
*Actual Top Gear presenters may not be present. But it will be awesome anyway.
There is a version of Inversion of control from first principles: Top Gear Style that I presented at DDD Brisbane 2012 on YouTube.
Cyclist. Runner. Hiker. Singer. Violinist. Budding skydiver. Photographer. Former semi-pro photographer. Ballroom dancer. Motorcyclist. Occasional sailor. Good with edged weapons. Red Frog. Legatee.
It should go without saying that any opinions, beliefs and other statements made here are my own, and do not represent in any way the views of any employer either past or present. Let's be grown-ups about this, shall we?
I'm Head of IT & Engineering at Etax, Australia's largest privately-held tax agent. Other interesting places I've been before Etax include Octopus Deploy, ThoughtWorks, Readify, Zap BI, Realex Payments and TRL.
I'm a fan of high-quality code, domain-driven design, event-driven architecture, continuous delivery and, most importantly, shipping software that works and that solves people's problems.
I have a number of small open-source creations, including Nimbus, ConfigInjector and NotDeadYet, and am an occasional contributor to several more.
I'm a regular speaker and presenter at conferences and training events. My mother wrote COBOL on punch cards and I've been coding in one form or another since I was five years old.