Sunday, July 22, 2007

I have an ISBN number!

OK I admit it, I do vanity searches.  I was at the Amazon website for something today and I did a vanity search.  The differences this was is: I was.


Changing Software Development: Learning to Become Agile is now listed as available for pre-order.  The other surprising thing is the publication date.  I was expecting January 2008 but it appears I’ll make 2007.


And if your interested the ISBN is 047051504X, or in the new 13–digit ISBN system: 978-0470515044.


I had better get on with the index then!

Friday, July 13, 2007

Back from EuroPLoP

I was out at EuroPLoP in Germany last week, and much of this week has been spent in recovery mode.  EuroPLoP is a great conference – or rather un-conference.  Unconference is an expression I first heard last year that describes a conference which is different.  EuroPLoP is certainly different.


EuroPLoP is first and foremost a pattern writers conference.  So we spend time reviewing peoples papers not listening to presentations.  We spend time playing games together.  Actually this bit is essential because it builds the community and helps you take the feedback in the reviews.


We also hold open ended discussions (focus groups), drink (free) beer and talk, talk, talk.  At breakfast, lunch, dinner, in-between and in the sauna.  Some of the best conversations are in the sauna.


Our conversations revolve around patterns, software development, teams, books, writing and, in my case, business models.  There are more and more patterns being written about business, it is only a matter of time before someone publishes the first book.


As an aside, one of the founders of the European Patterns movement, Frank Buschmann, was at EuroPLoP.  He mentioned some research he had seen about software engineering literature.  It seems that the most referenced software engineering book (not including text books) is…. Design patterns (aka “Gang of Four book”).


(Unfortunately I don’t have the reference to hand, I think it is Paul Clements and others from SEI at CMU.)


The second most references book is Pattern-Oriented Software Architecture Volume 1 "POSA 1" and "POSA 2" (Pattern-oriented Software Architecture Volume 2) also makes it into the Top-10. 


In fact 6 or 7 out of the top 10 books turn out to be pattern books.  To me that says Patterns are on to something. 


Unfortunately, all too many developers don’t know about patterns and those who do only know the 23 in the Gang of Four book, and of those 23 Singleton seems to be know more than any other.


The other news from EuroPLoP is about me!  The conference committee decided to make me conference chair for 2008 and 2009.  I have to admit I am a bit worried about the work involved and tried to avoid the post but I was persuaded. 


Wow, me, conference chair…. I can hardly believe it!

Indian outsourcing gets more expensive

I’ve been saying for a while that there is no need to panic over the outsourcing/off-shoring of software development work to India.  As far as I am concerned the pie is big enough, it is expanding, and India is not the right place to do much of this work.  The right place is right next to the business.


Add to that economics.  India may produce a lot of computer science and engineering graduates but less than 10% of them are useful to the industry.  Of those that are there are not enough to satisfy demand, staff turn over is high and wages are rising.


Just before I left for EuroPLoP I saw this story in the FT “Bangalore wages spur reverse offshoring”.  The story even made it to the editorial column too  “Outsourced to the US”.  Basically wages are rising and the price advantage is disappearing.


As I predicted (December 2006, July 2006 and June 2007) India is pricing itself out of some types of work and it is more economic to do the work in the high-wage US or Europe.


Even if India staff are cheaper you have to factor in:



  • Communication and travel costs.

  • Additional processes, procedures, documentation, etc. which you don’t need when the guys are down the hall.

  • Delays in responding.

  • Cost correcting cultural differences, and extra costs in being specific.

It makes sense to offshore some work to India (or China, or Russia) but not all work.  You have to judge these things on a case by case basis. 


Unfortunately one side of this I haven’t accounted for before is management that believe the hype.  If you are attracted by offshoring to India you must go and do your own analysis: count all the costs, assess the risk, look at the time it will take, etc. etc. 


The unfortunate bit is I think some managers are not doing this.  They are jumping on the bandwagon when it doesn’t make sense.


More unfortunate, as far as I can tell there are far too many start-up India outsourcing companies willing to cater for unprepared managers who want to outsource.  I suspect the big, well established, companies want projects that succeed.  They will avoid work from unprepared managers looking to ride the bandwagon.


However, the smaller companies just want work.  They can’t afford the luxury of turning work away so they will accept it from even the most ill prepared companies.  So you get the unprepared working with the worst possible partners.


And that is why, some companies have great offshoring experiences and most have failures.

Monday, July 02, 2007

Unit testing (from objectives)

Still responding to the questions posted in response to my TDD and objectives entry. The question was about how to do TDD, specifically UI and also about what happens when the general consistency fails.


Well the UI question is easy: You can’t really do TDD for user interfaces.  You can, but you have to jump through hoops to get your test framework to push buttons.  Of course there are tools which will do this for you but these usually fall into the realm of ATDD (Acceptance TDD) and system testing.


