Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bedobi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
271.
▲
by
bedobi
3y ago
WirelessGigabit gets it. That last fact is huge - functional error handling forces callers to handle (or pass on) exactly what can go wrong, no more, no less. (unlike exceptions)
272.
▲
by
bedobi
3y ago
This is the most common reply I see whenever anyone proposes a safer, better way of coding, and it's not a good one
273.
▲
by
bedobi
3y ago
whatever, the point is exception allows and encourages people to catch less and more than they should
274.
▲
by
bedobi
3y ago
You're describing the problems with exception, not using Either... When using Either, you never fold on those errors individually... Anyway, it's clear we're not going to agree, and you win, since so far the industry is still
275.
▲
by
bedobi
3y ago
> Checked exceptions however are as safe No. If I add a checked UserNotFound exception to a getUser db call, you can bet someone higher up the stack will do try catch Exception e, so now they're catching OutOfMemory and who knows wh
276.
▲
by
bedobi
3y ago
They are unsafe because they invariably result in people either ignoring them or catching more than they should, or less than they should, and the compiler happily lets you do that, EVEN when you're using checked exceptions.
277.
▲
by
bedobi
3y ago
The problem with that is you lose all ability to understand or control what a given endpoint will return in any given situation > I have no specific error handling for the given problem then pass it on and decide what to do with it at th
278.
▲
by
bedobi
3y 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
279.
▲
by
bedobi
3y ago
As a professional dev who has made a career out of working in oop languages and codebases, it took me far too long to realize that when it comes to oop, the emperor has no clothes. To this day, oop advocates can't even agree on what oo
280.
▲
by
bedobi
3y ago
What actually happens is orgs, be they for profit or governments or whatever, decide what they want to do, look for studies that justify it after the fact (in social science, you can find a study to support anything), and point to the studi
281.
▲
by
bedobi
3y ago
What privacy implications?
282.
▲
by
bedobi
3y ago
The problem is that anyone with a semblance of professional pride will find it mentally quite difficult to knowingly ship bad software. Like, sure, even if we make best efforts to catch both obvious and less obvious bugs, all software we sh
283.
▲
by
bedobi
3y ago
I've lived in multiple countries in Europe, and in Japan, and in Canada, Australia and the US so I feel compelled to reply :P > European mostly commute by car... In France ~4 times as many people commute by car Yeah, because there&#
284.
▲
by
bedobi
3y ago
Criticism against cars in urban areas have very little to do with ice vs electric. Cars simply aren't a good technology for moving lots of people in an urban environment.
285.
▲
by
bedobi
3y ago
You're not alone, others have already pointed out how confusing it is and I'm confused by it too. I think what they're trying to say is, if a commute by transit involves a transfer, people prefer and are more likely to make t
286.
▲
by
bedobi
3y ago
like the canned messages that are increasingly finding themselves into any app where you can send messages to people, be it email, whatsapp, tinder, whatever "Hey John! I see you like traveling, I love traveling too! What are some of t
287.
▲
by
bedobi
3y ago
Welcome to HackerNews! Threads about Medicine and Economics are some of the best - everyone here is apparently a Nobel grade expert. They don't know first thing about any of it but you see they know how to code so their overinflated eg
288.
▲
by
bedobi
3y ago
the spike on the m1 chart is not due to to inflation the conspiracy theorists and armchair economists have been screaming that all the "money printing" is going to cause hyperinflation any day now for decades. eventually yeah we g
289.
▲
by
bedobi
3y ago
> the money printing hypothesis champions have more convincing data they really don't though, that's the point. they've been screaming that all the "money printing" is going to cause hyperinflation any day now fo
290.
▲
by
bedobi
3y ago
how do you explain the fact that gazillions were printed for decades without much meaningful inflation? japan being the printiest of them all having had the least inflation of all crickets huh
291.
▲
by
bedobi
3y ago
> it's about It's about absolutely nothing at all. You can project whatever you want on pointless questions like that. Whatever you think you're measuring in a candidate by asking them, well, you're not, lol.
292.
▲
by
bedobi
3y ago
> Yucatán es una tierra la de menos tierra que yo he visto complete side note but is that what he would have said verbatim or a rendition in modern Spanish? super curious
293.
▲
by
bedobi
3y ago
To me the whole point of Kotlin is fixing all the things that are wrong with Java lol But idiomatic Kotlin is still too close to Java, they call it "direct programming style" and it's basically already obsolete Null safety is
294.
▲
by
bedobi
3y ago
I went to a university where Java was the main language for most of the basic programming courses I've been making a living coding in Java for 10+ years I'm a strong believer in types etc etc I still don't think Java is a gre
295.
▲
by
bedobi
3y ago
IMO either you're very very lucky or you're kind of blinkered and kidding yourself. Even at the ABC, hardly a workplace where you'd intuitively expect the kind of behavior I'm referring to, it's rampant https:/
296.
▲
by
bedobi
3y ago
IMO either you're very very lucky or you're kind of blinkered and kidding yourself. Even at the ABC, hardly a workplace where you'd intuitively expect the kind of behavior I'm referring to, it's rampant https:/
297.
▲
by
bedobi
3y ago
Of course not all Australians are like that. But I've lived in many different countries and in my experience nowhere even comes close to how ubiquitous, accepted, even encouraged all the above are in Australia, how large a share of the
298.
▲
by
bedobi
3y ago
I don't understand this. Kotlin has very deliberately made many choices that don't align with Java, that's the whole point. But more and more people are realizing that Kotlins error handling is a failed experiment and are a
299.
▲
by
bedobi
3y ago
Problem with Commonwealth countries are * while salaries are higher than eg most of Europe, they're still nowhere near the US - US salaries are often at least double (or more, a lot more) * their cost of living and taxes are high * the
300.
▲
by
bedobi
3y ago
For the love of all that is good in the world, this is a solved problem, I don't understand why languages like Go, Kotlin, Python etc etc etc continue to insist on not having sane Option, Either, Try etc types.
More ›