Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@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? -
hawkes15228yWhat 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.
Related Rants

What only relying on JavaScript for HTML form input validation looks like
Found something true as 1 == 1
It's interesting how much fun Javascript is, when you just ignore it and use Typescript instead. 😎
undefined
js
ts
them typings though
intellisense best sense