Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klauserc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
klauserc
2y ago
I find GitHub Copilot close to useless for production code. The worst, most obscure bugs I've had to debug in the last year were all in Copilot-written code. It _looks_ plausible, but it makes extremely subtle mistakes. Occasionally, y
32.
▲
by
klauserc
3y ago
I always use EVE Online ship names. Phones get frigate names, laptops get destroyer names, and big machines/servers get battle cruiser names. https://wiki.eveuniversity.org/Alphabetical_Ship_List
33.
▲
by
klauserc
3y ago
game-icons.net is great. I use it all the time for ad-hoc logos/emblems for characters/factions in pen&paper games. I especially like the export options. Having _both_ PNG (optionally with transparent background) and SVG means
34.
▲
by
klauserc
3y ago
Eh... since .NET 5 I feel that things have become simpler. If you are writing applications, there is really just the "modern" .NET to keep track of. Occasionally, you have to add "Core" to a Google search to not see resu
35.
▲
by
klauserc
3y ago
Apart from the very welcome QoL features in C# 12 (collection literals, primary constructors for ordinary classes), the "Aspire" announcement is very interesting. Haven't decided yet if its a good thing or too much "magi
36.
▲
by
klauserc
3y ago
We do, very successfully (large online retailer). Moving off of Windows as a deployment target simplified our processes significantly. Developers use a mix of Windows and Mac to develop, running the services "natively", before we
37.
▲
by
klauserc
3y ago
Why reach for crypto? My strategy would be to have a small emergency fund with a different bank. The risk of being debanked by two independent banks _at the same time_ seems lower than crypto.
38.
▲
by
klauserc
3y ago
The author writes > I need to run tests, use goto definition and other editor navigation features, apply local changes to check if some things could have been written differently, look at the wider context to notice things that should ha
39.
▲
by
klauserc
3y ago
Ooooh, I need to try this! When working on a PR myself, I frequently avoid doing small, incremental commits because I find the subtle "these lines changed" annotations in IDEs extremely useful. It helps me find the locations in co
40.
▲
by
klauserc
3y ago
It does seem to have an answer to most common challenges. Debouncing (for interactive form validations) seems to be something that you still have to sort out yourself. And I'm not sure how much work the mutation support saves in practi
41.
▲
by
klauserc
3y ago
Thanks! The only option I saw was to wrap `useQuery` so that you can do custom shenanigans like hooking up the abort signal to the fetch requests.
42.
▲
by
klauserc
3y ago
Looks interesting. Thanks! Not sure how I feel about the key being handed to the fetcher (might be great, might be annoyingly verbose). Will have to see what it looks like in practice. (We are going to use feTS [0] or openapi-fetch [1], whi
43.
▲
by
klauserc
3y ago
Mix of both. Some data needs to be ready on page load, but we also have quite a number of interactive use cases (e.g., form validation with a backend query).
44.
▲
by
klauserc
3y ago
Our team is currently debating whether we should adopt react-query or stick with plain old hand-written code around `fetch`. The team used Apollo in another project, so we are quite familiar with a "heavy handed wrapper" around ba
45.
▲
by
klauserc
3y ago
I'm pretty happy with _Podcast Republic_ on Android. Its a bit of a "power user" app, but I have yet to find something that I want to tweak that it doesn't let me tweak via its vast settings menus.
46.
▲
by
klauserc
3y ago
If you find yourself in that situation, migrating to a more performant queuing solution is not that much of a leap. You already have an overall system architecture that scales well (async processing with a queue). _Ideally_ the queuing tech
47.
▲
by
klauserc
3y ago
With a transaction isolation level below SERIALIZABLE you can have two transactions that both read the old row (with `used = 0`) at the time they perform the update (but before they commit the transaction). In that case, both transactions w
48.
▲
by
klauserc
3y ago
Yeah, learnt that the hard way as well. "I'll install Windows on the new drive, copy over data from the old drive, then throw away the old drive - computer doesn't boot anymore because EFI boot partition randomly ended up on
49.
▲
by
klauserc
3y ago
Very interesting to see how the Rust-JNI interface gets used in a production environment (e.g., the topic of unifying logging typically doesn't come up in "your first Rust-JNI app" tutorials, for instance) I do have one quest
50.
▲
by
klauserc
3y ago
Yeah, that caught my attention as well. How is SIGSEGV ever _not_ a bug? One of the last paragraphs is illuminating as to why `if` is so weird in NGINX: > Directive “if” is part of rewrite module which evaluates instructions imperatively
51.
▲
by
klauserc
3y ago
Maintainer rejected the PR. They have temporarily disabled the integration in https://github.com/moq/moq/pull/1375 but kept the SponsorLink project reference in the source code. It seems like their intent is
52.
▲
by
klauserc
3y ago
I worked on a big Java project where we had to do a lot of list/collection wrangling like that. I found that code using combinator chain/list comprehensions/Streams/LINQ/etc. was significantly less error prone tha
53.
▲
by
klauserc
3y ago
One could argue that the same holds for the second example. Sure, the parameter is called `numbers` but who knows what it will contain at runtime. It could be full of vectors, matrices or sheep. _Some_ of the objects could have a custom def
54.
▲
by
klauserc
3y ago
Interestingly, I had the exact opposite reaction. I found the second function harder to reason about because it heavily relies on mutation and the fact that individual loop iterations commute with respect to one another. (To understand what
55.
▲
by
klauserc
4y ago
Nah, too much work. I subscribe to Netflix and Amazon Prime maybe once a year for a month each. That's more than enough time to watch everything worth watching.
56.
▲
by
klauserc
4y ago
I use KeePass (+ KeePassX on Android) with a password database file on Dropbox.
57.
▲
by
klauserc
6y ago
I have a first-gen ReMarkable and I love it. I use it mostly to take notes in meetings and as a scratch pad. The small vertical separation between the surface and the screen and the replaceable tips make it feel _very_ close to writing on r
58.
▲
by
klauserc
10y ago
My i7 Surface 4 Pro is the best laptop I have ever owned. (And I was using a Lenovo X1 before that, which is already pretty awesome; never used a MacBook, though). It boots up ervy quickly, maintains WiFi and blutooth connections through
59.
▲
by
klauserc
11y ago
Lazy evaluation, I think?
60.
▲
by
klauserc
12y ago
IMO the neat thing about a "git push" deployment is that you are deploying a particular commit. The build server could annotate the build with the commit's hash, making that deployment reproducible. If you just have a local .
More ›