Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I keep meaning to get into typescript but just don't get around to it.
But man that reads on the surface like something trying to let you know what is 'incompatible' while obscuring whatever it actually is. I read that and think "Can't you just error out like a normal person?".
Granted, this is probably because I don't know Typescript. -
@N00bPancakes Omg yes! I spent 5 minutes trying to figure out what type something required
-
@N00bPancakes
React's typescript defs tend to be hacky. A good example is the poormansunknown type. They hard cast to avoid propagating an unknowable reference and pretend really hard. -
@N00bPancakes in my exp Typescript is relatively pleasant to work with for own code, but it becomes annoying and messy when you need to fiddle with 3d party types and ensure compatibility (which is constantly with React & 100s of libs).
That said Typescript is only pleasant insofar as I use VSCode.
Related Rants
The final hour of mental torture among many of finding a complex solution to an otherwise simple problem in a React/Typescript project:
rant
typescript
over-engineering
grind
react