Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
72 ms
·
871.
▲
by
MrJohz
4y ago
Matt Parker did a good video with lots of visuals to explain why Benford's Law works in general, but why it cannot always be simply applied to election results. https://youtu.be/etx0k1nLn78
872.
▲
by
MrJohz
4y ago
I imagine it's similar to the logic behind locks on houses. Thieves still exist, but by making it harder for them, you reduce the chances of them targeting your house. You won't ever reduce that chance to zero, but you can reduce
873.
▲
by
MrJohz
4y ago
That's an interesting review of the technology, because to me what you've described raises a lot of red flags. I've read - and written! - plenty of code where the author clearly hasn't taken the time to learn the tools t
874.
▲
by
MrJohz
4y ago
I don't entirely understand your point, I'm sorry. Could you explain it again? One would generally expect that both paths produce different outcomes, because this is the purpose of media queries, to produce different appearances f
875.
▲
by
MrJohz
4y ago
That's actually a really good idea. I just looked at how a few other sites handle this, and that seems like a common take. I have updated the code!
876.
▲
by
MrJohz
4y ago
I actually ran into a case for using UA strings yesterday, if you know of a better solution let me know! I have a canvas element where the user needs to be able to both scroll and zoom with the mouse wheel. Generally, zooming involves scrol
877.
▲
by
MrJohz
4y ago
It does contain both modes. But only one of those declarations will be used, and that declaration can do things like background images, which is behaviour the server can observe. You could potentially try and "execute" all possibl
878.
▲
by
MrJohz
4y ago
The browser does follow your settings, and it doesn't necessarily directly tell the website what's going on. The problem is that the website can observe a lot of things indirectly. For example, with the dark mode/light mode &
879.
▲
by
MrJohz
4y ago
It can be kind of irrational. If toothpaste waste is important to you, there are better ways to avoid it. My local no-packaging store, for example, sells toothpaste tablets, completely without plastic or packaging of any kind (and I'm
880.
▲
by
MrJohz
4y ago
Even many operations performed on a linked list will not be tail recursive if you do them naively. For example, a naive sum function might look like: const sum = (node: Node): number => { if (!node.tail) return node.value;
881.
▲
by
MrJohz
4y ago
I'm not entirely sure that's the case. I agree, Javascript is very popular as a first language and an introduction to the world of programming, especially with all of the frontend bootcamp-type courses. But in most of these course
882.
▲
by
MrJohz
4y ago
Honestly, the impression I get is that it seemed like a cool thing to have, rather than something that came out of genuine need. I very rarely see recursive functions in the wild, and while I quite like them and probably use them more often
883.
▲
by
MrJohz
4y ago
I'm also not the person you were replying to, but I wanted to add: if you like Catan, it's definitely worth having a look at the modern board game ecosystem, because Catan kick-started a huge revolution in board game design that i
884.
▲
by
MrJohz
4y ago
Note that there is a distinction to be made between linguistic determination (language controls how one thinks) and linguistics relativity (language affects how one thinks). The former idea is largely discredited, the latter accepted with l
885.
▲
by
MrJohz
4y ago
In comparison to D&D 5e, unfortunately not so much, but I think that's true of most games, outside perhaps Pathfinder and some regional favourites. I've mainly had success using it for occasional one shots between other games
886.
▲
by
MrJohz
4y ago
Fwiw, that stuff is definitely still out there, you've just got to find it. A lot of stuff in the OSR scene tends to go in weird directions, of particular note is probably Troika!, a fairly simple game set in a sort of dumping-ground u
887.
▲
by
MrJohz
4y ago
There's an assumption there that a neutral AI can exist, but I think a lot of people would challenge that central assumption. No set of training data can be truly neutral or unbiased. It may be well balanced between certain groups, but
888.
▲
by
MrJohz
4y ago
And, thankfully, a democracy and rigorous checks and balances to boot - features that seem consistently lacking in most corporations...
889.
▲
by
MrJohz
4y ago
I remember reading once (but now I can't find the details, this may be apocryphal): a few browsers did try this for a while, but it turned out be a disaster for certain sites. If, for example, you have a page loaded with a list of item
890.
▲
by
MrJohz
4y ago
> making adjustments if the sample population differs from the overall population. This feels like a step you can't just handwave away as step three of three. To quote the meme, it's a bit of a "draw the rest of the fuckin
891.
▲
by
MrJohz
4y ago
I was just talking to a friend about moon phases the other day, saying that I'd never really understood why it does what it does, only that vaguely things rotate around each other and this waves hands does things. He explained it lik
892.
▲
by
MrJohz
4y ago
This is all true in this instance, but it doesn't have to be at all. You could write something like the following: let name = "Arthur".to_owned(); //... Do something with &Arthur let name = "
893.
▲
by
MrJohz
4y ago
> In reality it means the estimates can't be used for anything because they are always unreliable. This seems like throwing out the baby with the bathwater. An unknown thing can still have bounds on it: I don't know exactly how
894.
▲
by
MrJohz
4y ago
The trick with French is not to think about it in terms of individual letters, but rather letter clusters, and then it becomes fairly regular. The individual letters can do wild things, but a given combination of letters generally has fairl
895.
▲
by
MrJohz
4y ago
At least on my phone, WhatsApp essentially just uses my phone contacts, I wasn't aware that it had any system of contacts of its own. As to storing encrypted data on WhatsApp servers, I assume that's an expense that's not nee
896.
▲
by
MrJohz
4y ago
You don't use backups because of privacy reasons, but the reason Telegram can save your data is because it's using backups. I'm also not the biggest fan of WhatsApp, but a lot of its quirks and oddities do come down to one bi
897.
▲
by
MrJohz
4y ago
I mean, the notepad method still works, and there's nothing stopping you from going down that route. Hell, you can probably make it easier: open up a browser on any page, open up the inspector console, and you've got a REPL and se
898.
▲
by
MrJohz
4y ago
C# doesn't have algebraic data types and pattern matching though, right? I'm not the same person, but at least for me that's one of the big advantages of Rust, and it's one of those features that outside of Rust you only
899.
▲
by
MrJohz
4y ago
That's definitely a solution, but it comes with its own problems, in particular that you add a significant dependency on what is essentially a middleman organisation trying to manage all possible dependencies. This doesn't scale v
900.
▲
by
MrJohz
4y ago
I mean, a project needs regular care and maintenance, however you organise it. If you're never scheduling time to maintain your dependencies, you're going to be in trouble either way. But at least if you lock your dependencies, yo
More ›