Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
travisd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
Why doesn't set -e (or set -o errexit, or trap ERR) do what I expected?
(mywiki.wooledge.org)
2 points
by
travisd
4y ago
|
0 comments
32.
▲
Debugging Docker image steps with BuildKit
(travisty.me)
3 points
by
travisd
4y ago
|
0 comments
33.
▲
by
travisd
4y ago
What do you mean by crappy? I've always found it very lovely and welcoming (though a touch small). The Julia community is also (in my experience) skewed towards scientific computing rather than software engineers which can definitely h
34.
▲
by
travisd
4y ago
Stefan Karpinski (one of the core Julia contributors) gave a talk (in 2016, so rather dated as far as the Julia syntax and whatnot go) about how Julia is secretly more lisp-y than even lisp & Scheme. The core of this argument is that mo
35.
▲
by
travisd
4y ago
I don't have any real issues with Go. Setting up GoLand requires manually choosing the Go installation to use (at `~/.asdf/installs/golang/1.19`) and manually changing it when I upgrade the project, but since the ve
36.
▲
by
travisd
4y ago
Required reading on this subject should be "Bullshit Jobs" by David Graeber.
37.
▲
by
travisd
4y ago
The images shown at the top are (probably) designed to show off the full "dynamic range" of the color palette, but reading those code snippets is a bit overwhelming (and I suspect it's just because you've crammed so many
38.
▲
by
travisd
4y ago
Seconding this. It’s easy to be overwhelmed by the seeming combinatorial complexity of things. Just start a little personal wiki (eg, arrow syntax, structural typing, etc) and it’ll help you decompose things into more easily understandable
39.
▲
by
travisd
4y ago
Other than rm -rf / (which can happen if you manage to hit enter rather than another key) this feels not terribly useful. Who has accidentally kubectl delete ns prod? Anecdotally, the accidental enter seems like a much more likely scen
40.
▲
by
travisd
4y ago
> [ Note: this is where I lost interest and stopped writing. ] Kudos for actually bothering to publish the damn thing. Many people (myself likely included) would have spent hours agonizing over minute unimportant details and ultimately n
41.
▲
by
travisd
4y ago
Super neat! Admittedly I haven't played around with it too much, but I recently attended a keynote by the love Felienne Hermans that was all about her Hedy ( https://www.hedycode.com/ ) "gradual" programming la
42.
▲
by
travisd
4y ago
Worth noting that some of these can be detected statically -- and some are detected by go vet (e.g., passing a sync.Mutex by value). I don't think it detects the wg.Add bug, but that seems relatively straightforward(†) to add a check f
43.
▲
by
travisd
4y ago
This is also what Yugabyte (OSS) does, at least according to my general understanding. It also supports the Cassandra API (though not to access the same data).
44.
▲
by
travisd
4y ago
As a Seattleite who uses a bicycle as the primary means of transportation (but not a bike enthusiast or “bike person”): these are nice (experienced them a bit in Ann Arbor) but the only way to truly make biking safe is going to be to remove
45.
▲
by
travisd
4y ago
At some point, you can't gracefully handle bugs in other peoples code. If a function you call causes a SEGFAULT, in the vast majority of software, you're not expected to handle that. That's an invariant error, and you probabl
46.
▲
by
travisd
4y ago
There are products that do that! Hasura comes to mind. But APIs can have different use cases. It’s usually considered bad to directly expose your table schema over GraphQL because it locks you in and makes it hard to change your data model
47.
▲
by
travisd
4y ago
I’ve found it easiest to implement in Node due to the explicit event loop structure. You use data loaders, which is a super generic term that means “batch all requests for this resource into the next event loop tick.” So when a query reques
48.
▲
by
travisd
5y ago
Facebook has a terrible track record when it comes to open-sourcing their internal tools. See: Phabricator, HHVM, Flow, Jest, ... Even React, which is their most popular library, is not actually "open source." They're very tr
49.
▲
by
travisd
5y ago
“Welcome! Sorry.”
50.
▲
by
travisd
5y ago
I think out loud you'd be more likely to hear "here're your donuts" rather than "here's your donuts"), but when written, here're looks way worse. Language (written, spoken, and otherwise) is interesti
51.
▲
by
travisd
5y ago
i’m also not a db engineer, but i think this is true-ish. however building and maintaining those index tables is hard and probably prone to issues if you can’t update multiple as part of the same transaction. the other major thing you’d mis
52.
▲
by
travisd
5y ago
Interestingly, I suspect Facebook employs the largest auto-loaded codebase in the world and I suspect this is made easier by the fact that everything is controlled under one roof. There is some namespacing (à la PHP namespaces) for standard
53.
▲
by
travisd
5y ago
I learned Dvorak because I knew I would never work out the bad habits I had with QWERTY. Dvorak is a HORRIBLE layout for mobile, but I used it for about a month while learning Dvorak and it really helped. It’s horrible since you often type
54.
▲
by
travisd
5y ago
In my experience this isn’t idiomatic Go and would definitely turn heads in a code review. But in such a small function, it’s fine to just not worry about the lifetime of your variables (and in bigger functions you can often decompose into
55.
▲
by
travisd
5y ago
This is definitely not the case. This publication has multiple posts about the supply chain and port affairs. Software/tech people sometimes forget that we live in a very specific world with very limited scope, and sometimes forget to
56.
▲
by
travisd
5y ago
Yep, and beyond that, there's still a need to remove cars from the world, both to fight climate change and to make cities livable again (see any video from the "Not Just Bikes" YouTube channel for support for this argument).
57.
▲
by
travisd
5y ago
I think here “rewrite” means completely changing the internal structure of the code (while preserving the functionality) whereas “port” means copy the structure of the internal code with as little modification as possible. And it’s hard to
58.
▲
by
travisd
5y ago
I haven’t personally benchmarked it, but I know it’s available as an eslint rule (all exported functions must have declared return types).
59.
▲
by
travisd
5y ago
To this point, many teams are already using subsets of TypeScript to improve compilation times. Often times it’s things like always declaring return types on functions to avoid the compiler having to infer it (especially between module boun
60.
▲
by
travisd
5y ago
My impression of the article is just that the author is a fan of green threads (goroutines). Green threads don’t really make sense without an integration into some kind of IO runtime, so calling out how Go does do this seems moot. Other l
More ›