• balsoft@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    12 hours ago

    What I find annoying is when some talking head says all code should be a certain way,

    It’s quite useful to have “all code be a certain way” within a language ecosystem. E.g. Haskell requiring all pure functions be actually pure is amazing because you know that any function from any library doesn’t perform some stupid side effect when you call it, and just processes its inputs into an output. Of course, functional programming tools can be useful even outside purely functional languages, but having those important properties be ecosystem-wide makes you feel much more comfortable, and produces much better, safer and more reliable code in the end.