Skip to main content

Software development is in the Doldrums


"Don't get off the boat."

"Seriously, never get off the boat," The instructor said, leaning forward and looking at each of us in turn.

"But surely if it's sinking..." We reply, somewhat confused and slightly incredulous. We've seen Titanic, we think to ourselves, we know how this sea survival stuff works...

"OK" He concedes, If things get really bad, "Get on the life raft if you can step-up from the boat to the life raft".

"But, But... the yacht is like 37ft long, Do we want to wait until that whole boat is lower than the life-raft? When less than 1ft of the yacht is above the surface? Meanwhile all the time the life raft is just there... floating happily alongside."

"Pretty much, yes," he said nodding.

Image result for apocalypse now never get outta the boat
The movie Apocalypse Now speaks the truth.

That was about 15 years ago. Not much has changed since. The reasons are manifold. Firstly, the yacht is a decent shelter. The thin plastic of a legal minimum life-raft isn't going to protect you from the debris and bad weather the sea can throw at you.

The sail-yacht costs hundreds of thousands of pounds, it has layers of redundancy and a spare everything. The life raft is a legally mandated glorified inflatable bag. Take your choice.

When the boatyard builds a yacht, it's not like they are developing an app. For example, there are very few single points of failure on a sail-yacht. And for an experienced sailor, a workaround can usually be found to the few that do exist. A sailor can usually test using those same workarounds/hooks to see what is actually broken.

For example, has the engine failed? Put up the mainsail while you investigate. Has the mainsail torn? Use the Genoa etc.

Batteries flat? No worries the engine should start, that has a separate battery. Run the engine, and that should charge all the batteries.

Helm not working? Control the rudder directly from the emergency tiller/winch handle. If that doesn't work maybe you've managed to break the rudder itself, you can deploy a drogue and use that to direct you. ( A drogue is a sort of cross between a bucket and a net that will add drag to the side of the boat it's placed on.)

On a recent sailing holiday, the first after a few years, I noticed this robustness once again. I also saw the places where the usual robustness was absent.  The areas where there is no redundancy and a reasonable chance of failure tend to be those added in the last couple of decades.

The GPS/Chart plotter for example. When you start to sail, you learn the old-fashioned way. No GPS, just charts, hand-bearing compass etc. I remember uttering more than a few remarks about how the communists seem to have won the cold war, at least in the arena of sailing navigation.

Me teaching the crew to second guess the machines.

But I was wrong. You need to use the old methods even when you have a GPS Chart plotter installed an running. Why? Because chart plotters are like much of software we use today. That is, they are a bit rubbish and are not geared to work in a way that makes your life much easier.

As you've probably already noticed, they are a single point of failure.  Chart plotters are a dependent system, requiring the battery to have juice before they work at all.  They are also prone to inaccuracy. For example, the GPS may assign you coordinates quite a way from where you are. Take a look at this plot:

That plot was off by several hundred yards.

I was on the same (East) side of the island on both occasions, but that's not what the plotter had decided. Imagine [foolishly] relying on that at night.

GPS Co-ordinates can be inaccurate. And this inaccuracy can be estimated by the device. But does the display indicate this? Nope, a handy circle indicating possible location range is not displayed.

What's the backup plan? Its either have your own handheld GPS (I do) or revert to tried and tested nautical navigation techniques (I also do). There's not much to jury-rig on a marine GPS system.

Modern software isn't rigged to allow things to be tested, modified or fixed. I can check the fuel, oil and coolant levels on the diesel engine before departure. I can check for oil leaks or a failure in the sea-water cooling. For the chart plotter, even after over 20 years in the software development business, I've had to resort to rebooting the GPS chart plotter repeatedly until it works.

With Investigating Software, I help make complicated systems easier and cheaper to build, test and deploy. Adding testability in from the start can dramatically reduce the cost of all forms of testing and fixing, be they highly automated or manually intensive. We can make better software, quickly and more cheaply if we use the techniques good mariners have used for hundreds of years.

Comments

Popular posts from this blog

Betting in Testing

“I’ve completed my testing of this feature, and I think it's ready to ship” “Are you willing to bet on that?” No, Don't worry, I’m not going to list various ways you could test the feature better or things you might have forgotten. Instead, I recommend you to ask yourself that question next time you believe you are finished.  Why? It might cause you to analyse your belief more critically. We arrive at a decision usually by means of a mixture of emotion, convention and reason. Considering the question of whether the feature and the app are good enough as a bet is likely to make you use a more evidence-based approach. Testing is gambling with your time to find information about the app. Why do I think I am done here? Would I bet money/reputation on it? I have a checklist stuck to one of my screens, that I read and contemplate when I get to this point. When you have considered the options, you may decide to check some more things or ship the app

XSS and Open Redirect on Telegraph.co.uk Authentication pages

I recently found a couple of security issues with the Telegraph.co.uk website. The site contained an Open redirect as well as an XSS vulnerability. These issues were in the authentication section of the website, https://auth.telegraph.co.uk/ . The flaws could provide an easy means to phish customer details and passwords from unsuspecting users. I informed the telegraph's technical management, as part of a responsible disclosure process. The telegraph management forwarded the issue report and thanked me the same day. (12th May 2014) The fix went live between the 11th and 14th of July, 2 months after the issue was reported. The details: The code served via auth.telegraph.co.uk appeared to have 2 vulnerabilities, an open redirect and a reflected Cross Site Scripting (XSS) vulnerability. Both types of vulnerabilty are in the OWASP Top 10 and can be used to manipulate and phish users of a website. As well has potentially hijack a user's session. Compromised URLs, that exp

What possible use could Gen AI be to me? (Part 1)

There’s a great scene in the Simpsons where the Monorail salesman comes to town and everyone (except Lisa of course) is quickly entranced by Monorail fever… He has an answer for every question and guess what? The Monorail will solve all the problems… somehow. The hype around Generative AI can seem a bit like that, and like Monorail-guy the sales-guy’s assure you Gen AI will solve all your problems - but can be pretty vague on the “how” part of the answer. So I’m going to provide a few short guides into how Generative (& other forms of AI) Artificial Intelligence can help you and your team. I’ll pitch the technical level differently for each one, and we’ll start with something fairly not technical: Custom Chatbots. ChatBots these days have evolved from the crude web sales tools of ten years ago, designed to hoover up leads for the sales team. They can now provide informative answers to questions based on documents or websites. If we take the most famous: Chat GPT 4. If we ignore the