|
|
|
|
|
by emmanueloga_
2802 days ago
|
|
Quick q, are the "walls of errors" of errors coming from code you wrote yourself or from 3rd party libraries? I ask because you say that you want to learn the more complicated types, but I'd say it is better to stick to the basic types for your own code. It seems obvious to me now, but It took me a while to realize: the reason TS type system is so advanced is to be able to accommodate all the crazy JavaScript APIs that are already out there in the real world. New code doesn't need (and most likely should not) use many of those complicated patterns. This is also why other compile-to-JS languages have an advantage over TS: they don't have the burden of having to express all the craziness that is JS, and will probably be built around a much simpler/cohesive core of ideas. TS is still an amazing compiler that provides lots of value: many projects other than TS benefit from TS type definitions. But I'd rather use something else if I'm writing an app from scratch. I'm exploring ClojureScript these days. |
|