does it? Doesn't make my life easier. Source maps making breakpoints sometimes not work, renaming variables so I can't easily access them in the debugger, using libraries being a hassle when they don't (or even when they do) provide types, having to deliberately misconfigure tsconfig in order to get some libs working as modules or non-modules.
Pure JS with typedoc is a muuch easier life
The benefits of types show themselves after a certain size of project. For smaller personal project, the extra build stdps and stuff are more of a headache. JSDoc gives you the same editor knowledge that TS would, but it’s up to you.
I hate Typescript so much it's unreal >why wouldn't you want a compile step to your interpreted language >grab a coffee while you're at it because you'll be waiting for a while >that node module doesn't have type definitions? well sucks for you >you want to call that API? go write some interface definitions to fluff the compilerbull >oh you just command clicked a function from an imported library, of course you must want to see the type definition instead of its implementation duh >sorry your module resolution is wrong have fun figuring out what the frick that means
not gonna lie it has prevented some bugs but it's an abomination to nature, javascript was meant to be buggy and terrible at least it's honest about it
The only bugs I ever had with javascript are related to logic and undefined/misspelled variables. I never had an issue with getting the types wrong. How the hell do people program these days?
depends on what you're making and how good you are at writing proper code. TS is used by large organizations so idiots follow the coding policy set for that organization. A properly written code doesn't require TS if you know the difference between == and === and when one should be used over other.
I hate Typescript because the extra build step is a fricking nightmare.
Also, it was a pain in the ass to get working with some test frameworks.
That said, I WILL NOT start any new projects without it now.
For all its shittiness, the trade-off in my experience is well worth it and I'd abhor having to work on any projects that do not use it.
Absolutely fricking not.
The entire usefulness of Javascript is that it's a powerful yet freeform language, perfect for creating prototypes in.
The moment you start adding constraints you remove the entire point of the language. Might as well start using an actual optimized language at that point.
If you are serious about JavaScript engineering then yes. It makes your life so much easier especially when debugging.
does it? Doesn't make my life easier. Source maps making breakpoints sometimes not work, renaming variables so I can't easily access them in the debugger, using libraries being a hassle when they don't (or even when they do) provide types, having to deliberately misconfigure tsconfig in order to get some libs working as modules or non-modules.
Pure JS with typedoc is a muuch easier life
using for what? ask a real question and you'll get a real answer
>using for what?
personal web projects
it's fine form your own opinion
TS may have a point when collaborating. If you're working alone, it's always created more problems for me than it solved - but your milage may vary
The benefits of types show themselves after a certain size of project. For smaller personal project, the extra build stdps and stuff are more of a headache. JSDoc gives you the same editor knowledge that TS would, but it’s up to you.
>for sanity during development
no
>for sanity during maintenance
absolutely yes
No. If you need to use it, then you need to reconsider the design of your web application.
I hate Typescript so much it's unreal
>why wouldn't you want a compile step to your interpreted language
>grab a coffee while you're at it because you'll be waiting for a while
>that node module doesn't have type definitions? well sucks for you
>you want to call that API? go write some interface definitions to fluff the compilerbull
>oh you just command clicked a function from an imported library, of course you must want to see the type definition instead of its implementation duh
>sorry your module resolution is wrong have fun figuring out what the frick that means
not gonna lie it has prevented some bugs but it's an abomination to nature, javascript was meant to be buggy and terrible at least it's honest about it
The only bugs I ever had with javascript are related to logic and undefined/misspelled variables. I never had an issue with getting the types wrong. How the hell do people program these days?
idiots don't know nor understand coercion in JavaScript and that gives rise to all the moronic errors
If you don't understand javascript well enough to know how types are handled in javascript, then you should be programming in javascript.
*shouldn't be
Type system goes well beyond “getting types wrong.”
jsdoc > typescript
just use jsdoc while ecmascript adds support for types
for frontend stuff nowadays i just use C#
depends on what you're making and how good you are at writing proper code. TS is used by large organizations so idiots follow the coding policy set for that organization. A properly written code doesn't require TS if you know the difference between == and === and when one should be used over other.
if you have access to reliable debugger, you don't need it
I hate Typescript because the extra build step is a fricking nightmare.
Also, it was a pain in the ass to get working with some test frameworks.
That said, I WILL NOT start any new projects without it now.
For all its shittiness, the trade-off in my experience is well worth it and I'd abhor having to work on any projects that do not use it.
Absolutely fricking not.
The entire usefulness of Javascript is that it's a powerful yet freeform language, perfect for creating prototypes in.
The moment you start adding constraints you remove the entire point of the language. Might as well start using an actual optimized language at that point.
>accused other anons of nocoders
>need crutches to make up for being scatterbrained and not knowing how javascript works
>y-you can't make your life easier!
kek, I bet you've never worked on a larger project in any language in your life. ngmi
sure ting, Ranjesh... don't forget to wash your hands after shitting
>NEET nocoder morons/GPT posts
says the cuck that needs mommy to hold hand while pissing because can't understand JS fundamentals
Only if you're committed to the JS ecosystem.
Though if you're living in the JS ecosystem you're living in hell anyway.
Both are deprecated.
https://pyscript.net/