The phrase "No Silver Bullet" is widely used in the industry. In this article we will revisit the classic paper by Fred Brooks that gave rise to it.
Almost 35 years have passed since the original publication and little has changed.
In the paper, Fred Brooks predicts (so far we know correctly) that the problems inherent in software development are essentially difficult and we will not find magic solutions in the present nor will there be in the future.
The paper is based on the Aristotelian concepts of Essence and Accident.
The silver bullet metaphor, which gives the article its title, has two meanings:
The first indicates that we are facing a monster that cannot be eliminated with conventional and known weapons.
The second meaning tells us about an enemy who was our ally, but later became our greatest fear.
The werewolf grows from within our projects.
The lycanthrope transforms in an unexpected way.
In the place we had a friend now there is a monster that needs to be defeated.
This is not an alien that came as an unexpected external threat, it is one of
our allies, suddenly turned into our worst nightmare.
In place of a planned project under control, we find ourselves with a monster that consumes time and resources, failures in delivery dates and with horizon at sight.
We need the silver bullet to get the monster back under control.
Frederick Brooks is the author of the book The Mythical Man-Month.
The paper compiles Brooks' experience developing the largest software project to date: the OS/360 operating system.
In the book we can find the famous thesis known now as Brooks' Law:
While it takes one woman nine months to make one baby, nine women can't make a baby in one month
One of the corollaries of said law holds that
Adding manpower to a late software project makes it later
This thesis confronts the Taylorist idea of software development, in tune with what was proposed by Peter Naur.
Brooks won the Turing Award for his work in 1999.
Brooks argues that no present (in 1986) or future technological development (at least up to the date of the article), will be able to reduce the costs and planning of software projects.
This improvement has occurred systematically with hardware as stated by Moore's law.
Historically, we have wanted to pigeonhole software engineering as a more familiar and well-known metaphor, similar to the construction of bridges or buildings. Civil engineering is predictable and familiar with millennia of history and experience.
Computer scientists want to identify ourselves with such engineering and we look for similarities that do not really exist if we consider the very different reality of software development.
There are specific and unique attributes in software that make it essentially different from all known engineering:
According to Brooks, we worry about accidental errors (such as compilation or code syntax errors) instead of dealing with the essential problems (conceptual software modeling errors).
The entities modeled in the software will essentially be several orders of magnitude more complex than any other human construct.
A system with 300 Boolean configurations has more test combinations (2 ^ 300), than the number of atoms in the universe (10 ^ 80).
This unmanageable explosion of states makes a system very difficult to test, affecting reliability.
The sheer number of variables makes the development process essentially difficult for humans to handle.
The complexity of software construction generates management, training and knowledge transfer problems, causing the software to be intrinsically tied to the people who developed it, as Peter Naur enumerates.
The originality of each software development causes each new problem to be different and we cannot find good tools for reusing repeated components as in other industries where new models can be built with standard parts.
Reuse has always been a north in software development. However, we spend much of our time reinventing the wheel, discarding libraries, creating new languages, reinventing exception handling, rediscovering anonymous functions or functional programming's adventages, immutability
Photo by serjan midili on Unsplash
The dependency between software components is much more complex than that of machines, physical structures, or scientific concepts.
The relationships between these components are unique and intricate making the whole system evolution extremely difficult because of the coupling among the parts.
The complexity of software systems is an essential problem
The relationships between software components are never linear, therefore, their combinatorics becomes exponential.
Mathematicians and physicists have taken centuries to find simple explanations to unify apparently isolated concepts such as the Theory of Everything
Photo by Chang Duong on Unsplash
In addition to the essential complexity of software development, and due to the immaturity of our profession, we add a layer of accidental complexity by making models much more complex than necessary.
Since we cannot avoid essential complexity, the sole task of a software engineer should be to *eliminate all accidental complexity *.
No one would ask a civil engineer to change the foundation of the basement after they have built a 60-floor tower. However, it is a task that computer engineers often accept because our product is much more malleable, even when in productive environments.
It is very difficult for automotive production lines to make a product recall of a car once it has been sold.
However, we make changes to our systems on a regular basis. Whether the software works as expected, to perform evolutionary maintenance, as well as if it has flaws, if it needs to adapt to new contexts, laws, technological changes etc.
Software lives much longer than initially estimated, which is why many of the world's developers are in charge of maintaining these "legacy" systems.
Software is invisible. For decades, people tried to design software with plans like architects do. All those attempts failed.
The software design is present in the code, never in the diagrams. Diagrams don't execute, they have no errors and nobody maintains them. We need to trash them.
Software does not have a spatial or geometric representation. We cannot imagine it or make it visible due to the large number of axes of change.
Just perform contour lines to be able to observe some isolated aspects, as unit tests do.
However, we can never cover its entirety, follow the flow of the data, or see all the interactions between objects.
Brooks lists possible silver bullets that by 1986 had already failed:
Photo by engin akyurt on Unsplash
High-level languages were on the rise in the 1970s and were the hope back then. Brooks was correct in stating that these languages eliminate some of the accidental complexity by being away from the machine, its states, registers, disks etc.
What seemed like a glimmer of hope is still far from reality in sad times like 2020, where languages like Go or C # privilege the gain of a few processing cycles over good models, seducing fans of premature optimization with short-term promises.
Brooks lists a breakthrough from the 70s that were timesharing machines. We currently have near-infinite virtualization, load balancers, and scalability accessible to everyone. But this does not mean that we have found the silver bullet.
Shared libraries and operating systems, like the newborn Unix, promised ease of reuse. But today we know that, although this is the norm, they did not manage to defeat our inner wolf by considerable orders of magnitude.
Object-oriented programming was a flame of hope in the 1970s for decreasing accidental complexity. Brooks notes with accuracy that there is nothing they can do with the essential complexity.
Today, we see concepts discovered in the 1970s and forgotten by the object-oriented languages of the 1990s such as Java, Python or PHP: This is how the benefits of encapsulation, polymorphism and immutability are rediscovered.
Artificial intelligence had many very hopeful and productive summers, interspersed with dark, medieval winters.
Brooks lists the now-defunct expert systems with inference engines based on preprogrammed rules. The modern version of these systems is machine learning, where the rules are "learned" and not fixed using supervised or unsupervised learning.
But today's artificial intelligence cannot beat the essential difficulty. There are notable advancements in vision and robotics and wonders like GPT3, which manages to produce good code to solve low-essential complexity problems.
Related to artificial intelligence is automatic programming. Today there are more interesting branches such as competitive programming or code generation mentioned in the previous section.
Brooks strongly criticizes those who seek the silver bullet in attempting to develop software in the same way that blueprints were created for building hardware.
What Brooks could not anticipate, other than the dismal failure of graphical software design tools, is that designing circuits is now also an essentially complex problem.
Formal software verification was always difficult to scale.
This was valid in 1986, and in the present.
There are no mechanisms that make it feasible to formally verify highly complex software and we do not see academic publications that indicate a change in this trend.
The programming environments or IDEs that Brooks lists have evolved incredibly in these four decades, assisting developers to build increasingly complex software.
Needless to say, they alone could not eliminate the essential complexity.
Brooks lists possible options in the future:
- Build and reuse software instead of creating it expecting a reduction in development costs
- Rapid Prototyping
- Iterative and incremental development
- Better designs
Currently we know that we must pay attention to all the items on this list, which will help us improve quality and are heavily used in the industry.
Unfortunately, none of them turned out to be the much-desired silver bullet.
In the anniversary edition, Brooks clarifies about the use of the accidental word, dissociating it from the value of mishap and bringing it closer to the concept of chance.
At the same time, it revisits the importance of buying software packages instead of producing them and highlights the progress of object-oriented programming, although noting that it does not generate advantages of great orders of magnitude.
The author goes back to focus on the underestimation of software reuse as opposed to the systematic construction of solutions to the same problems.
Brooks showed us, almost 40 years ago, that we should not underestimate essentially difficult problems in the software industry.
This statement was opposed to the prevailing positivism of this time, similarly to the blow that mathematics suffered at the beginning of the 20th century with the Godel's incompleteness theorems.
Once the insurmountable limits are recognized, we will have to work on the things that, fortunately, we still have the capacity to improve.
Part of the objective of this series of articles is to generate spaces for debate and discussion on software design.
We look forward to comments and suggestions on this article.