Search code examples
language-agnosticterminologylexicon

What is "Orthogonality"?


What does "orthogonality" mean when talking about programming languages?

What are some examples of Orthogonality?


Solution

  • Orthogonality is the property that means "Changing A does not change B". An example of an orthogonal system would be a radio, where changing the station does not change the volume and vice-versa.

    A non-orthogonal system would be like a helicopter where changing the speed can change the direction.

    In programming languages this means that when you execute an instruction, nothing but that instruction happens (which is very important for debugging).

    There is also a specific meaning when referring to instruction sets.