But, what TDD can help you with is the logic behind the UI.  We all know we should separate program and business logic from the UI but we also all know it has a habit of getting in there.  Well if you are practising TDD you separate the two (as you know you should) and you can TDD the logic and leave the UI as a lot more trivial. (And testable with other tools.)


The other way of doing it is to test the output.  Increasingly application emit XML or HTML to generate their user interfaces and you can test that.  You can test small segments of XML to see if it contains the expected data.


For me the secret of TDD is that it is a Design technique, thats what the second D stands for after all.  It is about designing your code with tests rather than UML, or flow charts or what ever.  You do it before you write the code, it forces you to think about what you are about to write and that is design.


Second part of the question: general consistency.  Well, true, a little change might break a lot of tests, but actually you want that to happen.  If someone removed operator== then you want your tests to break because it highlights the change. 


A good set of tests round your code ensures that any unexpected changes are found quickly.


Of course, when you make a significant change in your code you might find a lot of tests broken, and you end up having to fix lots of tests but:



  • Firstly a major change should product major breakage so you can get it right

  • Second a well structured, properly separated design, will be less prone to breaking.  Writing tests is itself an engineering exercise.

All in all TDD promotes a lot of good practises which we know are good but somehow forget to do.


 

Objectives again

I don’t normally respond to comments on my blog.  Most of them don’t actually require anything more to be said but on this occasion I thought I should respond.  And keeping to my one entry one comment policy I’ll take them both separately.


So, the question was: Am I changing my view on objectives?


And my answer is: It depends; in this case I’ll wait and see what happens.


I think it is worth knowing what you are aiming for.  I think setting your own objectives is worth while and can help improve your performance.  And I think they are a good way of communicating priorities to and from management.


I also think that if you are going to have explicit objectives it helps if they can be more objective than subjective.  So, the SMART rules make sense.  But… well, there are problems….


Not everything you want to aim for can be specific or measured.  Quite often we operate with ambiguity.  A lot of my work is ill defined, trying to make it better defined can be useful but it can also be counter productive because things will change.  I’m not really sure what my goal is or should be, I just kind of know the general direction.


There is also a problem with the achievable and realistic part of the rule; in a word setting realistic goals encouraged people to satisfice.  If your promotion, pay rise or bonus depends on meeting an objective then there will always be a tendency to aim slightly lower, for something that is more achievable.


As much as they can improve communication between management and workers they can also be the source of misunderstanding; when they are imposed on people, when management sets the objective and forgets about them for a year, or when management sets them and then abdicates all responsibility for helping someone meet them.


So I stick by my answer: it depends.  I’m in favour of objectives when they are used appropriately.

Wednesday, June 27, 2007

TDD, Objective setting and doing the obvious

I’ve been doing a round of objective setting for my client recently.  When it was first announced the company wanted to go down this path I groaned.  “Arhh” I thought, “I hate objectives, I hate people setting them, I hate all the baggage that comes along with them.”  Neither was I impressed by the way my client’s HR department presented the idea or the proposal for implementation.


I’m a past master at criticising management by objective, it is quite easy really, just look at the side effects and read Goodhart’s Law.  Anyway, its not turning out like that at all, little bit of imaginative thinking and things are looking good.  Sure we are only in the objective setting phase so far so it is too early to say, much could happen but….


First I have rigorously applied the SMART approach – objectives need to be Specific, Measurable, Achievable, Realistic and Time boxed.  Second I added an extra criteria “V” – call it the SMART+V formula.  “V” stands for Value-add.  (Only I now realise it should be V+SMART, if you can’t show value don’t continue.)


Next was the realisation that the development team all did pretty much the same job.  Therefore one could expect them to have pretty similar objectives.  And if they all had similar objectives it would aid team work.


Finally, I think I realised how to use this to my advantage.  The team have not been doing code reviews or Test Driven Development (automated unit testing if you prefer) but everyone is willing to do both.  So, its now turning out that most of the team have objectives around these area.  Not everyone, and individual goals might have a slightly different take but they all build.


Half way through and this approach seems obvious.  If a manager wants his team to do TDD then why not just set it as an objective?  Surely this is the way it is meant to work: manager decides, manager aligns team, team does what manager wants.


If it is this obvious why bother with all the TDD evangelising, training, coaching and calls to do it.  Why both with fancy change ideas.  Just set it as a target and do it.  Could it be so easy? 


Of course it isn’t going to be that easy.  For a start just because it is set as an objective doesn’t mean it is going to be met.  Just because people want to do something doesn’t give them the knowledge to do it; at the start people don’t know how to do it.  Then there are the usual problems like time pressures and people who will think “it won’t work here.”


Having set it as an objective I’m still going to have to work hard at giving people as much support, training, coaching and other assistance as I can.


