Recent submissions

Comment · 2 years ago
Golang is sometimes considered a simple language, but it's not really beginner-proof like Java was designed to be. It's a good idea to spend time learning it thoroughly.
Comment · 2 years ago
Generating the HTML in a container seems like a better solution than ditching the generator altogether.
Comment · 2 years ago
True, but both of these are for relatively slow operations, where the performance of the error checking is relatively insignificant.
Comment · 2 years ago
> Here's one of them, which follows a common recommendation in the Go community to use a sentinel error to represent the "value not found" condition.

Is this really a common recommendation in the Go community? Seems like returning `bool` to indicate if the value was found is somewhat of a no-brainer, since it follows the familiar approach used for map lookups and type assertions.

Comment · 2 years ago
Do OpenAI employees actually get equity in the company (e.g. options or RSUs)? I was under the impression that the company awards "profit units" of some kind, and that many employees aren't sure how they work.
Comment · 2 years ago
I don't love the $...$ syntax for executing commands. Using $ as a string delimiter is very strange to my bash-accustomed eyes.

It's a shame that they provided such weird syntax for the most important thing you tend to do in a bash script, while providing fairly nice syntax for everything else.

Comment · 2 years ago
Why does everyone need to live in Palo Alto? There's housing elsewhere. If we built more housing in Palo Alto, it wouldn't be such a nice place to live.
Comment · 2 years ago
It's not clear to me that every site would have to perform age verification themselves. Seems like the "I am a minor" flag could be managed at the client operating system level (e.g. as a property of the cell account on mobile devices, or as a property of the user account on a laptop or desktop machine), and transmitted per-request (e.g. in a HTTP header).
Comment · 2 years ago
I think it would be better if this was a code generator similar to `protoc` for gRPC, so we don't have to learn yet another implementation language.
Comment · 2 years ago
You could view the trial-by-Leetcode that people undergo when they switch jobs every 4 years or so as a form of relicensing. One advantage that the current setup has over officially proctored examinations is that you get to try again repeatedly until you are successful.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton