Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yen223
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
631.
▲
by
yen223
3y ago
(Assuming ADT here refers to Algebraic Data Types, as opposed to abstract data types) Swift, Kotlin, Scala and Typescript all support forms of ADTs, just with different names. - Swift calls them "enums" (like Rust) - Kotlin and Sc
632.
▲
by
yen223
3y ago
It does double your API surface area, so that's the tradeoff you'll have to consider. It can be the correct decision in a lot of cases.
633.
▲
by
yen223
3y ago
Flow regularly crashed with bizarre segfaults errors, the last time I used it.
634.
▲
by
yen223
3y ago
Thank you for this. Reading these comments I thought I stepped into some alternate timeline when we don't already have widespread ML all over the place. Like, nobody does rules-based image recognition for a decade now already!
635.
▲
by
yen223
3y ago
Static types are really good for describing invariants, I definitely agree. But it does also describe a lot of implicit invariants. The LoginUser you've defined has the implicit invariant that a LoginUser only has 3 fields. It is very
636.
▲
by
yen223
3y ago
I don't have a very strong opinion about that change specifically. I think they could have kept their cake and ate it too by solving the schema evolvability some other way, but I also suspect those other ways will come with tradeoffs t
637.
▲
by
yen223
3y ago
The problem I think is that when you define an invariant, you are also defining an infinite number of "implicit" invariants. And it's hard to know a priori which of those implicit invariants is not an actual invariant over ti
638.
▲
by
yen223
3y ago
Are they finally giving the iPad a calculator app?
639.
▲
by
yen223
3y ago
90% of it are rose tinted glasses. We humans are very good at forgetting the inconveniences of the past when we no longer experience them.
640.
▲
by
yen223
3y ago
100% successful execution is possible, assuming 1. You can guarantee no bugs in your system 2. You can guarantee no bugs in AWS's systems 3. You can guarantee there's no nuclear attacks on us-east-1 within the next year or so
641.
▲
by
yen223
3y ago
> By contrast, motor vehicle accidents and liver disease each account for less than 2 percent of 2006 mortality, and so their contributions to the total recession-induced mortality decline are only 6.9 percent and 2.6 percent, respective
642.
▲
by
yen223
3y ago
How likely is it that smokers will smoke so much more during a recession, vs during a non-recession, that the effect shows up in nationwide mortality rates?
643.
▲
by
yen223
3y ago
You know this wasn't the conclusion the article drew, right?
644.
▲
by
yen223
3y ago
Are there any good Blazor websites out there? I'm not sure if I've ever encountered one in the wild, but to be fair I wasn't really looking.
645.
▲
by
yen223
3y ago
I've gotten addicted to cryptic crosswords recently. I've been working through the Guardian's backlog, because it doesn't need a subscription.
646.
▲
by
yen223
3y ago
I will believe this when the Java community agrees on an autoformatter.
647.
▲
by
yen223
3y ago
> I guess you were talking about `functools.partial`, which is basically the same as currying and also only works on the last arguments I was talking about `functools.partial` yes, but it can work on any arguments in order, using keyword
648.
▲
by
yen223
3y ago
If you're using macOS's Mail app: - cmd+A selects all mail - cmd+ctrl+A archives all selected mail. I do this practically every day, after reading any mail that is important. This keeps me at inbox zero all the time.
649.
▲
by
yen223
3y ago
That looks really cool, thanks for sharing
650.
▲
by
yen223
3y ago
I much prefer partial application. It just makes more intuitive sense - you take a function with many arguments, "fix" some of those arguments, and get a new function out. No need to mess with argument ordering, or all that. It&#x
651.
▲
by
yen223
3y ago
If I had to choose, I'd probably give up Netflix before I give up Google, even if Google decided to fuck it and charge everyone $10/month for searches. Search is just that valuable to me.
652.
▲
by
yen223
3y ago
Even in languages with `private` you'd better label it correctly, otherwise some programmer will inevitably make it `public`...
653.
▲
by
yen223
3y ago
For the same reason why someone might have a toaster just for bread. In Asian households it's common for us to be eating rice everyday, with side dishes. So it's also really common for us to have rice cookers for convenience.
654.
▲
by
yen223
3y ago
This is the "put in weeks of work to save minutes of your time" kind of automation that I absolutely love and wish I did more of
655.
▲
by
yen223
3y ago
It's not immature, it's pragmatic. You do have to weigh the benefits of being able to use non-standard tools vs the cost of having not being able to reuse the same tooling, linters, compilers, and what-not for all projects. When y
656.
▲
by
yen223
3y ago
I read it on mobile just fine.
657.
▲
by
yen223
3y ago
I often wished we had more houses. I rarely wished we had more software
658.
▲
by
yen223
3y ago
For those who may not know, `cd -` brings you to the previous directory.
659.
▲
by
yen223
3y ago
"Expand selection" in Intellij and similar, option + up by default. This shortcut is, no joke, a very big part of why I'm still paying for Jetbrains tools.
660.
▲
by
yen223
3y ago
If you believe FB is in the business of selling user data, then giving out user data for free is not an optimal move.
More ›