dx fails

1 view
Skip to first unread message

Raoul Duke

unread,
Nov 24, 2025, 4:05:17 AM (8 days ago) Nov 24
to pi...@googlegroups.com
suspend disbelief and assume static typing is good. 

the usability of the syntax maters. duplicating variable names in the "sig" is terrible dx. 

like early js flow done in comments vs. typescript done inline. just a bit mind boggling to me that people think it is at all ok. 

Mike Austin

unread,
Nov 26, 2025, 4:26:01 PM (6 days ago) Nov 26
to PiLuD
I could see that. Yeah, types in comments - no thanks! Luckily TypeScript works without out many changes to JS. Other languages, I'm not sure how easy it is to add types.

The main issue I had with TypeScript was learning all the React types (React.ComponentProps<>) and utilities (Omit<typeof Foo, 'children'>), and new keywords (keyof typeof Foo, as const). I'm over the hump so I feel productive now. I use types in function declarations, but rarely in the body of a function where types can be inferred. reduce() needs some coercion, when passing in empty arrays/objects for the accumulator for example.
Reply all
Reply to author
Forward
0 new messages