• atheken@programming.dev
    link
    fedilink
    English
    arrow-up
    23
    ·
    edit-2
    10 months ago

    This is an professional experience thing.

    Types support “programming at scale” - scale in the sense of larger code based or multiple people contributing.

    If you’re hacking away at a script for a web page, then yeah, have at it.

    If you’re supporting more than a few hundred lines of code or working on a team, you need types to codify and communicate information that can be verified with a compiler.

    Whenever you see a larger codebase that is not strongly (or statically) typed, you generally will see unit tests that are verifying the types/structure of outputs.