3,045 karma · joined Apr 22, 2015 (11y ago) · 1,407 submissions
comment 3y ago · link · parent
1. write some code on a local branch
2. upstream has new revisions? rebase my branch on top
3. if not finished with my task yet, go to 1
4. if ready for review, open PR
5. if accepted, squash and merge
6. if changes are requested, write more code
7. upstream got more commits causing a conflict? don't rebase! it will screw up the PR history on GitHub and can cause issues for reviewers who might've checked out your branch locally and maybe done some experiments. merge upstream into your local branch. then you can push fast-forwardable commits.
8. push new commits to PR and go to 5
I used to think of rebasing as just rewriting commit history. But now I also think of it as altering the history of collaboration that is captured in a PR. So I switched from rebasing onto new upstream base branch commits and force pushing to PRs that already had reviews, to merging in new upstream base branch changes. I only do this after someone else has done anything on my PR; if I open it but nobody has reviewed yet, I'll do the rebase/forcepush to keep it current until someone does.
I prefer squashing to merge because I prefer the default branch to have one commit per unit of collaborative work. The way different people split up commits on a branch is arbitrary and varies widely; you'll never get more than 2 engineers to agree on a convention here. Keep all the messy stuff in the PR, and you can always revert one of those individual commits if you want finer-grained rollback. If you want a PR to have generated more than one commit, then it should be more than one PR.
comment 3y ago · link · parent
comment 3y ago · link · parent
Also TIL about the massacres of Korean civilians after the 1923 Great Kantō Earthquake: https://en.wikipedia.org/wiki/1923_Great_Kantō_earthquake#En...
comment 3y ago · link · parent
I do eventually also want to read Debt, but unsure I need to spend any time on Bullshit Jobs, as my assumption is that it’ll be myopically focused on the idea that some wizard behind the curtain has made the world economy the way it is, instead of it being an emergent phenomenon; an interconnected web of Chesterton fences that the author, in his usual condescending way, will be all too happy to burn, while providing no meaningful alternative.
I mean I’ve had some jobs that felt like BS but I don’t need to spend my precious free time being preached to about it. It comes off as pandering, just more high brow than the tract material you find for cults and religions that seem to zero in on their target population’s biggest qualms with society and offer the promise of a better way.
comment 3y ago · link · parent
Interesting? Sure. Due to the abstract nature of software, there are many dimensions on which a program’s beauty could be evaluated. It’s unclear to me that there can even be one “most beautiful” program above all others.
Personally, though, I’d go for something that solves some concrete human problem, with code a layman could understand that is simply well factored and formatted, and contains at least one ascii diagram in a comment block.
comment 3y ago · link · parent
I imagine by “self-employed” what they really meant was “early retired”.
comment 3y ago · link · parent
You just got unlucky enough to interview them instead of someone who got laid off after 15 years and were amazing at their job and could pick up a new tech they’d never heard of and immediately be off to the races.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
It’s not like there are mustache-twirling villains coming up with ways to punch down even harder here. Diets high in sugar are more likely to lead to painful and even dangerous oral health issues, pancreatic/kidney/liver issues, diabetes, and obesity with all of its knock on effects.
It only has a negative effect for people who will never reduce the sugar in their diet, and those are the people who should be paying into socialized healthcare at a higher rate because they’ll need lots of benefits later. So really they’re saving to take care of themselves, making this a net positive long term.
I know it’s harder than “just stop eating sugar” but feelings or preferences don’t change the facts of biochemistry. Until you can disprove the findings, the policy should reflect the state of the science.
And by all means find more/better ways to incentivize or even subsidize healthier options for those on the low end of the socioeconomic ladder. That is absolutely one of the things taxes like this should fund.
comment 3y ago · link · parent
I had a Kinesis freestyle for years and upgraded to the 360. No regrets.
comment 3y ago · link · parent
I’ve often considered moving that master password to the frontier of email access and just never recording a password and using password reset for every login session.
Regarding API keys vs passwords, a difference is that API keys are something that are used on your behalf by automated systems, whereas passwords IME are always something you manually input at the time you need it.
comment 3y ago · link · parent
Why? If there are legitimate issues, you can always be dragged into court, or at least your business can be boycotted and suffer bad PR etc.
Being forced to put your home address just so every whacko with internet access can threaten your children, who had no choice in your business decisions, sounds like just a terrible idea.
Try making a false claim against yourself on r/RBI with dox and report back.
comment 3y ago · link · parent