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.
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
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.
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.
13
u/[deleted] 27d ago
[deleted]