19

It's interesting how much fun Javascript is, when you just ignore it and use Typescript instead. 😎

Comments
  • 2
    @Letmecode great point!
    I think too that people really should learn JS thoroughly before looking into TS.

    I personally find TS great for it's convenience and faster development processes or I should say less buggy development because a lot of writing errors are shown while coding. Having a C# background, it gives me a bit of comfort too. 😉

    But like most dev tools and languages, a lot is about personal preferences and finding the right setup to code efficiently.

    What do you use for writing JS stuff?
  • 2
    What I like about it is that with the tooling (which is the same in every editor) the code becomes more self-documenting.

    You can write "import {} from 'packagename';" and autocomplete tells you what functionality the module offers.
    When you call functions, you see the expected parameters, you know what value you can expect it to return, you can see the JSDoc - without reading docs for every thing you want to do.

    Using out in a large project adds a layer of contract that prevents many runtime errors and allows to reach a certain level of "expectability" - If that function returns a Person, I can always access ".name", it does not suddenly return a string with the name instead.
Add Comment