Python dethrones JavaScript as the most-used language on GitHub
theregister.com
theregister.com
Then again, I'm not a front-end dev, I just do hobby projects with JS.
I recently to wrote an application that interfaces with a non-trivial Json API which returns many different data types.
I defined all the interfaces produced by the API in TS, and once this was done the app practically wrote itself with hardly any surprises.
With the data structures documented, the logic is concise and readable. To me, this is "better Javascript".
Of course, if the API changes, randomly all the types are a lie... it would be nice if I could reuse the types to do some runtime validation of fetch results, pydantic-style.
JavaScript is actually awesome the same way that Python and Ruby are. The fact it is loosely typed makes it great for just whipping up something quick. For my own projects, I use plain JavaScript and may or may not use types via JSDoc. I'm not saying JavaScript isn't flawed, but I am more accustomed to it.
Typescript may have supplanteed plain JavaScript for production JavaScript applications. That doesn't mean there is no point in plain JavaScript ever. For many things I write, I have little interest in the strictness of even the loosest Typescript settings.
In terms of Typescript syntax, I don't think I would use it outside of my job at this point. Types are a good idea, but I have found JDDoc to be good enough in most cases.
2024 is wild for programming languages.