Kote Isaev on Nostr: I use typescript mostly because of: 1️⃣ it work more or less like compilation ...
I use typescript mostly because of:
1️⃣ it work more or less like compilation step, and prevent running broken code in most cases
2️⃣ It better supports generics than JSDOC's `@template` directive.
3️⃣ IDE's itellisense features love TS more than these JSDoc declarations. So with typescript i get some productivity boost than without it.
If vanila JS and JSDoc will give me that, I will not need TS anymore
Published at
2024-06-20 23:55:51Event JSON
{
"id": "9b721f2087efbe052ee1183c2fc4db0dd69f40275312c9e5a8173972d1443e33",
"pubkey": "2ceb75c8271582855ec79d56c3f90da020e88de9f98dd6e76a1c7e436d5da02a",
"created_at": 1718927751,
"kind": 1,
"tags": [
[
"p",
"9514f8f344dd309396ef36ea9ce44633165c2752c35cb9c52c0144ea8e14a8c0"
],
[
"proxy",
"https://mastodon.online/@koteisaev/112651649122145484",
"web"
],
[
"e",
"77a3b3df91005463fc9b7c9db8b3fa00e044ca2b51acc1d7ac16b7166a3eee1d",
"",
"root"
],
[
"proxy",
"https://mastodon.online/users/koteisaev/statuses/112651649122145484",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.online/users/koteisaev/statuses/112651649122145484",
"pink.momostr"
]
],
"content": "I use typescript mostly because of:\n1️⃣ it work more or less like compilation step, and prevent running broken code in most cases\n2️⃣ It better supports generics than JSDOC's `@template` directive.\n3️⃣ IDE's itellisense features love TS more than these JSDoc declarations. So with typescript i get some productivity boost than without it.\nIf vanila JS and JSDoc will give me that, I will not need TS anymore",
"sig": "6d0c6f4cc09297c12ed842f5df2127418ba11ca6060ba4fa30ee54f7bd463cd917262005f508000b67c153c80cf1551d7b0775ee1a73a5a2317036bcc0a0a0f5"
}