Hot take: being anti-static-typing is just elitism.

I am pretty comfortable writing in JavaScript, but a junior will engage in numerous careless mistake because they don’t know any better.

TypeScript stops them right in their tracks, and can learn quickly, rather than be faced with an error months down the road, and be stuck debugging the same class of errors programmers have been warning each other from generations to generations.

Why reinvent the wheel? (the wheel being discovering a class of bug that has been known by previous generations of greybeards).

#Programming

  • badcommandorfilename@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    “My code is great, its self documenting and doesn’t need types or comments, anyone who doesn’t understand it must be an idiot”

    “What idiot wrote this code, I can’t understand what it’s doing at all, why aren’t there any comments or type hints?”