Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wasted_intel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
wasted_intel
9y ago
Yep, it's surprising how hard it is to avoid. Compound that with sugar being in almost everything and it ends up being remarkably hard to find options that won't cause your blood sugar level to spike.
92.
▲
by
wasted_intel
9y ago
So, you're advocating removing the "make compiler happy" step and you think that will lead to greater discipline? If the tool automatically fixed it, you'd have a point, but most if not all of the static analysis too
93.
▲
by
wasted_intel
9y ago
This unfortunately doesn't work well in a "first past the post" voting system, as a more general party will typically overpower a split opposition.
94.
▲
by
wasted_intel
9y ago
Well said!
95.
▲
by
wasted_intel
9y ago
Those friends sound kind of terrible. Good friends can have rational, respectful discussions, even if they disagree.
96.
▲
by
wasted_intel
9y ago
This made me laugh. Thanks. :)
97.
▲
by
wasted_intel
9y ago
I didn't, actually! I don't know how else I'd express it, but I'm thinking of Rust, Haskell, etc's "step beyond" plain static typing with sum/ADTs, pattern matching, and exlusion of null. A seemingly
98.
▲
by
wasted_intel
9y ago
Right, I jumped ahead; multiple return values is the how Go returns error values, it's not error handling itself. I don't like exceptions much either, but sum types / ADTs are just so nice for this sort of thing.
99.
▲
by
wasted_intel
9y ago
Ah, so when I think of deterministic error handling, I think of compile-time enforcement, like that provided by a Result or Option type. Those can be ignored too, though, although the effort to do so is a little bit more explicit. :)
100.
▲
by
wasted_intel
9y ago
I've heard the same "it pays the bills" argument quite often for PHP. ;)
101.
▲
by
wasted_intel
9y ago
Two weeks is a tiny investment to properly evaluate a language. Haskell is tripping you up because you're likely new to proper FP and very strongly typed languages. Pushing past two weeks, even if you don't use it, will make you a
102.
▲
by
wasted_intel
9y ago
Go has functions with multiple return values. That's not at all the same.
103.
▲
by
wasted_intel
9y ago
People just end up inventing idioms to handle those, anyway. Go's nil-check error handling is a prime example. That's a beautifully solved problem with ADTs, but it's impossible without generic support, for starters. Runtime
104.
▲
by
wasted_intel
9y ago
The "easy to learn" argument is getting old. If the cognitive load never decreases, that's one thing, but initial ramp-up time shouldn't be a large determining factor. The MVC pattern, ADTs, functional programming, and s
105.
▲
by
wasted_intel
9y ago
Look at http://flatpak.org for precisely that.
106.
▲
by
wasted_intel
10y ago
this. There are so many costs to operating a service like this.
107.
▲
by
wasted_intel
10y ago
Wife and two kids, here. 30 minutes a day is what I strive for, with breaks on weekends. Totally feasible.
108.
▲
by
wasted_intel
10y ago
This.
109.
▲
by
wasted_intel
10y ago
Perfect handle for this response.
110.
▲
by
wasted_intel
10y ago
Completely agree on the time wasting bit. With kids, your free time is precious, so your tolerance for bullshit (which comes with most friends) wanes. With the exception of those rare, close friends to which you relate so well, it's
111.
▲
by
wasted_intel
10y ago
Your job sounds terrible.