Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_getify
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
_getify
7y ago
In JS: -0 + 0; // 0 -0 + (-0); // -0 -0 - 0; // -0 I claim that the `-0 + 0` case is the strange inconsistent one, so that's the reason for my WTF label. ---- Consider the counter-argument,
2.
▲
by
_getify
7y ago
The "WTF" label is not about correctness, it's about surprise/intuition. It doesn't really matter to me whether it's mathematically or IEEE correct. It's strange and inconsistent. Yes, two numbers of diffe
3.
▲
by
_getify
8y ago
(self post)
4.
▲
“I Don't Hate Arrow Functions” Blog Post
(davidwalsh.name)
4 points
by
_getify
8y ago
|
2 comments
5.
▲
by
_getify
10y ago
Just FTR: this is not accidental or lazy on my part. It's highly intentional. But I can certainly appreciate that it frustrates some learners. There's a principle called "Cognitive Load Theory" [1] which I believe all te
6.
▲
by
_getify
10y ago
First, I think it's disingenuous for an author to revel only in the positive reviews and "just ignore" the negative. An author should take all feedback and do the best with it he/she can. I read all reviews, and try to f
7.
▲
“Promises: All the Wrong Ways” exploring promise anti-patterns
(blog.getify.com)
4 points
by
_getify
10y ago
|
0 comments
8.
▲
“Why I'm Not Waiting on 'await'”; 2-pt blog post on pros/cons of 'async..await'
(blog.getify.com)
4 points
by
_getify
10y ago
|
0 comments
9.
▲
by
_getify
10y ago
I'm excited about the `SharedArrayBuffer` addition, but quite meh on the `Atomic.wait()` and `Atomic.wake()`. I think CSP's channel-based message control is a far better fit here, especially since CSP can quite naturally be modele
10.
▲
by
_getify
10y ago
self submission
11.
▲
Teaching: Convergence and Divergence
(blog.getify.com)
2 points
by
_getify
10y ago
|
1 comments
12.
▲
by
_getify
11y ago
YAML claims to not be markup, but it clearly is a markup for data (significant whitespace/indentation, etc). When I want to do markup, I use Markdown. When I want to data serialization, I use JSON. It's incredibly easy to strip co
13.
▲
by
_getify
11y ago
I didn't mention in my comment, but I also use Markdown for all my technical documentation (READMEs) on my dozens of github OSS projects. I have lots of cross-references and I use normal links to named section anchors (sometimes that I
14.
▲
by
_getify
11y ago
The books were intended as source material for publishing, so I didn't embed any crosslinks in the documents. However, I always use markdown for all my OSS project documentation (READMEs, etc), and I do lots and lots of cross-referenci
15.
▲
by
_getify
11y ago
I wrote a six book, 1100 page series in Markdown (all on github). I write all my blog posts in Markdown. I'm sorry but I just can't sympathize with any of the complaints leveled against Markdown. They are so minor and compared to
16.
▲
by
_getify
11y ago
(self post)
17.
▲
Thoughts on Thunks; How JavaScript thunks explain promises
(blog.getify.com)
5 points
by
_getify
11y ago
|
1 comments
18.
▲
I heard there was a problem with JavaScript? There, I fixed it for you
(twitter.com)
1 points
by
_getify
11y ago
|
0 comments
19.
▲
by
_getify
11y ago
self submission
20.
▲
“Concurrently JavaScript”; exploring concepts of concurrency, parallelism, async
(blog.getify.com)
5 points
by
_getify
11y ago
|
1 comments
21.
▲
by
_getify
11y ago
disclosure: self submission
22.
▲
“Arrow This”: clearing up how ES6 = arrows handle 'this' and others
(blog.getify.com)
3 points
by
_getify
11y ago
|
1 comments
23.
▲
by
_getify
11y ago
> If you pass a reference to the x array to a function This notion (concern) is meaningless in JS, since when you pass any reference, it's always a reference-copy, so there's no value nor assistance that `const` provides.
24.
▲
by
_getify
11y ago
It's not the core argument. It was a tangential side note in the blog post.
25.
▲
by
_getify
11y ago
But my post did actually conclude the cases where it's useful. It seems like a lot of people here only read the first half of the post and stopped. I don't think `const` should be removed. I just don't think we should lead wi
26.
▲
by
_getify
11y ago
> Your argument against using const comes down to ... You did an absolutely horrible job of summarizing even remotely what my argument was, so I guess "I won't even try to respond to" this, since you either can't crit
27.
▲
by
_getify
11y ago
I don't think my argument was to avoid `const`. I think my argument was to pick `const` at the end rather than at the beginning. I feel those are different arguments.
28.
▲
by
_getify
11y ago
I would genuinely (no sarcasm) like to read a blog post that makes a stronger argument (in either direction) than mine. Most blog posts I've read about `const` cite very flimsy things like "it makes my code more readable" wit
29.
▲
by
_getify
11y ago
> I know that after reading a const line I don't have to check if someone rebinds this name before each use site -- it's impossible. This turns out to be almost useless information for most of us, since the real problem is not
30.
▲
by
_getify
11y ago
Oh, I see. I just need to learn more. The problem is I just don't know JS (or other langs for that matter). http://YouDontKnowJS.com
More ›