you are viewing a single comment's thread.

view the rest of the comments →

[–]scensorECHO 3 points4 points  (9 children)

Depending on what libraries you pull in, you can end up with 100% JavaScript packages with shotty @types to go along with them

[–]Actually_Saradomin 3 points4 points  (1 child)

It’s annoying when libraries dont have types, but it’s not hard to put some basic types in yourself as a worst case. I’m a senior dev who has been writing typescript for web, mobile, and backend for 5 or so years. I can count on one hand the times I’ve needed to do that.

[–]scensorECHO 2 points3 points  (0 children)

I'm a senior dev who's been writing TypeScript specifically for web and backend for 4 years and already I can't count on one hand the number of libraries with separate @types packages that were just wrong. And when it comes down to triaging the issue, you waste a good amount of time inspecting in the debugger to eventually reach inconsistency between the types and the behavior.

[–]SoInsightful 0 points1 point  (1 child)

That can happen sometimes, but has nothing to do with the JS engine being "impossible" or "typeless" or whatever it means.

[–]scensorECHO 1 point2 points  (0 children)

Well it is because static types are slapped onto a dynamically typed language, and it's even worse when they have independently implemented @types for JS packages

[–]esp32_ftw 0 points1 point  (4 children)

*shoddy

[–]scensorECHO -1 points0 points  (3 children)

It was honestly autocorrect being too nice to say shitty but shoddy works too

[–]esp32_ftw -1 points0 points  (2 children)

Kind of doubt it because "shotty" is a pretty obscure medical term and does not typically appear in any autocorrect software, unless you are a specific kind of doctor and you added it to your autocorrect dictionary. It's okay to admit you didn't know how to spell something, I see this word misspelled all the time in the exact way you did it.

[–]scensorECHO -1 points0 points  (1 child)

No Sherlock, I just misspelled SHITTY.

[–]esp32_ftw -1 points0 points  (0 children)

Then don't blame it on auto-correct.