The Humble Programmer – Edsger W Dijkstra

I first heard of Edsger W Dijkstra in the context of agile programming.I was having a discussion regarding agile programming with some friends and explaining Test Driven Development and the concept of first creating tests that can prove show the correctness of the code before writing the code, when a friend mentioned that this sounded a lot like some of the arguments put forward by Prof. Dijkstra in his Turing award lecture in 1972. I found that hard to believe, after all, if this was known in 1972 then why is it only becoming popular now ?

So I started looking up Edsger W Dijkstra and realized that this man was one of the pioneering giants of software programming. He is the father of structured programming and one of the guiding heads responsible for much of the way we program computers today. There is a lot written about him all over the place – I shall focus on his Turing award lecture, that was titled “The Humble Programmer“. In this lecture, Prof. Dijkstra puts forth six arguments on the way software programming should be done. On reading these six arguments I cannot help but feel that this lecture was one of the main inspirations used by the authors of the agile programming movement and design patterns community.

The six arguments put forward in the lecture are as follows –

  1. “A study of program structure had revealed that programs —even alternative programs for the same task and with the same mathematical content— can differ tremendously in their intellectual manageability. A number of rules have been discovered, violation of which will either seriously impair or totally destroy the intellectual manageability of the program.I now suggest that we confine ourselves to the design and implementation of intellectually manageable programs. The programmer only needs to consider intellectually manageable programs, the alternative alternatives he is choosing from are much, much easier to cope with.”
  2. “As soon as we have decided to restrict ourselves to the subject of intellectually manageable programs, we have achieved once and for all a drastic reduction of the solution space to be considered. This argument is distinct from argument 1.”
  3. “If one first asks oneself what the structure of a convincing proof would be and having found this, then construct a program satisfying this proofs requirements, the these correctness concerns turn out to be a very effective heuristic guidance. By definition this approach is only applicable if restrict ourselves to intellectually manageable programs.”
  4. “The only mental tool by which a very finite piece of reasoning can cover a myriad of cases is called an “abstraction”. There are number of patterns of abstraction that play a vital role in the construction of programs. Knowledge of these patterns of abstraction are essential.”
  5. “A programmer is fully aware of the limited size of his own skull; so he approaches the task of programming in full humility and avoids clever tricks.”
  6. “The only solutionproblems we can solve in a satisfactory manner are those that finally admit a nicely factored solution.”

When you go through these arguments you see the seeds for the various movements in programming software today –

I really enjoyed reading his lecture – I have the lecture here (The_Humble_Programmer)  if you want to read it. He must have been an extremely engaging speaker – a lot of his quotes are available here.

Till next time – Happy Programming !

Update: I have made a couple of corrections based of some of the comments here.  When I wrote that argument 3 is the basis for TDD I meant that in the lecture Dijkstra talks about first finding the structure of a proof and then constructing the program satisfying the proofs requirement. This is similar to the TDD approach of first writing a test and then writing code that satisfies the test.


7 comments on “The Humble Programmer – Edsger W Dijkstra

  1. “The only solution we can solve in a satisfactory manner are those that finally admit a nicely factored solution.”

    I can’t quite parse that sentence. Shouldn’t it be “The only problems…”

    • Yup – you are right roogs – I have updated the post with the correction. Boy, it’s tough this proof reading – no wonder they have professionals for it :-) Thanks for the comment – really appreciate the feedback :-)

  2. I have not yet read everything Prof. Dijkstra ever wrote nor have I had the privilege of interacting with him. I have mainly confined myself to his “Humble Programmer” lecture. The connection between his third argument and TDD jumped out at me so I wrote about it. I do not mean to enlist him posthumously to any idealogical cause – I don’t have any. I think of TDD as a tool and I use it where I feel it’s need – that’s it.

  3. It’s kind of strange coincidence as I was reading onDijkstra’s shortest path algorithm for a potential problem when this post surfaced. This actually painted altogether a new face unseen by me and I am sure many others as well. It’s a rare honour when you are remembered for many things when people in today’s world struggle to strike at least a single note. Dijkstra was definitely one such genius!

    Good one friend! It’s ABSOLUTELY necessary the “modern” IT world acknowledges the genius that went on to create our profession a respectful one!

  4. Pingback: Tweets that mention The Humble Programmer – Edsger W Dijkstra « Technikhil Writing --

Comments are closed.