callmepk@lemmy.world to Programmer Humor@lemmy.ml · 2 years agoMe, migrating my code from JavaScript to TypeScript:lemmy.worldimagemessage-square23linkfedilinkarrow-up1313
arrow-up1300imageMe, migrating my code from JavaScript to TypeScript:lemmy.worldcallmepk@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square23linkfedilink
minus-squarefolkrav@lemmy.worldlinkfedilinkarrow-up81arrow-down3·2 years agoMight as well not use TypeScript
minus-squarePoopMonster@lemmy.worldlinkfedilinkarrow-up37·2 years 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·2 years agooh you’ve got a private variable that I want to use? No worries, (foo as any)[‘secret’].
minus-squarefusio@lemmy.worldlinkfedilinkarrow-up11·2 years 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·2 years 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 :/