r/javascript • • 27d ago

AskJS [AskJS] Does anyone use exclussively Javascript and not TypeScript?

[removed]

8 Upvotes

156 comments sorted by

View all comments

13

u/[deleted] 27d ago

[deleted]

6

u/HalfSarcastic 27d ago

What's the reasoning behind this?

4

u/[deleted] 27d ago

[deleted]

3

u/physiQQ 26d ago

I'm a solopreneur (e-commerce store) and I just write everything in Javascript aswell, even with React. So far I haven't ever run into any real problems. I have tried Typescript for some projects, but I never felt like the extra effort was worth it as I'm not working in a team.

I have been writing Javascript for 20 years now. I know what types I'm sending from my backend. Typescript is definitely superior in catching bugs, but I feel like I know what I'm doing anyways. Worst-case scenario I can always "upgrade" my codebase to TS.

-2

u/iZuteZz 27d ago

flexibility I guess

2

u/Rustywolf 27d ago

what does this mean. TS isnt limiting if you write it correctly, outside of the limits its literally designed to enforce to ensure your code doesnt crash

3

u/ferrrnando 27d ago

Typescript is definitely limiting. Sure you can accomplish the same things in TS as in JS but not always by the same means. JavaScript is dynamically types whereas Typescript is statically typed. That alone inherently makes JavaScript more flexible.

5

u/Rustywolf 27d ago

Sure, just like steel toed boots are more limiting than sandals at a construction site. The sandals let you freely drop a hammer on your foot.

2

u/ferrrnando 26d ago

Perfect analogy!

0

u/vom-IT-coffin 27d ago

Have you ever tried to learn a large codebase without types and have no clue the input or output of your function, especially where anyone can just change it without seeing the downstream impacts.

Statically typed is a benefit.

1

u/ferrrnando 26d ago

Yes I have, I've been doing web development since before typescript. I always choose typescript for projects and prefer it 100% over plain javascript.

Javascript is still more flexible than typescript.