Better HN
topnewbestaskshowjobs
Log inSign up

manlobster

172 karma · joined Aug 25, 2023 (3y ago) · 31 submissions

Submissions

comment 2y ago · link · parent

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 2y ago · link · parent

Generating the HTML in a container seems like a better solution than ditching the generator altogether.

3.

Tekton, the ancient Greek word for artisan(en.wikipedia.org ↗)

4 points · by manlobster · 2y ago · 2 comments

comment 2y ago · link · parent

True, but both of these are for relatively slow operations, where the performance of the error checking is relatively insignificant.

comment 2y ago · link · parent

> 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 2y ago · link · parent

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 2y ago · link · parent

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 2y ago · link · parent

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 2y ago · link · parent

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 2y ago · link · parent

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 2y ago · link · parent

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.

comment 2y ago · link · parent

Looks like all the heavy lifting is being done by webllm [0]. What we have here is basically one of the demos from that.

[0] https://webllm.mlc.ai/.

comment 2y ago · link · parent

It's truly amazing how quickly my browser loads 0.6GB of data. I remember when downloading a 1MB file involved phoning up a sysop in advance and leaving the modem on all night. We've come so far.

comment 2y ago · link · parent

Googler protests in the past have typically been walk-outs and other outdoor gatherings. This protest took place within the offices. Some of the protestors occupied senior executives' offices for many hours, and had to be removed by the police. Some of the protestors also streamed their protest from within the offices of the notoriously confidentiality-obsessed company.

I don't buy the narrative that Google is cracking down on employee activism. It seems more like the activists in this instance went too far and were dealt with accordingly.

comment 2y ago · link · parent

This seems like a reasonable use of the preprocessor to me. I've seen similar use in high-quality codebases. I wonder why the author is so disgusted by it.

comment 2y ago · link · parent

I wonder why they didn't use bazel as their build system.

comment 2y ago · link · parent

I worked at Google when the daycare was introduced. At the time, it was so expensive that very few employees could afford to use it. Was that still the case recently?

comment 2y ago · link · parent

Great! Love it!

Could you add a way to race other people to solve the puzzles?

comment 2y ago · link · parent

Test code doesn't have tests of its own, so we must rely on inspection to establish that it is correct. This means that test code must be extremely readable.

It would make me uncomfortable to rely on tests like some of the examples in this talk, that have such a degree of complexity without explicit tests. Code such as to parse a text file should be in its own package. The package should expose an extremely readable API, and it should have its own suite of tests.

Similarly, writing formatting code for error messages and diffs inline makes the tests less readable and therefore less reliable. The golang standard library should include testing helpers such as in `testify`, which would allow tests to be concise, less buggy, and extremely readable.

comment 3y ago · link · parent

It would be more productive to focus on the appalling suicide rate among young people, rather than the fact that they used guns.

comment 3y ago · link · parent

Also P. G. Wodehouse[0], so it can't be all that bad.

[0] https://en.wikipedia.org/wiki/P._G._Wodehouse

comment 3y ago · link · parent

You can do `Hello @TheirSlackHandle`.
12