On Friday we got to the point where the FX buiness logic code was suitably decoupled from the display logic that we could write our first test for the business logic. In the words of Homer Simpson, “Woo hoo!”.
Test one was a simple one; can we construct the FX ’live point’ object. After adding a few interfaces and mocking up a service provider or two we could.
The object uses two-stage construction; not ideal, but the code doesn’t use exceptions yet.
We couldn’t skate last weekend as we were in Dublin at the wedding. This weekend was going to be really hot in London (35C+) which isn’t ideal skating weather. We decided to get up a bit early and skate before it got too hot… So we both saw 7.30am on a Sunday morning for the first time in a long time and skated before it got too hot at Hyde Park.
We had a busy weekend. Michelle’s brother Chris married Hilary in Dublin. Good fun was had by all and it was a wonderful few days. The wedding was in Castleknock and the reception was at The Four Seasons in Ballsbridge.
It was a bit of a shock to have to come back home; I could quite happilly have stayed on a few days longer at the Four Seasons and spent the time drinking Guinness and watching the world go by…
Bleugh! You are lost in a maze of crapy code, all alike (and much of it copy and pasted!). The last few days have been deep in the heart of darkness. Gently teasing the business logic and the display logic of the FX code apart so that we might one day be able to write tests for the business logic.
We’re nearly there but it’s been a long job. Much longer than any of the other refactorings that we’ve done.
Writing stuff down makes you think about things. Take the “balls in the air” piece. I had a problem, I didn’t realise what the problem was until I wrote about it and now, a week later I see the problem coming up again and know what it is and how to avoid it. Magic!
Some things that take 4 hrs can be done in 8 30 minute segments. Some must be done in one 4 hr session.
As I mentioned a while back, the refactoring project’s FX functionality was developed by guess work. We’re fixing that now by spending some time gaining an understanding of the problem domain as we refactor.
I’ve always been pretty proud of the fact that I deliberately set out to know nothing about your business. I think it makes me a better developer. I know that I know nothing about how your business works; I don’t assume that I know better than you do just because I’ve read about your business area a couple of times.
Hit a deadline early this afternoon and hadn’t chased up some requirements so I ran out of things to implement. Faced with a couple of hours spare I whipped out Gimpel Lint and started to polish…
I’ve been a fan of Gimpel’s PC Lint product for several years. It’s like turning compiler up to warning level 11. I try and keep all of my code passing through it without any warnings.
When we were in Amsterdam doing the stag thing I saw a Jethro Tull video on the local music station. I wasn’t actually aware that such a thing existed; but it sure brought back memories.
It was a live version of “Living In The Past”. Good stuff.
On Saturday we were wandering through Virgin and there in the bargin bin was a copy of “Through The Years”, a kinda “best of” thing.
So, I read my own blog and follow the links I put in the entries, does that make me a bad person? After writing the post on Bob Martin’s book I went off to read his blog, good stuff, read it!
I especially like the “We will not ship shit” entry. That rings so very true with me. I’m sorry, if you want crap go find someone else to write it for you; life’s too short and I’m not interested.
I want someone to quote for converting my company web site, www.jetbyte.com, to use Movable Type as its content management system. Anyone interested in the work?