Software Design/Apparency of semantics
Appearance
(Redirected from Software Design/Code obviousness)
Apparency of semantics is a code quality characterizing how easy or hard it is to perceive the semantics (i. e. meaning, and/or inner workings) of code elements: expressions, statements, and functions.
Unlike apparency of purpose which is about how easy or hard it is to understand the "why" of the code, apparency of semantics is about the "what" of the code.
Relevant practices
[edit | edit source]- Object access chains: both hiding and exposing them may improve apparency of semantics of the code, depending on the context.
- Use class instead of primitive type