Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
MrJohz
9mo ago
It is a lot more complex than moment, but only because there's a lot of inherent complexity to dates and times that moment just doesn't deal with. So you need to be explicit about whether you're dealing with dates, times, or
92.
▲
by
MrJohz
10mo ago
In theory yes, but in practice I don't think you could build something like Servo very easily like that. Servo is a browser, but it's also purposefully designed to be a browser-developer's toolkit. It is very modular, and l
93.
▲
by
MrJohz
10mo ago
But isn't the problem with X- headers that if they ever get standardised, they necessarily create this smuggling issue? Whereas if you start with an unprefixed header and standardise it under the same name, you avoid this issue. You co
94.
▲
by
MrJohz
10mo ago
I'm being snarky there, but I've genuinely never seen people make the arguments you're talking about in real life, and I run in some fairly lefty circles. Maybe online, but even then I rarely see people actually trying to arg
95.
▲
by
MrJohz
10mo ago
I've not noticed that change in my own conversations, where privilege maintains its pretty clear definition. Maybe you need to find better conversation partners? Or perhaps you're misunderstanding the criticisms that people have o
96.
▲
by
MrJohz
10mo ago
I would suggest most Americans and most people on HN have a tremendous amount of privilege, do they not?
97.
▲
by
MrJohz
10mo ago
The point is that you probably don't care that much how exactly the dependency is called, as long as it is called in such a way that it does the action you want and returns the results you're interested in. The test shouldn't
98.
▲
by
MrJohz
10mo ago
Isn't that exactly what privilege is though? A measure of a person's ability to be part of that self-selected pool, and to shield yourself from issues that affect other people?
99.
▲
by
MrJohz
10mo ago
Yeah, support was patchy until recently (and I think that behaviour might not even have been standardised?) so I think a lot of people have assumed that if you want that functionality you need to do something extra.
100.
▲
by
MrJohz
10mo ago
You don't need the hidden="until-found" for details/summary, because that has those semantics automatically, but you can use that for other elements that behave similarly (for example tabs, which can't quite correct
101.
▲
by
MrJohz
10mo ago
I would generally caution against doing toggles with CSS. While it can be done, it often has surprising effects, and can be difficult to make properly accessible (for example in the case of opening the navigation, I don't believe it&#x
102.
▲
by
MrJohz
10mo ago
Yeah, I thought those code samples would run immediately, in which case maybe the loading would be justified (although surely very easy to avoid). Instead, they're links to a different page that has the same code sample and a link to r
103.
▲
by
MrJohz
10mo ago
I think the question is whether Cyberpunk 2077 would ever have been made under the constraints that Blow and Muratori talk about. Like, Order of the Sinking Star looks pretty impressive, but from what I can tell it's basically just a
104.
▲
by
MrJohz
10mo ago
I think the key idea is that Rust gives you a lot of tools to encode semantics into your program. So you've got a much greater ability for the compiler to understand your semantics than in a language like JavaScript (say) where the co
105.
▲
by
MrJohz
10mo ago
In practice, though, writing stuff with `Arc` or `.clone()` or `Any` is not as easy as it would be in Python because you've got to write a bunch of extra boilerplate. It's much easier to have local `i64` values that you can pas
106.
▲
by
MrJohz
10mo ago
This is what's been explained to me before. The problem is that lawyers don't necessarily work on the basis of "if it seems reasonable that the user allowed this, then this is allowed". Their goal is to make a contract
107.
▲
by
MrJohz
10mo ago
In this context, the license is for using the Arduino Studio application. This is hosted by Arduino, and therefore needs to take user input, save it and work with it. As I understand it, this puts them in a complex situation: they don
108.
▲
by
MrJohz
10mo ago
The problem with the header file strategy is that TypeScript doesn't have total type inference. That approach works e.g. in OCaml, where you can (optionally) type the boundaries of the function and everything inside the function can a
109.
▲
by
MrJohz
10mo ago
This can be done, and is done in some projects, but the problem is that you need to manually maintain both sets of files, which can easily go out of sync if you're not careful. You also lose out on the ability to check your own code -
110.
▲
by
MrJohz
10mo ago
It's a bit odd that most of this article is various claims from one of Arduino's competitors being taken at face value, especially when the EFF spokesperson generally seems to think the new terms broadly make sense, albeit with so
111.
▲
by
MrJohz
10mo ago
In fairness, the default `display: table` setup is often a pain to work with, so I can understand why people would opt for flexbox instead. One better option, though, might be to use `table` elements under the hood, styled with `display: g
112.
▲
by
MrJohz
10mo ago
4-5 lines can be really effective. After all, if you're at a software conference, you're probably speaking to a bunch of programmers about programming, and code is your universal language. But already 7-10 lines is stretching it,
113.
▲
by
MrJohz
10mo ago
Generally, I'm fully on board with the "eliminate everything but the point" philosophy, but transitions can be really useful for displaying that the same element is present in multiple slides. I've had a few cases where
114.
▲
by
MrJohz
11mo ago
I quite like the technique of adding a kind of "microtoast" right next to the element that's just been clicked/updated. So you'd click a button, and then directly above or below the button (or even on the button, de
115.
▲
by
MrJohz
11mo ago
Everyone knows accessibility is just throwing aria tags at any element you see. The more aria tags there are, the more accessible it must be, right? /s
116.
▲
by
MrJohz
11mo ago
I think that statement is also a great concise explanation for why literate programming doesn't really work in practice. For something as complex as the Linux kernel, there is no single document that is going to explain the entire syst
117.
▲
by
MrJohz
11mo ago
Why is that a better descriptor? I don't understand this desire to demarcate between programming languages and whatever a "syntax" language is. All languages have syntax, even natural languages - it's one of the terms we
118.
▲
by
MrJohz
11mo ago
There are plenty of different survey techniques that will tell you how different routes are being used. You don't need tickets or tokens for that.
119.
▲
by
MrJohz
11mo ago
No, the point of the function is to convert the type. It doesn't need to check anything, it just forcibly converts any argument to DC. The compiler isn't complaining because the conversion isn't valid, it's complaining b
120.
▲
by
MrJohz
11mo ago
If you ignore the `satisfies` for a moment, the type of `person` is the literal object type that you've written (so in this case, { "person": string, isCool: true }). So coolPeopleOnly(person) works, regardless of whether `sa
More ›