Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Surely you do it often enough that an extra 90s would not be an undue cost?


I'd estimate I probably commit ~30-50 times a day. I dig into and read a commit message once every 3 months.

A 90 seconds a commit that's an hour a day spent writing beautiful commits.

That one hour a day could be substituted with one conversation "hey, why did you do xyz in [ linktocommit ]?" every 3 months.

If you dont do these back of the envelope calculations in your head when trying to figure out if something is worth doing I highly encourage it.


Maybe you should be using `git stash` and `git stash pop` rather than commits. Or go back and squash your 30–50 commits into one or two, which might take ten minutes. What you're doing is better than not using version control at all, but only barely.


I do squash them where appropriate.

I do use git stash where appropriate.

These arent nonobvious novelties, save perhaps to junior engineers.


Well, that is kind of what you sound like.


> Well, that is kind of what you sound like.

This is what senior engineers do. Interrupted to switch tasks every 10 min. Make your good changes as a commit and move to the next task. Maybe you get back to it today, maybe not.


That's definitely not how Jeff Dean and Sanjay Ghemawat wrote MapReduce and Bigtable. I'm sure what you're saying is correct at many companies (I've seen a few), but it's a stupid policy, depriving them of the benefit of having senior engineers.


You make a new commit every 12 minutes for eight hours?


> You make a new commit every 12 minutes for eight hours?

You only work 8 hours? Your changes are that big? These are bad faith questions.


These questions are not made in bad faith.


That sounds like a reasonable average, yeah. Some tiny changes take 45 seconds, some harder changes take 40 minutes.

I find that working in working code increments that are as small as possible to be ideal.


Do you not have code reviews?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: