Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kevinmgranger
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
kevinmgranger
4y ago
"Recently, I was asked if I was going to fire an employee who made a mistake that cost the company $600,000. No, I replied, I just spent $600,000 training him. Why would I want somebody to hire his experience?" It's more like
62.
▲
by
kevinmgranger
4y ago
Is there a way to have that integrated with a document organizer like this? I'm unfamiliar with the feature.
63.
▲
by
kevinmgranger
4y ago
Finally, the "you wouldn't download a car" joke has become a reality.
64.
▲
by
kevinmgranger
4y ago
For me, Evernote’s killer feature is automatic OCR. (Subs that I can just upload a doc through my phone’s camera). It looks like this doesn’t have that, unfortunately.
65.
▲
by
kevinmgranger
4y ago
The idea that the post is an advertisement is ludicrous, and they are being downvoted accordingly.
66.
▲
by
kevinmgranger
4y ago
> there was still time in my subscription
67.
▲
by
kevinmgranger
4y ago
A human being's weight hitting the ground at 30 mph (already a generously high figure) is far less serious than a multi-ton vehicle hitting them at 30 mph (already a generously low figure). So, yes, physics.
68.
▲
by
kevinmgranger
4y ago
People realized "considered harmful" was too hyperbolic, so they moved to "smell". But then it gets treated the same way, because who wants to be smelly?
69.
▲
by
kevinmgranger
4y ago
I'm really really excited for and curious about the effect system, but isn't the effect system considered unstable except for any multicore usage?
70.
▲
by
kevinmgranger
4y ago
I'm being flippant, because shell scripts are so inherently error prone they're to be avoided for critical stuff like this. If you _absolutely_ must use a shell script: 0. Use shellcheck, which will warn you about many of the belo
71.
▲
by
kevinmgranger
4y ago
Are PowerShell and Windows Terminal the same team?
72.
▲
by
kevinmgranger
4y ago
I've been meaning to try something similar for Kubernetes/OpenShift-- you can set up authentication (technically an identity provider) through a configurable HTTP header. My idea was having the reverse proxy only listen on the tai
73.
▲
by
kevinmgranger
4y ago
Don't use a shell script.
74.
▲
by
kevinmgranger
4y ago
Isn't that how pendulums swing?
75.
▲
by
kevinmgranger
4y ago
wasm supports any language that compiles to wasm (or has its interpreter compiled to wasm). It's a bit like asking if "x86 assembly supports other languages"-- it supports whatever targets it!
76.
▲
by
kevinmgranger
4y ago
> it seems that it should be expected that an a.Change func will mutate A But you can make functions that have copied receivers: type Foo struct { bar int } func (f Foo) mutate() { f.bar = 2 } func
77.
▲
by
kevinmgranger
4y ago
I agree that this article is low-quality and self-contradictory, and flagged it too. However, > It reads as an asshole college sophomore who rips on plebs who dare to have different perspectives than them This is going a bit too far, don
78.
▲
by
kevinmgranger
4y ago
I'm sure the commenter is well aware of that, they're replying to a low-quality, vague comment with a sardonic version of the Socratic method.
79.
▲
by
kevinmgranger
4y ago
The problem is that you can still mutate a copy. But does the person mutating the copy realize it's a copy, and that it won't propagate? It's also hard to keep a mental model of which builtin primitives are values (copy seman
80.
▲
by
kevinmgranger
4y ago
You don't need a subscription, but you do need an account.
81.
▲
by
kevinmgranger
4y ago
It is _entirely_ unmanageable for personal usage. The official documentation that the OP found and calls some of the most accessible doesn't teach you how to write a custom policy.
82.
▲
by
kevinmgranger
5y ago
I'm lucky enough to work for an employer that defaults to open. The project I'm working on right now is open source.
83.
▲
by
kevinmgranger
5y ago
Folks are saying that sum types might eventually come to go after some experimenting with generics. It'll be interesting to see where it goes.
84.
▲
by
kevinmgranger
5y ago
Definitely. But Go's boilerplate for error handling is an overcorrection from the implicit propogation. As folks have mentioned, Rust's `?` or Swift's `try` strike a nice middle ground.
85.
▲
by
kevinmgranger
5y ago
That's slightly different, though. The first is "when this is true, earlier in the function, queue up running something at the end of the function." This is "at the end of the function, if this is true, do something.&quo
86.
▲
by
kevinmgranger
5y ago
It enables one to conditionally set up cleanup within the function. If it was block scoped, you couldn't do something like `if shouldDoSideEffect { defer something() }` If it was scope-based, there would be just as many people complain
87.
▲
by
kevinmgranger
5y ago
Right, so the concept in Go is misnamed. It's not Errors are Values, it's Errors Have Normal Control Flow. Returning errors makes many things more manageable, definitely. But where they really shine, like in the mapping example, i
88.
▲
by
kevinmgranger
5y ago
These should probably be merged: https://news.ycombinator.com/item?id=30688208 https://news.ycombinator.com/item?id=30689024
89.
▲
by
kevinmgranger
5y ago
From some of the industries that would be most impacted by it, and those impacts being ones that would cascade to the people who fly or consume broadcasted media? Yeah, they should be talking to them.
90.
▲
by
kevinmgranger
5y ago
In case anyone is interested, here are my technical critiques of Go: - Boilerplate increases the surface area that a bug can hide in. The fact that most of the boilerplate is around error handling is especially worrying. Yes, the flexibilit
More ›