Computer Programming-language Javascript
-
-
@jack-waugh Just to be clear, JavaScript isn't so much my favorite language because I like the language itself, but it's the language I know best because it is the only one, or at least the most straightforward one, to do things in a browser. And browsers have incredibly rich APIs that allow you to do all kinds of interesting things and don't require users to do any setup beyond going to a web page.
There are a lot of positives of Typescript, but I hate the fact that you have to go through extra steps to get it to run in a browser and debug it. I don't like that I spend way too much time trying to make Typescript happy. (when designing something , I like to work fast and loose until I know where it is going) It looks like, going forward, I will start most things in Javascript and then use ChatGPT later to up-convert to Typescript, which it does remarkably well. (it is able to infer things from your variable names, it is able to read english language comments, etc, all of which helps it do this well)
I learned with C over 30 years ago and I've done some C++ along the way. I suppose that influences me in that I like that Javascript has a very C-like syntax.
-
@rob Yeah, I haven't bothered to learn Typescript (TS). And I suspect it would keep me from doing some things the way I prefer to do them, as it may have arbitrary limitations on types.
-
@jack-waugh I have to use it for work. I don't think it is horrible for "final" code, I just wish it was easier to work in plain old javascript as you build things out without causing all sorts of problems. And I'd like it a lot more if browsers supported it natively without having to deal with source maps and such.