5Qn8mNbc2FNCiVV

Joined 7 years ago

Karma
520
Submissions
195
Member since
Jan 18
View on Hacker News

Recent submissions

Comment · 6 months ago
I wish there was a config to error when a inferred type is either Any or Unknown so we can spot these locations. The report has it, but seeing it in the IDE would be great
Comment · 6 months ago
Comment · 8 months ago
I mean, maybe he was a revolutionary. One could describe what Vercel is selling as some kind of "wget optimizer" as well
Comment · 9 months ago
Do you mind sharing the prompts? Would be greatly appreciated
Comment · 1 year ago
I would 100% do it anytime because at some point enough is enough and you as the lead should have the backbone to put him into place. Best things is he shuts up forever, worst thing is he get's pissed off, goes to the manager and the manager sides with you anyways because you're known to be a good employee and he quits by himself/gets fired.

Obviously this is a rare thing to do, but from reading the other comments it's miles better than being bullied out, quitting and letting the other person continue with that attitude

Comment · 1 year ago
I've had some PRs that would have required a ton of comments. There are usually two ways I handle this:

If the PR went in a completely different direction and missed the goal by a lot, I take ownership of it (with a brief explanation) and re-implement it. I then use the new PR for a pairing session, where I walk through both PRs with the original author for learning purposes.

If it’s mostly smaller issues, I schedule a half-hour pairing session with the author and review everything together, after preparing a list of issues.

Doing it any other way puts too much burden on the author to guess what the reviewer wants, and it slows down velocity significantly.

Comment · 1 year ago
Next time tell him that if he isn't going to provide something constructive to the meeting, that he won't be allowed to join further ones.

As long as you make it clear from your tone and wording, that this is not you being aggressive in any way but you protecting the time of the team from distractions, the rest of the team shouldn't see you any different than before.

Comment · 1 year ago
Not sure couldn't it just have been multiple different tokens/sessions and based on the request, use the correct one? It obviously only solves the issue specifically for multi-tenancy, but if that meant being able to stay on RBAC and well, not doing that effort, I'd wager it'd be worth the trade-off
Comment · 1 year ago
Couldn't this be done in some way when validation exists, that the same validation is used to create a "better" placeholder value that may be able to be used with specific conditional functions? (eq(), includes(), etc.)
Comment · 1 year ago
I'm wondering how history could have been if Hitler had access to nuclear weapons / empathy given by a super power.

This is a step forward, but what's the way forward?

Comment · 1 year ago
Well, CloudnativePG exists and it works really really well. At some point if you can afford to have someone manage your databases separately from your applications, you can think about putting it outside the cluster but I'd wager at some point you've got enough experience with running your DB with an operator that you can keep running it in the cluster.
Comment · 1 year ago
You'd have to reach the same instance for your next request. Easier to just tell clients that they get returned a header that they should attach to their requests so the backend can route their reads to the primary for some time until replication caught up.
Comment · 1 year ago
The trick is to not worry about useMemo and useCallback because it's rarely an issue unless you have 800 line components or don't compose but rather treat everything as if it was inheritance.

I've got pretty sizeable codebases, less than 5 useEffects ever (nowadays I only have one for a single location where I need to manually poll, the rest is useSyncExternalStore) and I only do useMemo for tables.

Compiler is just an additional performance improvement that's "free" and at least the compiler doesn't make it harder to understand how your code executes because it just works

Comment · 1 year ago
I'd rather break my hands than use Svelte instead of React again. It comes with so many problems of itself. Summarized in a single sentence though it would be: It's more common than you'd like it to be, that your UI doesn't actually reflect the state of your application.
Comment · 1 year ago
Too bad that the Supertokens docs became an absolute dumpster fire with their "recipes" and reading the source made me lose confidence in the product's quality to rely on.

Not saying better-auth is strictly better, but at least you can read the docs and know what you're getting into yourself instead of 12 variations of the same thing

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton