What is “Orthogonality”?

前端 未结 17 1513
离开以前
离开以前 2020-12-12 09:42

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

What are some examples of Orthogonality?

17条回答
  •  醉梦人生
    2020-12-12 10:02

    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 (very important for debugging).

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

提交回复
热议问题