Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
strken
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
751.
▲
by
strken
2y ago
This one feels like the list-maker is struggling to communicate with me rather than telling me a surprising truth. I can't tell whether it's meant to mean "a TCP segment won't always fit 1:1 into an IP packet (but in the
752.
▲
by
strken
2y ago
Putting a dataloader in front of batch APIs usually works okay. You end up with round trips but they're 1+1 and inside the data centre. I've used AST traversal to compute joins a couple of fields ahead + custom resolvers that only
753.
▲
by
strken
2y ago
> This is the wildest part. One company that is proving all the "why does <company> need 10000 engineers?" takes true. Generally speaking, <company> needs <number> engineers because it's rational to keep
754.
▲
by
strken
2y ago
It depends on what you're doing. On some projects we've put the job queue into our database, which works great at low and medium traffic volumes and means we can do exactly the same thing for external systems if they let us send t
755.
▲
by
strken
2y ago
This does not match my experience. If the root query lets you query a user of type User, and the User object embeds an array photos of type [Photo], then there are two possibilities: either the resolver for user is loading the photos and l
756.
▲
by
strken
2y ago
I was responding to someone who was talking about one-by-one checks in REST. It is in fact true that using one-by-one checks in GraphQL is pretty similar to using them in REST. You can do the equivalent of applying middleware at a routing l
757.
▲
by
strken
2y ago
You don't treat resolvers like RESTful endpoints. You check that the user has permission to access the object (edit: or other value) which the resolver returns. This has nothing to do with RPC and does not stop you using the "grap
758.
▲
by
strken
2y ago
The permissions checking is one-by-one checks. It's exactly as hard a mistake to make in GraphQL as it is in REST unless you've got more resolvers than an equivalent REST app would have, which is unlikely and would mean GraphQL
759.
▲
by
strken
2y ago
It's pretty easy. Treat each resolver that retrieves data like it's a REST endpoint and secure it, and add a query allowlist that you append items to during your CI builds. You don't need to touch the AST or understand the co
760.
▲
by
strken
2y ago
It's hard to know what to do about SQLite's dangerous defaults. Changing them breaks backwards compatibility, while leaving them means some users are unintentionally using their database without referential integrity or strict tab
761.
▲
by
strken
2y ago
This is interesting. At work we use PRs like the author uses commits, and in fact we squash-and-merge them at the end, but our approach requires rebasing the later PRs whenever we make a change to the earlier PRs. This can be quite laboriou
762.
▲
by
strken
2y ago
I write stuff for fun, but there's always some reason why I chose to build e.g. an in memory inverted index with a gRPC CLI client instead of anything else. Usually it's a simple non-business reason like "I wanted to see how
763.
▲
by
strken
2y ago
You can get burnt out while not neglecting any of those things. Going to bed at 10pm with fresh sheets after a nice healthy dinner with friends is not able to offset an unlimited amount of workplace stress, although it's surprisingly e
764.
▲
by
strken
2y ago
The largest open cut mine in the world, Bingham Canyon, is more than ten times as deep. While it's not a good idea to just chuck stuff into an abandoned mine, the effort to excavate a hole that size is doable for a single site operated
765.
▲
by
strken
2y ago
Landfill leachate is quite terrifying. You end up with a bunch of reactions between whatever random assortment of garbage found itself on the same truck, and the resulting liquid is acidic enough to dissolve pipes as well as heavily contami
766.
▲
by
strken
2y ago
Removing the buzzwords gives me: 1. Database Replication/Consolidation for embedded databases used in edge/desktop applications, into centralized databases/a data warehouse/a data lake 2. A Kafka Producer and SQL API for
767.
▲
by
strken
2y ago
It's often not a problem because it's often easy to make a call idempotent. Consider the case where you attach an ID to every event and the subscriber stores data in postgres. You stick everything in a transaction, persist each ev
768.
▲
by
strken
2y ago
Yeah, I always assumed it meant a job where the lowest level was accessible without training. Economists don't have a reason to distinguish between a job that will build skills versus one that won't, and I'm not sure the latt
769.
▲
by
strken
2y ago
I quite like charter cities, at least in theory, and I'm a little annoyed that everyone sees them as an attempt at world domination. They could let us A/B test legal frameworks, and I think that's neat. Hopefully someone who
770.
▲
by
strken
2y ago
As far as I know we both mean the same thing: loose gravel that has a grader and maybe a roller run over the surface every now and again. Surfaces in even worse condition that are basically wheel ruts filled with gravel with grass growing o
771.
▲
by
strken
2y ago
When is it a good choice, and when is it not? Just saying that it's "worth using it" gives the impression that it's a good choice for all levels of traffic, all security requirements, all isolation requirements (yeah it&
772.
▲
by
strken
2y ago
Denuvo isn't just a flag on a process. It's no more relevant to your suggestion than encryption would be to a suggestion that audio files have an option to prevent them being copied.
773.
▲
by
strken
2y ago
Because the user controls their own machine, so they can open a hex editor and turn your option off.
774.
▲
by
strken
2y ago
How do we know it's not useful to the German government? Without context, I would have assumed that "infrastructure, security, regulatory compliance, and developer experience" meant they were trying to secure FreeBSD's b
775.
▲
by
strken
2y ago
I think one problem is that a better design would move the button above the fold without ruining the spacing, and therefore achieve a better result with even higher lift, but someone focused on just the numbers wouldn't understand this
776.
▲
by
strken
2y ago
I'm surprised nobody's using it for geolocation. AFAIK Google already does that, so a free competitor would be a compelling justification.
777.
▲
by
strken
2y ago
The article contains the literal quote "It means database partitioning — of worlds." I don't think it is claiming that UO invented partitioning.
778.
▲
by
strken
2y ago
Employment contracts here usually state that you work X hours a week, likely 38 or less unless your union did a bad job, and can only work more if the hours are "reasonable" according to a bunch of criteria. This was previously en
779.
▲
by
strken
2y ago
Do you really think most people avoid stress? I personally do all sorts of stressful things for reasons that probably aren't worth it, and I bet most of the western world does too. I bet someone, somewhere, made it to 100 even though t
780.
▲
by
strken
2y ago
Chronic stress is bad for you[0]. Yeah, you can call advice to avoid chronic stress vapid and useless if you want, but so many people still willingly expose themselves to it that a reminder is probably helpful. [0] See e.g. https:/&#x
More ›