Lea Verou on Nostr: I’ve spent some time on a TypeScript codebase this week¹. I’ve now spent more ...
I’ve spent some time on a TypeScript codebase this week¹.
I’ve now spent more time fighting against TS than writing out logic.
Corollary: I would've been 2x as productive without it.
Of all these warnings, how many helped me fix real bugs? None.
The original vision of TS was brilliant: Optional type hints get you the benefits of type checking, without getting in the way when you don't need them.
But at this point, TypeScript is no less painful than Java.
¹ I prefer JSDoc+TS imports myself.
Published at
2024-12-08 01:20:37Event JSON
{
"id": "657ef9b8ba6848f8e3216387db2b6b8b9766234fe6161af36f9c34b710025b01",
"pubkey": "deb27057e60b8d796302849309a7c542aa1c718108be4813086deaf9139dff76",
"created_at": 1733620837,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/users/leaverou/statuses/113614575183456313",
"activitypub"
]
],
"content": "I’ve spent some time on a TypeScript codebase this week¹.\n\nI’ve now spent more time fighting against TS than writing out logic.\n\nCorollary: I would've been 2x as productive without it.\n\nOf all these warnings, how many helped me fix real bugs? None.\n\nThe original vision of TS was brilliant: Optional type hints get you the benefits of type checking, without getting in the way when you don't need them.\n\nBut at this point, TypeScript is no less painful than Java.\n\n¹ I prefer JSDoc+TS imports myself.",
"sig": "4e14ab4708f1633ce37428c6887c9075c4a95df4462b1a438d54037630765441a6b2b602a008bb04d32f2fc56301ae7499e0aa8096bfc031b2628b14ce51443c"
}