At the beginning transitioning was hard because of the paradigm shift. It was worth it. Keep doing it.
Better quality in the code? Yes.
Typescript change the culture of the devs actually. Making them more careful and at the same time more relaxed on writing code and not worrying to find some undefined is not a function kind of bug.
I did notice using Typescript in a big project. Changes to a module that is a dependency to a lot of other codes doesn't seem as hard as when doing it in JS. Of course changes are mostly evil. It's better reduce changes with the right code architecture.
One thing that you might want to care about when you're using typescript, it doesn't help with your javascript code runtime. I found that using io-ts helps a lot (github.com/gcanti/io-ts). It sort of introduce a decoder to your javascript code so that it can decode unknown or any type to an exact type on runtime. Put decoder on network calls and storage accesses and your app would be resilient af.
Happy coding
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
At the beginning transitioning was hard because of the paradigm shift. It was worth it. Keep doing it.
Better quality in the code? Yes.
Typescript change the culture of the devs actually. Making them more careful and at the same time more relaxed on writing code and not worrying to find some
undefined is not a function
kind of bug.I did notice using Typescript in a big project. Changes to a module that is a dependency to a lot of other codes doesn't seem as hard as when doing it in JS. Of course changes are mostly evil. It's better reduce changes with the right code architecture.
One thing that you might want to care about when you're using typescript, it doesn't help with your javascript code runtime. I found that using io-ts helps a lot (github.com/gcanti/io-ts). It sort of introduce a decoder to your javascript code so that it can decode unknown or any type to an exact type on runtime. Put decoder on network calls and storage accesses and your app would be resilient af.
Happy coding