Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mcaruso
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
mcaruso
1y ago
People use method chaining all the time and don't have any issue with it? It's equivalent to something like: $result = $arr ->column('values') ->merge() ->reduce(fn($carry, $item) =
2.
▲
by
mcaruso
2y ago
> Where's our OOTB carousel, date picker, rich drop-down with icon/subtext, form elements supporting AJAX state, modal windows? etc etc. You might want to take a look at what browsers have been working on lately, because a lot
3.
▲
by
mcaruso
3y ago
Of course HN works fine, if it didn't work fine it'd be fixed by now. "Working fine" is an extremely low bar for any site. As a developer you will still want to avoid quirks mode because it just makes your life harder fo
4.
▲
by
mcaruso
4y ago
From the article: > But we've had a pretty good definition of abstraction since 1977, originally in the context of program analysis, and — I claim — it actually translates quite well into a precise definition of “abstraction” in eng
5.
▲
by
mcaruso
5y ago
Node supports ES Modules (the import statements you mention) natively now: https://nodejs.org/api/esm.html
6.
▲
by
mcaruso
5y ago
=> also comes straight from math learned in school. There it's written → (for function signatures), and (the more rare) ↦ for function definitions.
7.
▲
by
mcaruso
5y ago
0.x releases are also major versions according to semver, just pre-stable. So many people were referring to React 0.x releases as "React x" that they just bumped it straight to version x.
8.
▲
by
mcaruso
5y ago
Lambdas are constrained by their type. If you see a lambda being passed to, let's say `map`, then (assuming you know the type of `map`) you know the type of the passed lambda. Of course this assumes the lambda is pure, but in the kind
9.
▲
by
mcaruso
5y ago
Was just pointing out a nice (probably unintentional) pun
10.
▲
by
mcaruso
5y ago
> (all _effect_ively research languages) :)
11.
▲
by
mcaruso
6y ago
The title probably changed. The URL slug still has "comes-to-an-end".
12.
▲
by
mcaruso
6y ago
Let's take a look at how we might write a function like `map` the (pure) functional way in a language like JS: const head = ([x, ...xs]) => x; const tail = ([x, ...xs]) => xs; const map = (list, fn) => {
13.
▲
by
mcaruso
6y ago
I'm reminded of this classic sketch: https://www.youtube.com/watch?v=3m5qxZm_JqM
14.
▲
by
mcaruso
6y ago
The ASCII art text? There's a link in the top comment there: http://www.patorjk.com/software/taag/#p=display&f=ANSI%20Sha...
15.
▲
by
mcaruso
6y ago
> Is a gymnasium a school in Europe? It's an exercise facility in the USA. https://en.wikipedia.org/wiki/Gymnasium_(school) > I've gone through high school and taken CS (and a bit of discrete math and l
16.
▲
by
mcaruso
7y ago
I'm a JS dev that learned Haskell over the past few years. Anything in particular you're curious about? I guess if I were to mention one thing I really miss in Haskell it's having easy, generic dictionary types a la JSON. Giv
17.
▲
by
mcaruso
7y ago
"Demanding" anything from a superior is a bit of a no-no in Japan, even if it's something as simple as a phone call.
18.
▲
by
mcaruso
7y ago
Not a physicist by any means, but from the article it talks about gravity in the context of the graviton (as one plausible solution to the problem mentioned). Which is still hypothetical, so it's not like they've proven gravity fr
19.
▲
by
mcaruso
7y ago
It's a React component for data tables. So it implements (re)loading data, sorting, pivoting, and the other stuff mentioned in this feature list: https://github.com/tannerlinsley/react-table#features So the compar
20.
▲
by
mcaruso
7y ago
That moniker should probably go to E4X: https://developer.mozilla.org/en-US/docs/Archive/Web/E4X_tut...
21.
▲
by
mcaruso
7y ago
`const` variables are actually inferred without widening. So in your example `dir` would be inferred as `"up"`, not `string`. If you use `let` (or `var`) however that would be true.
22.
▲
by
mcaruso
7y ago
> The way to grow from this book is to deeply learn what they did and how they did it, and then try to rewrite page 13 in a number of ways. How nicely can this be written in “a lisp” using recursion. How nicely can this be written withou
23.
▲
by
mcaruso
7y ago
I don't think you know how the IPCC works. They're not some vegan activist group. It's an internationally appointed group that studies scientific consensus to inform policymaking. From the report ( https://www.ipcc.
24.
▲
by
mcaruso
7y ago
> The Netherlands has strict gun control and still has mass shootings. I can think of two in my lifetime. The one you mentioned in Utrecht, and the Alphen aan den Rijn one in 2011. Even accounting for population size it's nowhere ne
25.
▲
by
mcaruso
7y ago
Agreed! If a conscious decision is being made to value the ability for people to own guns in expense of frequent killings then go for it. But it's usually phrased as "there's nothing we can do" and gun control wouldn
26.
▲
by
mcaruso
7y ago
> other countries don't have 2nd amendment in constitution Changes to the constitution can and do happen. And it's kind of beside the point anyway because a degree of gun control already exists in the US without being in confli
27.
▲
by
mcaruso
7y ago
I feel like you're taking the wrong conclusion here. Perhaps modern society and guns being widely accessible don't mix. Other countries took measures when the problem became apparent, the US didn't.
28.
▲
by
mcaruso
7y ago
I don't really see why the author needs to justify it. New languages with new syntax come out all the time, some become popular some do not. Sometimes a new language comes out with a different syntax and becomes popular, creating a n
29.
▲
by
mcaruso
7y ago
Seems like you're criticizing it just because it's different from what you're used to.
30.
▲
by
mcaruso
7y ago
> They keep whining that Roald Dahl is miserable and all despite inventing Node I think you mean Ryan Dahl haha
More ›