S
S
Stepan19982022-03-02 11:45:58
Electronic books
Stepan1998, 2022-03-02 11:45:58

What's a good TypeScript book for those who only know JS and didn't come into this world from C with OOP?

Prompt a good book on TypeScript for those who know only JS and did not come to this world from the C language with OOP? There are many things in TS that are generally incomprehensible
why they are there, such as interfaces and so on, only extra code and a bunch of extra files
how I used to live without it
So far, only the opposite effect of misunderstanding why this TS is needed at all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-03-02
@vabka

In order to learn Typescript, you only need to know JS, because this is js, just with additional checks.
https://www.typescriptlang.org/

which are generally incomprehensible why they are there, such as interfaces and so on, only extra code and a bunch of extra files

Then maybe you don't need TS, since it's too much for you?
All this extra code is needed to describe the types.
Although, in principle, this is an optional part of TS. It can work without them, although less accurately. And types in function parameters can be described via jsdoc.
This is necessary in order to:
1. Increase the reliability of the code by getting rid of errors caused by typos, forgetting about null / undefined, dangerous implicit type conversion, and attempts to perform illegal operations on data.
2. Improve developer experience by providing more accurate tooltips in the editor.
If these two points are not relevant for you, then you do not need TS, at least for now

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question