Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maest
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
481.
▲
by
maest
5y ago
> To me, useState with a complex object is an antipattern. I'd much rather use multiple useState invocations. The issue with that is that sometimes you need to make transactional changes to your state (i.e. either update 3 variables
482.
▲
by
maest
5y ago
> Blaming this on shitty code by a third party is not acceptable. Sure, but I wasn't doing that.
483.
▲
by
maest
5y ago
The value of backwards compatibility is directly proportional to the ratio of "value of user time" / "value of dev time". Depending on whether you are the dev, the user or a third party, you may attach different val
484.
▲
by
maest
5y ago
Maybe I'm missing something, but it doesn't sound like it's _that_ specific. From the instructions, the conditions for the bug are: 1. Running Android 10 or higher 2. Has MS Teams installed 3. User is logged out of MS Teams 4
485.
▲
by
maest
5y ago
The issue there is that testing then executing can introduce racing issues in a multi threaded scenario (unless I misunderstand how `test` works)
486.
▲
by
maest
5y ago
https://wiki.installgentoo.com/index.php/Interjection Nicely done.
487.
▲
by
maest
5y ago
Any recommendations for an easy-to-use pg Python library? AFAICT psycopg2 requires users to do: import psycopg2 from psycopg2 import Error try: # Connect to an existing database connection = psycopg2.connect(u
488.
▲
by
maest
5y ago
> Did you notice the second version contains a bug? Whoops - in my defence, I haven't coded in C in a very long time. I'll leave it there, since I think it makes an (unwittingly) good point.
489.
▲
by
maest
5y ago
I don't find that to be a convincing argument, because it suggests we should write "foo applied to bar" instead of "foo(bar)" in your code. It's just notation, just because it's new, doesn't mean it&#
490.
▲
by
maest
5y ago
Part of the reason for that is because APL-family languages support this feature as a first class citizen and are designed with them in mind. Numpy has to, for better or worse, work within the confines of the Python grammar.
491.
▲
by
maest
5y ago
Neat trick. Didn't know about it. In pandas it would be item.foo = bar, _as long as_ bar isn't something you can iterate over.
492.
▲
by
maest
5y ago
> Why so much hate for loops? I don't think there's any _hate_ for loops, however, they are a very common pattern, so it's not unreasonable to argue it can be further refined/abstracted. Most people agree that "f
493.
▲
by
maest
5y ago
More practically, a List is too expressive, if all you need is a Set - which is true and generally good advice to use Set instead of List, if possible.
494.
▲
by
maest
5y ago
array.'foo = bar Is clearer. Or, at least, would be, if one were accustomed to the (fictitious) adverb '. There's no need for all the ceremony around specifying "for x in y: <some function describing what to
495.
▲
by
maest
5y ago
From: https://news.ycombinator.com/newsguidelines.html > Please don't comment on whether someone read an article. "Did you even read the article? It mentions that" can be shortened to "The article men
496.
▲
by
maest
5y ago
Indeed, doing the infinite sum is the "hard" way. The easier way is to notice that the trains will collide in 1h and the fly will be constantly be flying at a speed of 60mph for the entire time. So the fly will travel 60 miles in
497.
▲
by
maest
5y ago
A nuance here is that you are assuming the existence of a solution. It may be the case there are no values for A to J that can result in that equation. Iterating through all possibilities shows that the solution exists, the proof in the twe
498.
▲
by
maest
5y ago
What is ASL?
499.
▲
by
maest
5y ago
> It’s more than human experts apply a posteriori the tools they typically use to analyse chess games to games play by AlphaZero. I largely agree with this and I was about to make the same point before reading your comment. However, as G
500.
▲
by
maest
5y ago
What is a "normie"? Sounds like a vaguely inflammatory/derogatory term, but not 100% clear on what you mean by it.
501.
▲
by
maest
5y ago
Insurers can spread their risk along multiple insurance lines. If you're Airbnb, you're exposed to one type of risk: houses getting damaged. If you're Lloyds/GEICO, you're spread out over health risks, housing risk,
502.
▲
by
maest
5y ago
It makes sense for Match Group to specialise their offerings based on the types of people they think might want to date - e.g. quick flings vs more serious relationships.
503.
▲
by
maest
5y ago
> I've been on enumerable dates. That gave me a chuckle and reminded me of my friend's complaint that they were "continuously going on dates"
504.
▲
by
maest
5y ago
I guess pleasure/endorphins seem like a high priority.
505.
▲
by
maest
5y ago
It's being used in the singular sense.
506.
▲
by
maest
5y ago
> arbitrage bot from Bitstamp to MtGox once The issue with that arbitrage is that it was always one-sided. If you're arbing 2 equivalent markets (e.g. name trading on two different US exchanges), you'd expect to buy and sell on
507.
▲
by
maest
5y ago
I sometimes do what the gp said - let a gap grow in front of me if I'm in stop-and-drive traffic and get annoyed when someone selfishly rushes to fill the gap in front of me only to have to break 60 seconds later. On further reflection
508.
▲
by
maest
5y ago
Presumably, it's not just landlords that are shouldering the risk. Also, the US budget is huge and has a lot of buffer room. Worst case you're trading off investing in future development projects with keeping the market stable.
509.
▲
by
maest
5y ago
Cool ideas for videos! Although I do feel like you'd benefit from some sound - commentary or music
510.
▲
by
maest
5y ago
I can't remember where, but I've heard the mathematical research process being described as (paraphrasing): "Once in a while we get a giant that makes huge strides in many fields. What is left for the rest of us is to walk in
More ›