Sunday, 31 May 2015

Why programming is sometimes like painting behind a towel rail.

Standing in the shower this morning, I decided suddenly that the colour on the walls was completely wrong.

I had painted the bathroom in a cool, blue colour two years earlier and thought nothing further of it since until, trapped inside by typical bank holiday weather, I’d been painting another room in our flat. A mellow yellow. I was in the mood for yellow. 

My mind idly turned to refactoring the room. Yeah, a warmer colour would do much better beside the wood, would complement it. There was, after all, plenty of time for an indoor job, with bank holiday rain outside lashing down the window panes.

A hurdle presented itself in the form of the chrome heater that keeps the towels warm (or might do, if we ever turned it on). The bars sit a few centimeters proud of the wall, enough to slip a towel through, but barely room for a paintbrush to apply a new colour behind it. 

It occurred to me that it would be complicated and fiddly. In fact, much like making a refactor to a piece of software.

It would definitely be possible to use a mini roller, and get a reasonable way in from each side. You could probably poke a brush between the bars and have a go at the middle. You’d need to use a few techniques but I could probably get it done. You could probably do the whole thing without even turning the heater off.

And for sure, it would be easy to miss something, that would be noticed and remedied later. The wall refactor would probably have bugs

Thinking about it, the way to do it properly would be to remove the heater from the wall completely, then repaint, then replace the heater. 

As a software programmer, that approach appeals because of its simplicity. There are just three things to do, and each of them is well-defined. The alternative, working around a big obstacle piece-by-piece, using various different techniques might take less time at first, but could ultimately take longer in the end. Taking it off the wall may require some up front effort, but on the other hand, would definitely give the best finish, and the least chance of missing something.


  1. Very useful info. Hope to see more posts soon!. Pflegeversicherung

  2. Additionally, a variety of saw blades can be purchased, with which you are able to adapt the device to different purposes and materials.SaegenExpert

  3. nice bLog! its interesting. thank you for sharing.... kroatien apartments

  4. provides authentic IT Certification exams preparation material guaranteed to make you pass in the first attempt. Download instant free demo & begin preparation. 7498X exam questions answers

  5. Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. navigate here

  6. This comment has been removed by the author.

  7. You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! original site

  8. Hallo, würden Sie mir bitte sagen, welches Hosting Sie verwenden? Ich habe Ihren Blog auf 3 komplett verschiedenen Internet-Browsern geladen und ich muss sagen, dieser Blog lädt viel schneller als die meisten. Können Sie einen guten Hosting-Anbieter zu einem vernünftigen Preis empfehlen? Tausend Dank, ich weiß es zu schätzen! schinken

  9. At Geomiq, we’re proud to associate with 260+ skilled and highly vetted producers, who have a confirmed observe record of creating high-quality, high-precision 3D Printed components for patrons round the} globe. Hollywood 3D Printing has a decade of success in offering artistic best toddler gloves design, engineering, and fabrication companies to consumers and businesses who wish to convey their ideas to life. We value communicative engagement with our prospects, in order to to} facilitate a clear and efficient trade of ideas and project requirements. Our full set of artistic, design, fabrication, and finishing companies creates a seamless pipeline, allowing for the production of professionally completed goods primarily based on even probably the most primary initial information.