Mahjong Score Calculator #3 – On Tackling Cognitive Complexity

Cognitive complexity measures how difficult it is to understand a piece of code. The more conditional statements and nesting loops present, the higher the cognitive complexity is penalised.

12 December, 2024 · 4 min · Oscar Li