raylu

Joined 16 years ago

Karma
229
Submissions
183
Member since
Jul 26
https://www.raylu.net/

[ my public key: https://keybase.io/raylu; my proof: https://keybase.io/raylu/sigs/2eHD_y93HvreyDnuBRuKMzjjm-A9VvvYEDfUY2FivPs ]

View on Hacker News

Recent submissions

Comment · 1 year ago
Comment · 1 year ago
I'm having a hard time understanding your question. are you asking how people who are unfamiliar with git and jj should mentally model a stack of PRs? and that this is a problem because it's intimidating for them when an expert (in git? in the codebase?) is reviewing their code?

if yes:

while jj does make stacked PRs quite easy, I think this tutorial is mostly aimed at people who are still getting their feet wet and not making stacks of PRs. and if the expert is intimidating, tell them to be helpful or fuck off

if no:

well I don't understand your question, but probably don't `jj edit` the commit at the bottom of a stack; `jj new` and, when you're ready, either `jj squash` it down or `jj rebase -s @ -A @-` your change into the stack instead

Comment · 1 year ago
the thing about rebasing/cherry-picking (including just popping the stash) in git is that you only have 2 choices: fix the conflict now or abandon the entire rebase/cherry-pick

with jj, you have the option to fix half of it and come back later. you can take a look and see how bad the conflicts are if you go a certain route and compare to another option

Comment · 1 year ago
`jj op` has `log` to show you the op log, `show`/`diff` which work like their non-op versions, and `jj op restore` which is sorta like `git reset --hard HEAD@{whatever}` but for your whole repo state
Comment · 1 year ago
wait what?

bitbucket will merge a PR from your feature branch onto the base branch even if it's not fast-forward from the base branch. as long as you use the "squash" or "rebase" option on the PR interface (instead of the "merge" option), the resulting history will be linear

Comment · 1 year ago
`git rebase -i` lets you reorder one branch of commits easily

in a stacked PR workflow, after the bottom PR merges, you now want to rebase the whole stack atop the main branch. if that's 3 PRs, that's 3 branches, 3 rebases

one thing `git rebase` doesn't let you do but `jj rebase -s source -d dest` does is move a commit from one branch to another (`git switch dest`, `git cherry-pick source`, `git switch -C source source^`, `git switch dest`)

Comment · 1 year ago
Comment · 5 years ago
it feels like we're conflating two issues here: fixing the bug on time and paying out the researcher. at the point where the bug is too complicated to fix within SLA and the exception has been escalated to senior leadership, surely the bug bounty team can pay the researcher?
Comment · 5 years ago
much smaller, less wealthy companies attract far fewer reports
Comment · 5 years ago
Good thing you sold immediately when they vested.
Comment · 6 years ago
Don't jump to conclusions too fast about a reduced example to demonstrate a problem.

I probably originally had 2 expressions that evaluated to booleans. I may have been using `is` to check that the type of one was actually a bool rather than just falsey.

Comment · 6 years ago
IIRC, I originally had 2 expressions that evaluated to booleans that I was comparing. I don't remember if I had parens, but I do remember being deeply confused once there were no parens.
Comment · 6 years ago
But also, those high ladders of abstraction support some pretty cool software...
Comment · 6 years ago
Oh, hi!

Yeah, that was a real head-scratcher.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton