Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scottmf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
151.
▲
by
scottmf
8y ago
Slightly off topic but this code in example #5: get() { return new Promise((resolve, reject) => { fetch(`${baseAPI}/heroes`) .then(response => response.json()) .then(json => resolve(json))
152.
▲
by
scottmf
8y ago
The trouble with leftPad was a flaw of NPM which could have happened with any package.
153.
▲
by
scottmf
8y ago
Why waste time rewriting something like leftPad?
154.
▲
by
scottmf
9y ago
That isn’t “intentionally slowing phones with new firmware releases”. That’s the phone slowing the CPU when the battery gets old to prevent unexpected shutdowns. If you think this is “planned obselence” you misunderstand the issue. iOS 11.3
155.
▲
by
scottmf
9y ago
Battery replacements are $29 at Apple stores
156.
▲
by
scottmf
9y ago
Ah but isn’t it true that iPhones have no right click?
157.
▲
by
scottmf
9y ago
Hey if any GrayKay employees wanna split the bounty let me know...
158.
▲
by
scottmf
9y ago
What was his position at Apple?
159.
▲
by
scottmf
9y ago
Now that’s how you get investors
160.
▲
by
scottmf
9y ago
I wouldn’t be surprised if you were right.
161.
▲
by
scottmf
9y ago
Buzzfeed isn’t comparable to Breitbart at all. Buzzfeed does real journalism these days.
162.
▲
by
scottmf
9y ago
Most of the ones shown in this article aren’t really the best examples of Dark Patterns IMO. This trick Facebook Messenger uses to get your phone contacts is a good example of how bad these things really are: https://medium.com&#
163.
▲
by
scottmf
9y ago
Do you have any data to show that this is a real concern with JS?
164.
▲
by
scottmf
9y ago
I use Safari on desktop because it syncs that stuff so well with iOS. (And it’s much better for battery life than Chrome)
165.
▲
by
scottmf
9y ago
What do you think it needs?
166.
▲
by
scottmf
9y ago
https://github.com/tc39/proposal-bigint/blob/master/README.m...
167.
▲
by
scottmf
9y ago
What’s wrong with that exactly?
168.
▲
by
scottmf
9y ago
The standard library is improving a lot.
169.
▲
by
scottmf
9y ago
Pretty common on HN lately.
170.
▲
by
scottmf
9y ago
That’s somehow much creepier than “shadow profiles”.
171.
▲
by
scottmf
9y ago
This looks great. Can’t wait to try it out.
172.
▲
by
scottmf
9y ago
The average age of congress is about 60.
173.
▲
by
scottmf
9y ago
I’ve seen a few articles about this (one called it “mind reading”) and I still don’t understand how it works. What exactly is “vocalizing internally”?
174.
▲
by
scottmf
9y ago
Yes, it’s inspired by the pipe operator in languages like F#.
175.
▲
by
scottmf
9y ago
The point is it looks a lot better than several nested function calls, especially when the order of the calls are important. In JS you can do stuff like this: const rules = parsedTags .split(';') .map(item => item
176.
▲
by
scottmf
9y ago
Besides performance concerns, if you did it on each page load it would miss any content added to the page after the initial load. It would be useless for SPAs. The best way I can think to implement it would be listening for a copy event an
177.
▲
by
scottmf
9y ago
But such a simple system would make it easy for one user to frame another. You would need a way of signing the username. Perhaps you could hash the user ID with a secret salt, and hide that in the text along with the username.
178.
▲
by
scottmf
9y ago
Looks like there’s a recent proposal for them: https://github.com/TheNavigateur/proposal-pipeline-operator-...
179.
▲
by
scottmf
9y ago
This is one of my favorite proposals, along with the pipe operator and partial application proposals: const add = (x, y) => x + y; const addTwo = add(2, ?); let x = addTwo(5); // 7 x = 5 |> addTwo |> add(?, 1
180.
▲
by
scottmf
9y ago
Alt-tab behavior is more of a preference thing. >It's basically shitty linux with outlook. Linux is shitty Linux. Except on the server. (IMO, of course).
More ›