One real danger to this approach is that the managers who set these kind of objectives might just believe that setting an objective is all that is required.  As I just said: setting it as an objective doesn’t mean it will happen.  Objectives are a two way street and managers need to help people meet theirs.  Thats why I’m thinking of setting my own objective as: “Team reaches 80% of objectives.”


If this approach is so obvious why haven’t I done it before?  Well apart from the problems I just outlined this particular tool has not been available to me in the past.  Sometimes management wasn’t bought in to TDD, sometimes objectives weren’t in use and sometimes I wasn’t in a position to set the objectives.


At the moment it feels good and I think its going to work.  I’ll report back…

Normal service is being resume...

Believe it or not the book is finished – kind of.  Still some stuff to do so things can start to return to normal, and that means more blogging!


Seriously, I don’t want to get back to the multiple postings a week phase but I do want to blog more.  I’ve got a back log of things I want to talk about.


I’m off at EuroPLoP next week so there will probably be a lot of pattern posts in the next few weeks.  I’m currently reading the papers for my workshop, so far it looks like it will be a high quality year.  As usual I will come back physically exhausted and mentally renewed.


Finishing the book also means I can return to reading more books and reviewing them here.


Still I’m very busy with stuff to read, things to do on the house, boring book stuff, very busy client work and a back log of things to write.  I even intend to contribute something to ACCU Overload in the next few months!


Anyway, on with the show…

Monday, June 25, 2007

Off-shoring gets more expensive

Interesting piece in the FT today about the increasing cost of outsourcing to India – Offshore call centre benefits challenged.  Seems companies are finding that call centres in India are getting more expensive, wages are rising. 


I have long help that this would happen, and as it does off-shoring becomes less attractive.  Even in India the supply of suitable call-centre staff is limited and over time their wages will rise.  This is good for everyone: the individuals get paid more, India gets more money and more jobs get retained in the source countries.


And if increasing cost were not enough it also seem the same call centres are less effective at dealing with complicated enquiries and less successful at selling additional products.  (Neither does this article mention the high staff turnover rates that call centres and other off-shore operations experience in India.)


I expect to see this trend repeated in the off-shore software development sector too. 


As I’ve said before, I’m not against outsourcing or off-shoring.  In fact I see good reasons to support off-shoring.  Just I do not believe it is a cure for all problems, and I think it can cost a lot more than people think.


Neither do I think it is right for early stage companies.  I think it works best when you know your product, your processes and what you are trying to do.  When any, or all, of these things are in flux you are better off having the operations were you can see them, control them, and keep feedback loops tight.


 

Wednesday, May 30, 2007

McKinsey endourses Lean Software Development

I think most regular reader of this blog will know that when it comes to flavours of Agile Software Development I’m a strong supporter of Lean.  In fact I’ve argued before that “Agile” is a type of “Lean” – and I’ll argue it again in my book.


Now it appears that non-other than McKinseys consultancy has seen the sense in Lean software development – see this piece from their online journal (registration required).  Perhaps not surprisingly McKinsey’s also identifies “the change problem” as the challenge facing organizations which want to benefit from Lean Software Development.


As I said, its not a surprise, McKinsey’s make their money from advising companies on “change” so anything that creates fees is good for them.


Second it is not surprising because that is the problem I see! – hence the forthcoming book.  Naturally it goes without saying that I’m a lot cheaper than McKinseys!  (You know where I am.)

Monday, May 28, 2007

Introducing: Software Inside

I’m going through some notes from the ACCU conference in April and note I made after a conversation with someone – I forget who so sorry for not crediting you properly but I want to capture these thought….


We write software but we seldom write software for the sake of it.  We write software as part of something else.  Perhaps we write embedded software for a mobile phone, or we write an enterprise application for an account department – you get the idea.


The thing the software goes into – devices, process, etc.  – is itself a system.  A mobile phone is an electronics system, which is part of the cellular communications system; an accounts ledger is part of a business systems which tracks accounts.


Increasingly it is software that makes all of these systems possible.  You could do a lot of this in hardware, albeit specialist hardware but doing it in software is easier and cheaper.  Despite all the problems with writing a software application to manage a cell phone it is still a lot simpler, cheaper and faster than creating dedicated hardware.


Software allows you to use commodity hardware, commodity manufacturing and commodity infrastructure to create your product.  The truly unique bit rests in the software.  While you can copy the binary code or application for virtually nothing the creation of that software is unique.  Knowledge is embedded within the software.


Ultimately all software systems are simply part of a bigger system.  Systems have software inside.


This idea isn’t new.  I’ve said it myself before, what is new is the term: Software Inside. I guess we can credit Intel with providing the inspiration for the term – thanks Intel!


This term allows us to focus not so much on the software but on the greater system: the phone, the accounts system, the car, the washing machine, the moon-landing, etc.  The fact that we know about software can take us (the software developers) into many different and strange domains. 


And once in them we ourselves, the software experts, need to adapt and learn these new domains.  We need to be soft ourselves.  Software developers need to be cameleons.