Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bedobi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
bedobi
2y ago
VPN can be trivially defeated any number of ways. I was shocked when I first learned this ten fifteen years ago through a site that showed my internet provider and location despite being on a VPN. I forgot the name of the site. A huge probl
92.
▲
by
bedobi
2y ago
> China has amazing AI talent being developed What? I'm no expert but in basically every field and endeavor, it seems to me like all the PRC does is copy others, but have little to no legitimate homegrown innovation, and lots of &qu
93.
▲
by
bedobi
2y ago
Almost all actual democracies have secret ballot? There’s any number of ways to ensure secrecy is preserved at all times by default. (unlike in Sweden, where virtually no votes are secret because it requires hacking the process)
94.
▲
by
bedobi
2y ago
yeah... or you could just implement secret ballot like all sane countries have > blank ones if you want to write down the party of your choice this can and does risk resulting in the vote not being counted (due to alleged illegibility, a
95.
▲
by
bedobi
2y ago
Incorporation is already simple in the EU. Just pick the easiest jurisdiction, access the common market. Yes, local labor laws for employing people in different countries vary, but so does the states. The English language thing, meh. I used
96.
▲
by
bedobi
2y ago
That's a good thing, no? I don't understand why you'd ban/force a sale of tiktok but not CapCut and the others. And yes it's illiberal but I don't see why liberal democracies should tolerate totalitarian regime
97.
▲
by
bedobi
2y ago
can someone explain in plain English and with some easy to understand code examples?
98.
▲
by
bedobi
2y ago
This is the most common counter, but it doesn’t change the fact that the ballot is not secret. Again, you’re picking ballots in public and under the active scrutiny of other voters and election officials, and there is a strong and palpab
99.
▲
by
bedobi
2y ago
Sweden has never had secret ballot. The “Valmyndigheten” election authority themselves have criticized the lack of secrecy and general chaos with Sweden’s ballots. But what do they know? They only administer the elections. Swedes have a hig
100.
▲
by
bedobi
2y ago
Is your address? Your ssn? Your phone number? In Sweden, anyone can look it up. https://ratsit.se
101.
▲
by
bedobi
2y ago
Uh plenty of Sweden see that as a huge invasion of privacy Sweden also doesn’t have secret ballot In Sweden, anyone can look up your address, phone number, social security number, your car registration etc etc This is not cool or desirable
102.
▲
by
bedobi
2y ago
No function should accept error
103.
▲
by
bedobi
2y ago
Good poit re using MyError, that is indeed what I meant in the Either case Not sure what you mean by callback hell, I've never experienced that using Either. I just pass the Either from the db layer or whatever to the resource layer or
104.
▲
by
bedobi
2y ago
I'm talking about the fact that every function call in Kotlin can return an exception (and it will always be undeclared, because Kotlin doesn't have checked exceptions) this has nothing to do with sealed classes
105.
▲
by
bedobi
2y ago
I was referring to how Bloch and Goetz have tried to tell Java devs for decades to avoid null, mutation and just in general the traditional Java coding style, with little success. As for exceptions, it's hilarious that they and the Jav
106.
▲
by
bedobi
2y ago
Kotlins compiler built in null safety is objectively better than Java's lack of the same people disagree about that too, it's just that they're wrong
107.
▲
by
bedobi
2y ago
it's literally not, I'm sorry but folks who think this (and it's extremely common) simply haven't familiarized themselves with the differences
108.
▲
by
bedobi
2y ago
the difference is that in catch (Error e), you're actually catching the Error type, the superclass of exception in Either<Error, Foo>, Error is not that, it's usually a sealed class with the full range of things that can go
109.
▲
by
bedobi
2y ago
Normally I'd agree with you, but this really is not a matter of opinion, it's up there with eg compiler built in null safety is superior to everything being able to be null. There's plenty of people who think it's not, a
110.
▲
by
bedobi
2y ago
...which is even worse, because now the compiler is saying "when you call this, you will get this" and you have NO way of knowing that the call actually returns any number of exceptions, as a matter of course, without reading EVER
111.
▲
by
bedobi
2y ago
What a shallow critique. Object oriented error handling (which is what returning objects instead of exceptions is) isn’t used because it’s trendy, it’s used because it’s objectively (badumtish) better.
112.
▲
by
bedobi
2y ago
> it is a longstanding problem with Java it's, along with null pointers, probably the no 1 biggest foot gun in the language, responsible for countless bugs in pretty much every app ever written in the language, and it's treated
113.
▲
by
bedobi
2y ago
> Checked exceptions in java also have that property No they don't. How many times have you seen code like try { //whatever } catch (Exception e) { //now we're catching ALL exceptions, yay } or, wor
114.
▲
by
bedobi
2y ago
they're in no way even remotely similar Unchecked exception Foo foo = myClass.getFoo() // throws exception, but doesn't tell you, and nor does the compiler Checked exception // now we have to do
115.
▲
by
bedobi
2y ago
Exception based error handling is so bad and unsafe that adopting functional error handling with Either, Try etc as implemented by functional addon libraries for many languages, while not yet common, in time it will become the new default e
116.
▲
by
bedobi
2y ago
I don't mean to be uncharitable but no, that's not how it works. You pass the Either<Error, Foo> or Maybe/Option<Foo> around, usually to the edge of the system where you map, flatMap or fold it into something.
117.
▲
by
bedobi
2y ago
using RunCatching is inadvisable, it catches too much and can break lots of things in hard to detect ways https://github.com/sksamuel/tabby/blob/0fa37638712efd6b059f2... (though I recommend using the Arrow li
118.
▲
by
bedobi
2y ago
and yet without economists and economics, whose entire purpose for existing is studying all the ways in which markets DON'T work and how to fix their resulting problems (the opposite of "shilling for neoliberal free market trickle
119.
▲
by
bedobi
2y ago
https://impact.stanford.edu/article/how-does-applied-economi...
120.
▲
by
bedobi
2y ago
this isn't some libertarian nonsense, there's plenty serious people in medicine and economics who advocate organ markets (but not in the dystopian way you probably imagine) if you read up about it you might even learn something
More ›