Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
__ryan__
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
1.
▲
by
__ryan__
3y ago
Simple async JavaScript is still single threaded with an event loop. In other words, your async code is just a task deferred for later and only one task runs at a time, only moving onto another task when complete or explicitly yielding via
2.
▲
by
__ryan__
3y ago
What is it about it that makes you feel this way?
3.
▲
by
__ryan__
3y ago
It was 5 billion calls to 500 million numbers over a 3 month period.
4.
▲
by
__ryan__
3y ago
I report nearly all auto-generated unsolicited emails as spam. I also report nearly all follow ups to ignored cold emails. I will protect my inbox.
5.
▲
by
__ryan__
3y ago
Accessing a users data is not the only reason for hacking their account. Performing actions on behalf of a user is just as much of a threat. Edit: also, if an attacker dumps all the data today then loses access to the data tomorrow, having
6.
▲
by
__ryan__
3y ago
This isn’t the attack vector to be concerned about. More concerning is when there’s a data breach and an attacker gains access to hashed passwords. At that point, you attack the hash not the API. This comment is an example of why I wouldn’t
7.
▲
by
__ryan__
3y ago
You are correct that the period doesn’t count. Both email addresses belong to the same account. A possible explanation is that they have entered your email as a mistake.
8.
▲
by
__ryan__
3y ago
Not sure if this was their motivation, but hardware acceleration also enables increased opportunity for fingerprinting, to my knowledge.
9.
▲
by
__ryan__
3y ago
When does the standard library lie in this case?
10.
▲
by
__ryan__
3y ago
The lie is when your code uses* the “any” value where a concrete type is expected. I was misunderstanding your point with the deserialize. Edit: “using” -> “uses”
11.
▲
by
__ryan__
3y ago
Yes, “any” is a wart. And it’s a bad one. The correct type for values you don’t know the type of (like the response of an API call) is “unknown”. TypeScript does not provide the facilities you describe because there is not a one-size-fits-a
12.
▲
by
__ryan__
3y ago
I don’t think I’m following well enough to provide a meaningful response. This is not meant as an argument against what you’re saying, because I know you were just giving an example, but I found this and thought you may find it interesting:
13.
▲
by
__ryan__
3y ago
They’re suggesting outputting runtime type information by emitting different code based on the type of the value passed to their hypothetical “Type.keys()” function.
14.
▲
by
__ryan__
3y ago
You're forced to emulate exactness by always destructuring objects - not great. It’s almost like using objects as enumerable maps is an anti-pattern.
15.
▲
by
__ryan__
3y ago
Runtime type information is against the goals of TypeScript. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... Edit: Non-goals: … 5. Add or rely on run-time type information in programs,
16.
▲
by
__ryan__
3y ago
Also you should fill your database with houses - use AI or some sort of random data generator to generate them and just make sure there's a small but clear note on the listing saying this is AI data. It's not ideal but it i
17.
▲
by
__ryan__
3y ago
“Inception” is frequently misunderstood to mean entering other people’s dreams or having multiple layers of dreams. In the movie, they of course have the technology to do these things, but it’s usually used for “extraction”: stealing inform
18.
▲
by
__ryan__
3y ago
If I know that an entity goes to great lengths to conceal secrets, why would I ever believe I know of their most secret secret?
19.
▲
by
__ryan__
3y ago
Interestingly, “highlights” is not there.
20.
▲
by
__ryan__
3y ago
“More quinoa”
21.
▲
by
__ryan__
3y ago
A commuter typically takes a free public bus ride to work. The bus broke down this morning. The commuter had to go out of their way to take a different bus to get to work. Wouldn’t it have been better if they stayed and fixed the first bus?
22.
▲
by
__ryan__
4y ago
It’s exhausting because: _____ If you find yourself struggling to articulate it, seriously and honestly consider whether you’re simply choosing to be stressed about it. I’m speaking from experience here.
23.
▲
by
__ryan__
4y ago
Do you have any HN-related extensions installed? Edit: I truly did not believe you, but it appears to maybe be the “delay” feature [0]. Users with a delay set might show the asterisks until the delay passes. My apologies. 0: https:/&#
24.
▲
by
__ryan__
4y ago
I’m sure they could, I imagine they’re appealing to those who prefer JSX’s syntax.
25.
▲
by
__ryan__
4y ago
This is definitely solely an HN Replies thing.
26.
▲
by
__ryan__
4y ago
I’ll criticize it. I recognize this is a preview and I desperately hope this implementation isn’t kept around and treated as a quirk. This implementation is extremely unintuitive given their explanation of the expected behavior of CSS Nesti
27.
▲
by
__ryan__
4y ago
I’m specifically saying that prose/text and code are different contexts that don’t necessarily benefit from the same styles of writing. What I was saying is that just because spaces in prose naturally improves visibility does not _nece
28.
▲
by
__ryan__
4y ago
There’s plenty of things that are done in code that we don’t adopt in prose and vice versa. You could just as easily make the case for adopting underscores in place of spaces in prose to increase readability, but we haven’t done that. In co
29.
▲
by
__ryan__
4y ago
Why can't the style simply imply how much scope and importance an identifier has? Because lack of underscores doesn’t unanimously imply lack of importance or scope.
30.
▲
by
__ryan__
4y ago
An alternative is to make the pipe operator a simple function application and provide syntax for creating simple pipeline functions. For example: left |> right Would semantically translate to: right(left) And you could
More ›