tirsdag 27. januar 2009

Understanding the duality of software

Over the years I have spent a lot of time trying to understand the inherent properties that make software so difficult. After reading Derek Hitchins book Software Engineering, A 21st Century Systems Model I think I have found an answer. The answer lays with the inherent dualism of software which I now will try to explain.

When developing software we basically apply Cartesian reductionism to decompose a larger problem into smaller problems that again are decomposed. This is basically how most man made constructs have been built during the last 200 years, and represents an approach directly supported by our programming language constructs such as Module, Class and Subroutine.

The problem is that the behavior of the executing software cant be understood through the structure of the source code, and it is in this respect the value of a systems approach comes to the rescue. When applying a systems mindset the focus changes from decomposition to containment, behavior and function. A classical example of this change in mind has been illustrated using a story about some Martian coming to planet Earth finding a mechanical clock. He might be able to open the clock and even figure out how it works. However, doing so he would gain no idea about the concept of time doing in the process.

Applying systems thinking on software reveal a need to focus on behavior. Agile processes with their focus on test-first and behavior driven design is a good start, but the traditional programming languages used by developers of today, except the ADA Tasks, lack good abstractions supporting behavior as a first class programming citizen. Java have Tread's, and operating systems processes, a construct most developers of today does not master.

The challenge to academia is to teach students about the duality of software and find efficient language constructs supporting it in our programming languages. The challenge to the industry is to make the behavior a concern and start addressing it through practices such as behavior driven design and test-first practices.

Ingen kommentarer: