Re:TypeScript 3.4
by ncphillips on Saturday March 30, 2019 @02:30PM
(#19530935)
> starting a Typescript project is like accepting unnecessary complexity from the beginning
Dynamic typing is what really hides complexity. The higher order component pattern in React is a prime example. What seems like a simple idea is revealed to be extremely complex once you try to implement it using Typescript. Writing the types is a great way to get feedback on how complex your abstractions really are.
Deciding to use Typescript is about making a commitment to reveal and deal with unnecessary complexity from the beginning.
Dynamic typing is what really hides complexity. The higher order component pattern in React is a prime example. What seems like a simple idea is revealed to be extremely complex once you try to implement it using Typescript. Writing the types is a great way to get feedback on how complex your abstractions really are.
Deciding to use Typescript is about making a commitment to reveal and deal with unnecessary complexity from the beginning.