this post was submitted on 18 Oct 2023
299 points (96.0% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] folkrav@lemmy.world 78 points 2 years ago (4 children)

Might as well not use TypeScript

[–] PoopMonster@lemmy.world 37 points 2 years ago (1 children)

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?

[–] master5o1@lemmy.nz 7 points 2 years ago

oh you've got a private variable that I want to use? No worries, (foo as any)['secret'].

[–] fusio@lemmy.world 11 points 2 years ago

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.. :/

[–] seeyouinteawhy@lib.lgbt 9 points 2 years ago

That's the joke

[–] chicken@lemmy.dbzer0.com 3 points 2 years ago (1 children)

tbh I don't remember why I'm using TypeScript

[–] folkrav@lemmy.world 4 points 2 years ago

Cause otherwise it's plain JS :/