Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Timon3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
451.
▲
by
Timon3
1y ago
It desugars similarly, but the Python version doesn't have a name. Any t-string is a t-string, there's no HTML t-string or SQL t-string or anything like that. It's just a t-string you can pass to a function: html_string
452.
▲
by
Timon3
1y ago
How much of that was due to promises of future performance that still haven't been fulfilled, and likely never will be?
453.
▲
by
Timon3
1y ago
First, let's not talk about dating and work in the same argument - they are fundamentally different in many important ways, and it's not conductive to the conversation. Second, at least call a spade a spade - according to you, whe
454.
▲
by
Timon3
1y ago
> But the economic disparity is the reason for the racial disparity, because otherwise we expect people of different races are equally intelligent, right? So the economic disparity is the real one and accounting for that inherently accou
455.
▲
by
Timon3
1y ago
> "Rich people have more money" isn't an interesting fact, it's just the definition of rich people. That's not what I said. This is bordering on bad faith, please don't do that. > The term "DEI"
456.
▲
by
Timon3
1y ago
> To begin with, they often are. A lot of school libraries actually have test prep materials available. They have some materials available, but often older or less specialized ones. That's my whole point: rich people have access t
457.
▲
by
Timon3
1y ago
> But then who are you arguing against? Is there someone strongly opposed to providing equal access to training materials, e.g. by making them available in school libraries? The materials aren't available. Why do you think that is?
458.
▲
by
Timon3
1y ago
> The goal is to measure merit. Objective metrics are the nearest thing we have to achieving that goal. If there is a better metric, you use that instead. But if the best metric we have isn't perfect, that's no argument for doi
459.
▲
by
Timon3
1y ago
> This is presented as an argument against objective metrics No, it's not. It's presented as an argument that measuring objective metrics doesn't mean you're measuring merit. > If you're poor but determined, y
460.
▲
by
Timon3
1y ago
> Of course, being good at passing tests doesn't mean one will be good at other things, in much the same way that one can be good at Leetcode problems but not good at building and maintaining large scale software systems in a large
461.
▲
by
Timon3
1y ago
Simple example: you want to develop a game and are looking for example implementations of specific mechanics or UI elements. You go through existing titles, and exclude those that use implementations that don't work well for colorblind
462.
▲
by
Timon3
1y ago
Weird, I don't need to do that. Also weird that Typescript has exactly the mechanism you're talking about. Why are you acting like it doesn't?
463.
▲
by
Timon3
1y ago
Almost every language has some way to do stupid things. Say you're working in C# - you can forcefully cast almost anything to almost anything else, just like in TS. So according to you, C# is just as bad as TS in this respect, right?
464.
▲
by
Timon3
1y ago
Many, if not most, of these occurrences can be made safe. It's very rare that I need `as`, and even more rare that I can't actually check the relevant properties at runtime to ensure the code path is valid. It's on you to ens
465.
▲
by
Timon3
1y ago
What's the big difference between `unsafe` and `as` regarding explicit labelling? Both are opt-in and explicit. As the user of a function, you don't see either from the outside. If you don't like `as`, it's fine to use a
466.
▲
by
Timon3
1y ago
I've long been wishing for the same! With service workers etc. this would be a perfect approach for many small utilities. I've started building things as single HTML files using vite-plugin-singlefile[0], but users either have to
467.
▲
by
Timon3
1y ago
On the other hand, disallowing bypassing it limits what you can do. There's always a ceiling to what the compiler can figure out, and some very complex types can't be analysed statically right now. By allowing bypassing the system
468.
▲
by
Timon3
2y ago
Seems like "Hans-guck-in-die-Luft" (seems to be "Johnny-Head-in-the-Air"?) is predestined for this.
469.
▲
by
Timon3
2y ago
I kind of doubt that everyone does this. How many, relatively speaking, do? You seem to be sure this is a very frequent occurrence.
470.
▲
by
Timon3
2y ago
Why make my initial comment? I keep seeing this assertion in discussions around Twitter, but I've never seen it substantiated beyond personal anecdotes, and it runs counter to my own observations. It's possible that I'm wrong
471.
▲
by
Timon3
2y ago
There's obviously one issue stopping them: there are far more people using public transportation than there are chairs in there, so it's once again physically impossible to accommodate everyones tastes. This is not the case with a
472.
▲
by
Timon3
2y ago
It's significant enough to directly prove that degraded vision leads to worse driving. This is very significant if we decide whether a driving system should only use vision, which can degrade.
473.
▲
by
Timon3
2y ago
I appreciate you asking, but I've had these discussions before, and they've never turned out to be fruitful. At this point I'm only interested in (and going to change my mind if presented with) independent studies, but since
474.
▲
by
Timon3
2y ago
My personal observation shows the opposite.
475.
▲
by
Timon3
2y ago
Note that this is a very one-sided presentation of the issue - most easily seen by the fact that the article doesn't actually link to any of the unshortened quotes they're pushing: https://www.politico.eu/article&#
476.
▲
by
Timon3
2y ago
Are there any independent studies that have confirmed this? I don't think such a study would still be possible given the API access limitations. We know that Twitter used to comply with far fewer government censorship requests in count
477.
▲
by
Timon3
2y ago
You said it yourself - you literally can't use public transport without either standing or sitting on their chairs. It's a physical limitation. But it's entirely possible to use public transport without having ads shoved in
478.
▲
by
Timon3
2y ago
You are aware that more accidents happen per mile at night? If people drove at night just fine, this wouldn't be the case.
479.
▲
by
Timon3
2y ago
YAML seems easier to read, but for me it's much harder to actually read properly since so many things are ambiguous. JSON is very explicit - you always know the data type you're looking at. YAML has a bunch of special cases that
480.
▲
by
Timon3
2y ago
While these edge cases are fairly rare in everyday JS codebases, Typescript adds some, e.g. inline type casts for function calls: const foo = someFn() (foo as Bar).doSomething()
More ›