callmepk@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoMe, migrating my code from JavaScript to TypeScript:lemmy.worldimagemessage-square23fedilinkarrow-up1312
arrow-up1299imageMe, migrating my code from JavaScript to TypeScript:lemmy.worldcallmepk@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square23fedilink
minus-squarefolkrav@lemmy.worldlinkfedilinkarrow-up81arrow-down3·1 year agoMight as well not use TypeScript
minus-squarePoopMonster@lemmy.worldlinkfedilinkarrow-up37·1 year agoJust as irritating as seeing people use linters only to have a lot of files with @ts-ignore all over the place… Like why even bother?
minus-squaremaster5o1@lemmy.nzlinkfedilinkarrow-up7·1 year agooh you’ve got a private variable that I want to use? No worries, (foo as any)[‘secret’].
minus-squarefusio@lemmy.worldlinkfedilinkarrow-up11·1 year agousing any is actually much worse than using TS, because you’re basically telling the compiler “don’t help me here”… at least with JS the IDE is gonna help you… :/
minus-squarechicken@lemmy.dbzer0.comlinkfedilinkarrow-up3·1 year agotbh I don’t remember why I’m using TypeScript
Might as well not use TypeScript
Just as irritating as seeing people use linters only to have a lot of files with @ts-ignore all over the place… Like why even bother?
oh you’ve got a private variable that I want to use? No worries, (foo as any)[‘secret’].
using
any
is actually much worse than using TS, because you’re basically telling the compiler “don’t help me here”… at least with JS the IDE is gonna help you… :/That’s the joke
tbh I don’t remember why I’m using TypeScript
Cause otherwise it’s plain JS :/