Re:Extreme explorations of TypeScript's type system
by seanmcdirmid on Monday June 27, 2022 @08:57PM
(#31902873)
It isn’t unusual that a complex working solution can be simplified over time. Isn’t that part of eliminating tech debt or something?
Typescript is just one of those languages where things can get carried away but then reigned in again with a nice complexity gradient.
Re:Extreme explorations of TypeScript's type system
by xthrowawayxx on Tuesday June 28, 2022 @02:26AM
(#31904731)
>I lost it when at my previous job I found a 20 multiline super complex type defined by another dev, asked him to describe it because I was in a tight deadline and had not time to parse whatever he was defining. He starts with "it's pretty simple" and then used like 10 minutes to describe me what he meant while writing on paper the various pieces getting confused two time
sorry about that
I really wish people would focus more on keeping types as simple as possible instead of using that complexity just because the language allowed it.