Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
601.
▲
by
MrJohz
3y ago
With all due respect, I don't think that was the question! ;)
602.
▲
by
MrJohz
3y ago
Given your comment, I suspect there's not much correcting you, but for the sake of others who are interested in how treasure works in the UK: If you find something that might be treasure, you must report it to a coroner, who will first
603.
▲
by
MrJohz
3y ago
Fish shell would be the big counterexample right now. C(++?) to Rust in about a year, IIRC. I believe they were still pushing out updates to the original codebase during that time, although I assume they could have done more if they weren&#
604.
▲
by
MrJohz
3y ago
The really impressive thing here, to me, is how fast all the pages load. It might be a location thing (or good caching?) but it's noticeable even when I click away to sites like Wikipedia - which aren't generally slow! I know spee
605.
▲
by
MrJohz
3y ago
I think having a blameless culture is a separate issue. Let's say Bob gets a job in a Boeing factory and on every plane he works on, he deliberately hides a bunch of broken components in the system, thereby causing the planes to fall o
606.
▲
by
MrJohz
3y ago
I think this interface is less interesting than the semantics behind it, particularly when it comes to concurrency: what happens when you delete a folder, and then try and create a file in that folder at the same time? What happens when you
607.
▲
by
MrJohz
3y ago
And vice versa!
608.
▲
by
MrJohz
3y ago
I'm not entirely sure what this adds in this case, though. For example, in the code you've written, as far as I can tell there's no advantage compared to defining the function as a closure variable and using it directly, rath
609.
▲
by
MrJohz
3y ago
What platform was that that wasn't supported by Rollup (and Rust), but was supported by Esbuild (and Go)?
610.
▲
by
MrJohz
3y ago
For that you probably want unpkg, there might be some other similar alternatives that you can look for if you want. They're essentially mirrors of NPM but they automatically bundle packages up and serve it via http like a normal web JS
611.
▲
by
MrJohz
3y ago
A lot of people seem to approach Tailwind as a set of helper classes, but I think this is a misunderstanding of what Tailwind is doing. It's clearer to think about Tailwind as a DSL for writing CSS directly in your templates. If that s
612.
▲
by
MrJohz
3y ago
I was thinking of a different Pratchett joke: in Making Money, Moist is told to use the barber's knock: "shave and a haircut, no legs!" I'm rereading the Moist series again, and it is so incredibly thick with humour and
613.
▲
by
MrJohz
3y ago
Race is genetic in the same way ROYGBIV is about wavelengths: wavelengths cause the different colours, but there's no real reason to say "this is red, but this is orange" - the wavelengths don't care how we categorise th
614.
▲
by
MrJohz
3y ago
It is when (a) that data collection takes up a significant amount of bandwidth whenever I visit your website, and (b) I don't trust that that data collection really is as anonymous as the website says (or even thinks). The major player
615.
▲
by
MrJohz
3y ago
Definitely, Tailwind is just one approach to solving this problem, there are plenty of others. That said, one of the big advantages of Tailwind over other approaches, at least in my experience, is that it is far less bound to typical JS wor
616.
▲
by
MrJohz
3y ago
This is an important note. Also, even when we are able to find physical variations in brains, that doesn't necessarily lead to any useful conclusions about how the brain works. For example, male brains tend to be larger than female bra
617.
▲
by
MrJohz
3y ago
Component in this sense is typically just "a composable unit of UI". That often corresponds well with JS frameworks that want to be able to attach state and behaviour to those units, but you can have components without needing Jav
618.
▲
by
MrJohz
3y ago
Pydantic operates on Python dictionaries, so questions about duplicate keys will come down to whatever the Python behaviour is. (I.e. if you have a dictionary literal with duplicate keys, Python will select which key "wins" before
619.
▲
by
MrJohz
3y ago
It is completely possible to do that with Tailwind and components, I do it all the time. I'll create a Button component that takes parameters like `mode=primary`. The Button component contains a `button` element with some common classe
620.
▲
by
MrJohz
3y ago
That would be a structural type system with Hindley-Milner type inference. A good example of that might be OCaml - it's largely structurally typed, and the types can be completely inferred without type annotations. However, while Hindl
621.
▲
by
MrJohz
3y ago
The same is true of CSS classes, though - there you have the same choice between reuse and duplication. Do you have .button-primary, .button-secondary, etc, or do you use modifiers instead? The combinatorial complexity is inherent in the de
622.
▲
by
MrJohz
3y ago
That's roughly a structural type system, and it's part of what makes Typescript work well (although it has some disadvantages in that you can't easily describe the type "an object with only these attributes). You can s
623.
▲
by
MrJohz
3y ago
That was part of the wasted day I was talking about - trying to configure the system so that the rules would be more useful. I could disable the warnings per-line with comments - although this meant that my code was then filled with these l
624.
▲
by
MrJohz
3y ago
I don't think that analogy works well either, given that humans often put a lot of effort into caring for human babies in order that they are able to make it to adulthood (thus achieving "equality" as per your analogy). I thi
625.
▲
by
MrJohz
3y ago
Oof. First off, it feels weird for the developer of NueJS to be throwing shade at other tools for "marketing and misinformation", given the number of articles I've seen extolling the virtues of NueJS as the silver bullet to s
626.
▲
by
MrJohz
3y ago
My experience is pretty negative with all of them, I would be almost more tempted to ignore type checking in Python until it has drastically improved. In particular, if you're experienced with Typescript, you're probably going to
627.
▲
by
MrJohz
3y ago
It's also a poor analogy in that the average Dutch person is around 15% taller than the average person in Timor-Leste, which Google informs me has the smallest height difference. If the disparity in wealth were on the order of 15%, I d
628.
▲
by
MrJohz
3y ago
As I said, you don't need contexts for this, signals can be completely global, and in the example I gave the signals were global (you don't even really need the function). But the whole point is that "simple, easy to understa
629.
▲
by
MrJohz
3y ago
I also use native events in a number of places, and it can work well if you're very strict and judicious with your events, but the danger is always that one ends up with a global event bus with none of the observability or structure th
630.
▲
by
MrJohz
3y ago
I mean, we haven't eliminated child labour in most Western countries - there's still plenty of kids walking their neighbours dogs, babysitting, cleaning cars, delivering newspapers etc. I don't think "prevent all childre
More ›