Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rauschma
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
rauschma
2y ago
Versioning has many downsides. Let’s assume we create a new version of JavaScript that is not backward compatible and fixes all of its flaws. As a result, we’d encounter the following problems: • JavaScript engines become bloated: they need
2.
▲
by
rauschma
2y ago
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 stat
3.
▲
by
rauschma
2y ago
It depends on what you mean by syntactic sugar. I follow this definition: https://en.wikipedia.org/wiki/Syntactic_sugar You can indeed translate an async function to an equivalent function that uses .then() but it’s a
4.
▲
by
rauschma
2y ago
Thanks for posting this! (I’m the book’s author.) – The whole book is free to read online. – This chapter gives an overview of what’s new in each ECMAScript version: https://exploringjs.com/js/book/ch_new-javascrip
5.
▲
by
rauschma
4y ago
I wrote my JavaScript book for people who already know how to program – maybe it works for you. Free to read online: https://exploringjs.com/impatient-js/
6.
▲
by
rauschma
4y ago
FWIW – with Mathias’ help, I turned this tweet thread into a blog post: https://2ality.com/2022/05/rfc-9239.html
7.
▲
by
rauschma
4y ago
Thanks for the kind words! W.r.t. the “Dr.”: It’s interesting how much reactions differ. In Germany, people tend to think you are smart if you have a title. In the States, people tend to think you’re incapable of functioning in the real wor
8.
▲
by
rauschma
4y ago
I have written four chapters about asynchronous JavaScript: – Foundations: https://exploringjs.com/impatient-js/ch_async-js.html – Promises for async programming: https://exploringjs.com/impatient-js&#x
9.
▲
by
rauschma
4y ago
For what it’s worth: That’s not what motivated this blog post. It was that I often encounter people who see the three dots being used in parameter definitions or destructuring and don’t understand what is going on (because they think it is
10.
▲
by
rauschma
5y ago
The Temporal cookbook has more information on time arithmetic: https://tc39.es/proposal-temporal/docs/cookbook.html#arithme...
11.
▲
by
rauschma
5y ago
Thanks! I’m glad to hear that.
12.
▲
by
rauschma
5y ago
[I’m the author of “Deep JavaScript”.] Don’t forget that this book is for people who already know JavaScript well. It doesn’t try to explain the basics. This book does, though: https://exploringjs.com/impatient-js/
13.
▲
by
rauschma
5y ago
From what I’ve read, TC39 acknowledges that this is important and is working on fixing JavaScript’s deficiencies in this area: – BigInts (arbitrary precision integers) were a recent addition: https://exploringjs.com/impatien
14.
▲
by
rauschma
5y ago
In JavaScript, classes are mostly just a slightly weird way of setting up prototype chains. Diagrams help me understand how this works. At the following link, you can see the source code of a simple class and a diagram (section 29.2.2) that
15.
▲
by
rauschma
5y ago
You can check out my book (it’s free to read online): https://exploringjs.com/tackling-ts/
16.
▲
by
rauschma
5y ago
I’ve asked on Twitter: https://twitter.com/rauschma/status/1401538009212784643
17.
▲
by
rauschma
5y ago
IIRC, adding those operations was merely postponed, not rejected. These are work-arounds: https://exploringjs.com/impatient-js/ch_maps.html#missing-ma...
18.
▲
by
rauschma
6y ago
AssemblyScript [1] is an example of a subset of JavaScript being compiled to fast WebAssembly. But it is very static code. If you want to run dynamic JavaScript fast, you need the more sophisticated strategies used by modern JavaScript engi
19.
▲
by
rauschma
6y ago
Here is a list: https://en.wikipedia.org/wiki/Prototype-based_programming#La... JavaScript itself was inspired by Self in this case.
20.
▲
by
rauschma
6y ago
These two books are based on the 2ality blog and also free to read online: – JavaScript for impatient programmers (covers most of ES1–ES2020, incl. many advanced topics): https://exploringjs.com/impatient-js/ – Deep Ja
21.
▲
by
rauschma
6y ago
Everything you’ve mentioned plays a role. It has also worked well marketing-wise: In Germany, people take you more seriously; in the US it doesn’t matter, but a title is still more memorable.
22.
▲
by
rauschma
6y ago
Ping me at dr_axel AT icloud.com and I’ll notify you. Two universities in Switzerland are using my book to teach JavaScript and seem happy with it, so far.
23.
▲
by
rauschma
6y ago
(Just in case the title is putting you off: You are describing the goals of this book.)
24.
▲
by
rauschma
6y ago
I agree! I’m in the process of editing the relevant chapter.
25.
▲
by
rauschma
6y ago
The title is tongue-in-cheek. The book itself is not superficial.
26.
▲
by
rauschma
6y ago
The book did indeed get longer than I had planned. However, there is a “quick mode” for reading it: https://exploringjs.com/impatient-js/ch_about-book.html#isnt...
27.
▲
by
rauschma
6y ago
> The first variable using `const` is called ”immutable”, which is misleading, since only the _assignment_ is immutable That’s a first look at the syntax. The details are explained here: https://exploringjs.com/impatient-
28.
▲
by
rauschma
6y ago
Thanks for the mention! The book is free to read online and was updated to ECMAScript 2020 last week.
29.
▲
by
rauschma
6y ago
I have written a few words about various strategies for migrating. Maybe it’s helpful: https://exploringjs.com/tackling-ts/ch_migrating-to-typescri...
30.
▲
by
rauschma
7y ago
Thanks for the mention! The chapters: – Asynchronous programming in JavaScript: https://exploringjs.com/impatient-js/ch_async-js.html – Promises for asynchronous programming: https://exploringjs.com/imp
More ›