Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mstade
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
511.
▲
by
mstade
7y ago
This airblade hand drier design nonsense has to stop. I was at a hotel in Miami some time ago and they had these airblade style drivers integrated into the water tap, like bars sticking out on either side, right over the sink. I took one lo
512.
▲
by
mstade
7y ago
I think there's a grace period for you to request a refund[1] in the App Store, if you regret the purchase, even if you've downloaded and used the app. I've done this once or twice in the past, downloaded something, tried it,
513.
▲
by
mstade
7y ago
Add one datapoint to the discoverability argument made in the article: I have had 3D Touch enabled iphones for a long time now and had absolutely no idea that the feature you're describing existed. I just tried the new long tap version
514.
▲
by
mstade
7y ago
Would love to learn what concurrency issues you'd see with implicit await, that you presumably wouldn't see otherwise. You're probably right, I just can't think of any examples.
515.
▲
by
mstade
7y ago
Yeah but that changes the semantics of the function, whereas `async` arguably just changes the mechanics. The promise itself is not interesting, it's whatever value it (eventually) returns. My point is that a language that had implicit
516.
▲
by
mstade
7y ago
> I wouldn't describe it as magic though, since both the implementation and the impetus are easy to understand. That's fair, magic may have been a bit hyperbolic. > [...] just like if readFile() were changed from returning a
517.
▲
by
mstade
7y ago
Right, that it's hard is actually my point – it builds character. Even if you might be fortunate enough to not have to deal with the practicalities it's still difficult to acclimatize in a new culture, but it's an incredible
518.
▲
by
mstade
7y ago
To take it even further I'd suggest moving abroad for at least a year. It doesn't have to be far in terms of distance, but ideally it's reasonably far in terms of culture. For me personally this is what really broadened my ho
519.
▲
by
mstade
7y ago
You're right of course, and I have zero data to back this up other than anecdotes from my own experience, but still I posit the most common case is that the caller wants to await the return value, not run the function asynchronously. T
520.
▲
by
mstade
7y ago
But it can change under your feet – someone might change a function to be async, that used to be sync, and now your code is broken. The code does the same thing, it's just that it turned from returning a value to returning the promise
521.
▲
by
mstade
7y ago
Yup, thanks for adding that. It's a good process I think, though it is kind of a double edged sword. On the one hand it's nice because it means the standard isn't bloated with a bunch of stuff that no one implements, but on t
522.
▲
by
mstade
7y ago
The point isn't so much whether qux() is async or not, it's whether the caller wants it to execute before subsequent statements or not. In the current state of the world: const a = await qux() const b = qux() const c
523.
▲
by
mstade
7y ago
But try/catch makes swallowing errors explicit, you have to catch it to swallow it. With promises it's the opposite situation, errors will be swallowed unless you explicitly handle the rejection. At least the runtimes have grown
524.
▲
by
mstade
7y ago
No magic is rich — they swallow errors, for one. In any case, I don't think anything I said precludes the creation of promises outside of async functions, in fact quite the opposite. The difference is that the runtime would implicitly
525.
▲
by
mstade
7y ago
I think async/await probably makes more sense in a typed language, where a compiler can tell you when you're missing an await, or at least warn you about not dealing with potential side effects and error handling. For something li
526.
▲
by
mstade
7y ago
My condolences, it's always painful losing family. I too lost a cousin about six years ago due to heart failure, he had just about turned 21. I wish he'd had an Apple Watch (or similar device) at the time.
527.
▲
by
mstade
7y ago
I just got my series 5 Apple Watch a couple of days ago, and the ECG functionality is a big part of why. There's history of heart disease in my family, and I've been to the doctor a few times with symptoms but of course when I get
528.
▲
by
mstade
7y ago
It's a stage 3 proposal[1], which according to the TC39 process[2] means "the solution is complete and no further work is possible without implementation experience, significant usage and external feedback." In other words, i
529.
▲
by
mstade
7y ago
I get where you're coming from with this, but it's snarky and the parent comment does have a point: these charts aren't very good renderings. There are no legends, so taken out of context you'd have to just know what the
530.
▲
by
mstade
7y ago
I feel this is almost universal though, though I'll agree London seems especially bad. I generally go to finer hotels to do my business – not only are they usually cleaner and more hospitable, they also tend to come with a decent bar t
531.
▲
by
mstade
7y ago
That's interesting, my experience with GH support is the polar opposite – they've been stellar. Particularly their enterprise support went above and beyond when we had issues and never did I feel I got either a canned response or
532.
▲
by
mstade
7y ago
Looks real slick! I started playing around with Base (no affiliation, found it via HN a couple of weeks ago) and it's nice to have something easy to integrate with for common stuff like user management etc., but the offline dev story t
533.
▲
by
mstade
7y ago
I was looking for a way to do this, thanks! :o)
534.
▲
by
mstade
7y ago
Also, the distance between the northern and southern tips seems to be around the distance between Chicago and New Orleans, which is a road trip I did earlier this year. Even did the drive back, by way of the great smoky mountains and other
535.
▲
by
mstade
7y ago
As a Swede, it was mind blowing to see that California is nearly the same size area wise, but about four times larger in population. Plenty of room for us to grow still! Also interesting to see both Russia and USA fit inside of Africa, more
536.
▲
by
mstade
7y ago
Are you me? I started coding professionally in 2004 or 2005 (if memory serves) and a few years of tinkering before then. Your process describes mine almost to a T – building the mental model is the hard part, writing it down is mechanics mo
537.
▲
by
mstade
7y ago
I've been looking at buying a car recently, after having just rented cars and using carpools for the past decade or so. I've been looking at maybe getting a Volvo C70 – I like the idea of a hard top convertible, and also crucially
538.
▲
by
mstade
7y ago
Even in the middle of a line, not just at the start?
539.
▲
by
mstade
7y ago
For us Macheads it looks like there's a brew formula in the works: https://github.com/Homebrew/homebrew-core/pull/43459 I do a fair bit of viz work, this tool could come in handy for generating color sch
540.
▲
by
mstade
7y ago
Having written a large number of CLIs in the past, I've often come across this issue but never had a good solution. This is remarkably simple, elegant, and easily generalized into a CLI framework so it can be implemented with ease. Tha
More ›