It is worth it if you want me on the team. I refuse to work with anyone who throws out TS for JS in 2023.
Slightly longer answer:
I have said a number of times
"Javascript is a simple version of Java in the same way as a bike with one wheel is a simpler version of an ordinary bike."
The same can be said about JS and TS. If you want to do any serious work you go for the serious thing even if it means occasional adjustment of brakes and gears, or in Typescripts case, sometimes figuring out something.
If anybody suggest to use Javascript today I won't take them seriously.
i) I have used Typeescript since 2017. For some reason I don't have these problems and never had.
ii) Yes, some libraries are poorly documented, that is for me a reason to prove why I am a software engineer by either figuring it out, complain until they fix it or even better use my gut feeling and use some libraries that aren't stuck 10 years ago.
iii) Error messages can be hard, but compared to debugging the mess that happens without typing it isn't hard at all.
iv) Have someone look at your project setup.
And before someone says I don't know Javascript: I wrote my first javascript application (OK ECMAScript since it was in Adobes SVG plugin), which was a working map, dynamically updated based on GPS position, back in the spring of 2005, that is half a year or so before Google Maps and years before most people took Javascript seriously so I should be qualified to have opinings. Yes, it wasn't production quality, but I built the logic more or less alone in 5 months in between other school work.
I don’t want to sound harsh, but saying Javascript is a simpler version of Java just tells me you have never used Java seriously.
It’s like saying Korean is a simpler version of Spanish.
Yes, Java and Javascript are both programming languages, but they don’t even share the same paradigm.
You might be confusing the motivation that led to the creation of Javascript with the actual implementation.
Having said that, I have used Java professionally for more than 7 years, then I switched to mainly Javascript, and later to Typescript, and I’m never going back. I agree with your overall point.
In my opinion it is up there with null and other billion dollar mistakes.
The language only works as well as it does because hundreds of people smarter than me have spent hundreds of man-years creating toolings and ecosystems around it to work around all its problems.
This is not to be read as a dismissal of Brendan Eich or anyone - it is totally amazing that he threw together a language that has worked so amazingly well in three weeks.
But everytime one switches between TS and JS one wonders how much money could have been saved if he had somehow invented TS instead back then.
How about instead of analogies (which we've misunderstood even on this thread), just say this: "Java and Javascript are very different languages, don't be confused by the similarity of the names".
Of course, at this point virtually everyone knows this, now we are only arguing about which analogy to use to describe something we all understand.
ha, If I was on that team I'd seriously consider opting for vanilla JS just for not having to work with you.
People who make such absolute claims are in my experience causing more trouble than they're worth. They will always nit-pick on anything anyone is saying causing a toxic atmosphere.
Frequently a little later I then figured out that such people think like that because they haven't seen enough of the world and the gigantic amount of options you have to solve your technical problems.
If you don't need my advice you can save a lot of money by not hiring me. Edit: The reason why people hire me as a consultant is hopefully because I give clear and valuable advice, and on JS/TS, if TS doesn't work better you are very probably doing something wrong.
But don't complain to me when JS bites you behind again and again.
Comparing Java & Javascript? This reminds me the last recruiter message I got on LinkedIn. "You are a Javascript expert, I have this mission for you with the same language! They're looking for a Java expert!"
whoever said that javascript was a simple version of java? the two languages have almost nothing in common - at least a unicycle and a bicycle share the concepts of "wheel" and "pedals".
The syntax is very similar on the surface, at least compared to Perl, PHP, Python, C and - I would personally say - C++ and a number of other languages.
Yes, there is no way you'd mistake one for another if you have worked in any of them - but they look superficially similar.
Java has wheels and pedals. Javascript only has objects that say they are wheels, and objects that say they are pedals, but which are really both and neither at the same time.
It is worth it if you want me on the team. I refuse to work with anyone who throws out TS for JS in 2023.
Slightly longer answer:
I have said a number of times
The same can be said about JS and TS. If you want to do any serious work you go for the serious thing even if it means occasional adjustment of brakes and gears, or in Typescripts case, sometimes figuring out something.If anybody suggest to use Javascript today I won't take them seriously.
i) I have used Typeescript since 2017. For some reason I don't have these problems and never had.
ii) Yes, some libraries are poorly documented, that is for me a reason to prove why I am a software engineer by either figuring it out, complain until they fix it or even better use my gut feeling and use some libraries that aren't stuck 10 years ago.
iii) Error messages can be hard, but compared to debugging the mess that happens without typing it isn't hard at all.
iv) Have someone look at your project setup.
And before someone says I don't know Javascript: I wrote my first javascript application (OK ECMAScript since it was in Adobes SVG plugin), which was a working map, dynamically updated based on GPS position, back in the spring of 2005, that is half a year or so before Google Maps and years before most people took Javascript seriously so I should be qualified to have opinings. Yes, it wasn't production quality, but I built the logic more or less alone in 5 months in between other school work.