_ar7
Joined 10 years ago
Joined 10 years ago
Besides, I feel like if I really want a strong type system https://reasonml.github.io/ might be the better choice over flow.
I think that for whomever is developing using electron in most cases the desktop versions of the apps wouldn't even exist if electron wasn't a thing. Also, just as a side note, electron apps are so _easy_ to develop. I don't know if any other platforms that target desktop are as simple, but I might just be out of the loop.
[...new Set([{x: 1}, {x: 1}])] [1, 1, 2, 3, 4].filter(
(obj => x => {
if (obj[x]) {
return false;
}
obj[x] = true;
return true;
})({}),
);
What's happening is that you're passing an object (hashmap / hashset) into a function that returns a filtering function, and that object is used inside the closure to track the dupes. It's still a pure function because even though you're mutating the passed in object, the filtering function is still deterministic and referentially transparent.* Why are you doing some unintuitive scroll-jacking?
* Why are you using React for literally a single scrollable page?
* Why are you putting the scroll position into the URL instead of somewhere like local storage? It's annoying that I can't even leave the page without pressing back multiple times.
ugh