[HN Gopher] A long list of (advanced) JavaScript questions, and ...
___________________________________________________________________
A long list of (advanced) JavaScript questions, and their
explanations
Author : redbell
Score : 68 points
Date : 2024-05-16 20:07 UTC (2 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| bironran wrote:
| Cannot be complete without a reference to Wat
|
| [https://www.destroyallsoftware.com/talks/wat]
| robbiejs wrote:
| Love it! Thanks for sharing.
| alphazard wrote:
| And this is why there's so much interest in transpiling to
| Javascript. Rather than commit any time to understanding these
| often poorly designed semantics, automate that complexity away
| with a better designed language.
| Hammershaft wrote:
| It's a tragedy when you think about how many millions
| (billions?) of man hours have been wasted on javascript because
| it's the only native scripting language of the browser. Even
| more tragic is that the original plan was to make scheme the
| language of the browser.
| nanomonkey wrote:
| Well, now you _can_ compile scheme to run on the browser with
| Hoot (Guile scheme to WASM): https://spritely.institute/hoot/
| MatthiasPortzel wrote:
| [delayed]
| onychomys wrote:
| At first I thought maybe this was showing that I'm way less good
| at JS than I thought I was. But after thinking about it some
| more, I'm still fine at JS. All my sites work just fine. My
| clients are seemingly happy with them and I get paid for it.
| Instead, I'm just not good at the weird edge cases that nobody
| actually ever hits, which is what all these questions are!
|
| (that being said, I do roll my eyes every time I have to clear
| out an array by doing myarray.length = 0 instead of myarray = [].
| JS is such a silly language sometimes.)
| sjrd wrote:
| I sampled about 20 questions and got them all right. I guess it
| helps to be author of a compile-to-JavaScript language. That
| gives way more knowledge about the tricky spec corner cases.
| Knowing these things is less useful for a JavaScript
| practitioner.
| MatthiasPortzel wrote:
| [delayed]
___________________________________________________________________
(page generated 2024-05-16 23:01 UTC)