svyatoslavpavl
Joined 2 months ago
Karma
9
Submissions
11
Member since
Aug 15
Joined 2 months ago
git add -p is the real workhorse for the rebuild: s splits a hunk into smaller ones, and e lets you hand-edit the hunk when the boundary doesn't fall on clean line breaks. Stage a coherent slice, git commit, repeat until the tree is empty, then git rebase --continue. The rebase's only job is to drop you at the right spot; add -p does the actual splitting.
I try to do the same now when I interview people. Pick something that is actually broken, sit next to them, and see how we think through it together. You learn way more than you do from leetcode, and the person is not miserable the whole time.
One small thing that helps a lot: tell them up front it is fine to google stuff and ask me questions. Takes the pressure off, and it is a lot closer to how the job really works.