When we think of software we tend to talk about business logic, automated testing, continuous delivery, user interfaces, "the user experience," and product decisions.
Often absent from the conversation is the life either inherent in the systems that we create, or, more commonly, breathed into those systems by the people who create and/or use them.
Leveraging this idea of life-in-systems I wanted to draw out a few links between phenomena observed in software engineering to phenomena observed in the life sciences.
Code is DNA. It can produce traits in the organism1 that, if expressed, will enable the organism to react to stimuli in the outer environment, which can lead to the surrounding environment's continued sanctioning of the organism's life.2
Tests are RNA polymerase. The tests ensure the correctness of the DNA and allow the DNA to be transcribed. If the DNA is faulty, the RNA polymerase backs up and tries the previous transcription again.
Obviously, software artifacts are the organism's expression of its genes (phenotype). Maybe our build pipeline, build tools, and build machines are DNA helicases.
Jean-Baptiste Lamarck, an evolutionary theorist roughly eighty years before Darwin, proposed a soft inheritance — the notion that organisms are deterministically linked, not at point of creation, to their offspring, but at point of their offspring's creation, and any adaptations or adaptive aspirations that they might develop toward their environment may be passed on to their progeny. This is the idea that giraffes might have long necks because they aspired to eat the fruit of higher trees, or in an extreme case, the belief that you can grow entire organs if you want them badly enough.
Naturally, this is all roundly discredited by today's scientists, but it has found a measure of skeptical and well-measured redemption in the modern science of epigenetics. Epigenetics is the study of things that exist above and outside-of the genetic level that may affect phenotype and may even produce generation-inheritable changes in organisms.
In software, with a good feedback system, Lamarck's soft inheritance can be instituted sensibly. We have the advantage of knowing our systems (and if we're lucky) having good feedback wherein we can make the changes necessary on behalf of the system to keep it alive.3
Maybe don't jump right into changing the DNA.
Here are some things that you can use to drive improvements to your system's environmental fitness:
In most cases, we don't fully leverage the levels of confidence that the provability of a unit test opens the doors to. We don't prove nearly as much as we could.
Generative Tests are a mechanism from the functional programming paradigm5 that allow us to prove that all inputs to a given function produce output for a given function that are correct, without having to write an ungodly number of tests to ensure that all possible input combinations produce correct output combinations for those inputs.6
Math plus unit tests grants far greater testing power, potentially to the edges of user possibilities.
In the context of this thought exercise, the "organism" is actually a software system.↩
In the realm of software, this survival is reflected in software usage, which is often, but not exclusively tied to the piece of software's business viability.↩
Whereas with the biosphere, fitness-for-environment isn't determined by an organism or their offspring, Darwin be damned.↩
OK, good is an understatement. It's intelligence, reflection, environmental fitness reified.↩
Getting closer to the "everything has been proven, so I am totally sure that this works" state feels like endless and meaningless work, so naturally, single-input-single-output tests fall out of that tension.↩