• BrianTheeBiscuiteer@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Js is what you make of it.

    This is one of the biggest issues with JS.

    Want to stuff your whole program into one file on a single line? Go for it! Want to use 100 JS files in a single directory? You the boss! Want to tinker with the internals of other modules? Ha! What internals?!?

    This is coming from someone that actually likes JS. It’s a very loosey-goosey language and it does next to nothing to prevent bad practices. You’re expected to pick and choose additional libraries to help with quality and organization. Some people choose no framework, some choose relaxed frameworks, or very opinionated ones. And if you want, you can easily mix strategies. I mainly code in Java, much more strict by comparison, and taking this approach would be a good way to ensure nothing works.

    I think the core of JS is good but it needs better official tooling (I still hate NPM) and less of do-what-feels-good approach.