• magic_lobster_party@fedia.io
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    12 days ago

    From a maintainability point of view consistency is important. I’d rather work with an consistent but incorrect code, than correct bit inconsistent code. With a consistent code base it’s easier to do something about the incorrectness, especially if it’s consistently incorrect. It’s also easier to delegate the work.

    Code is rarely correct forever. Sooner or later, requirements will change. What once was thought to be correct is no longer correct. It’s difficult to do anything about it if the code is inconsistent as well. It requires a lot of mental effort to understand the thought process behind some code.

    I agree that correctness is the goal, but consistency is one of the best ways to ensure this goal.