Live data from Hacker News

Ask HN: Changing my mind about JavaScript

news.ycombinator.com

71–73 of 73 posts

Re: Ask HN: Changing my mind about JavaScript

#71
post #19

Static types are sanity when the people and years keep increasing. It isn't at all important in small one man projects since most of your defined types are in your head in any case. There is nothing wrong with JavaScript as a language beyond it's, originally questionable, foundations that have since been iterated upon (much like PHP). As a massive fan of static typed languages. There is no denying that dynamic typed…

I often hear people say this, but in my opinion, static types save a ton of trial and error and help you out even for a 20 LoC script.

And have great discoverability when fully integrated into an IDE.

Re: Ask HN: Changing my mind about JavaScript

#72

Earlier quoted context omitted.

My biggest gripe with Typescript is how much more difficult (Except perhaps in Bun/Deno) it is to set up compared to vanilla JS.

npm install ts-node ts-node ./my-typescript.ts doesn't seem difficult...

Until you have to deal with Jest for testing, or React.

Re: Ask HN: Changing my mind about JavaScript

#73
post #3

I have used many languages in my nearly 40 years as a programmer (Scheme, C++, Java, Python, Haskell, OCaml, Rust, etc.) and still enjoy JavaScript: It’s decent as a language and there is so much you can do with it. Tips: • If you like static typing, you’ll want to use TypeScript. It’s more work to set up, but it catches many bugs, especially subtle ones where JavaScript’s semantics are not intuitive. • I learned a l…

How does your book Deep Javascript compared to You Don't Know Javascript? I just finished a Eloquent Javascript and looking for something advanced.
Post reply on HN