Introduction

Superposition is a fancy word for something that everyone understands by intuition.

I will try to show a simple example of a system, then show how one intuitively understands the system. 

I will discuss why superposition is important, later.

Superposition

Superposition is used in many fields.  For example, electronics, quantum physics, geology, Engineering, etc.

The big question is "can superposition be used in Software Design?"


[See also https://guitarvydas.github.io/2021/01/22/superposition.html]


[See, also, https://en.wikipedia.org/wiki/Superposition_principle]


Example - Hello World

A simple example of a Hello World software system is shown in Fig. 1


Image


Fig. 1 Hello World Diagram

Superposition 1

One intuitively understands the simple Hello World example in two steps.  

Step 1 is shown in Fig. 2.


Image

Fig. 2 Superposition Step 1

Superposition 2

And, the second step in understanding Hello World is in Fig. 3.


Image


Fig. 3 Superposition Step 2

Conclusion

That's it!

Superposition is a fancy word for something that everyone understands intuitively.

[I will discuss later why superposition is important.  Basically, the question becomes "does our technology match with our intuitive understanding?".  If it doesn't match up with our intuition, we get bugs that are hard to understand and hard to predict.  Software professionals call that "accidental complexity".]