Hacker News new | past | comments | ask | show | jobs | submit login

For prototyping using React and TS sounds like a bad idea, because React is not that well supported by the TS community.

Whereas if you were to use Angular there the types help you.

Or, if you do something in Android with Kotlin, the types are very helpful. Quick auto complete and instant sanity checking of the code.

No oops cannot call method on undefined. I found that was what took a lot of time for me when I used plain JS.

Furthermore using mixed codebases make things really slow, because then either you need to disable strict mode, or you need to provide typings for at the interface of the TS JS files.

Again, this is probably very much path dependent. If you use a lot of strongly typed things for years, then you'll be fast in that. Just two days ago a colleague helped me with some Scala, and we ended up with a few lines of EitherT monad transformers that helped type some code involving Future and HttpResult types. I felt the exact same "figuring out the types takes too long" on my own, so I initially went with less functional Scala.

So the same/similar problems (like typing React and Redux) exists in other languages as well, and for some folks it's nothing, because they are very accustomed to that kind of thinking.




> For prototyping using React and TS sounds like a bad idea, because React is not that well supported by the TS community.

Not really true and guess you misunderstood me and are not on the latest state of things. You can perfectly use the TS compiler as the compiler for your JSX code. Then you can decide case by case when to use TSX or not. and many major libs (mobx, formik) are written in TS and perfectly support TS.

I'd disagree with you statement that long usage of a typed language makes you faster. It is about choosing the right tools and static typing ist not always the right answer. But this is exactly what annoys me: the urge to evangilize everyone with static typing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: