Re:Literate programming: Knuth is doing it wrong (2014)
by kragen on Monday January 13, 2025 @11:47AM
(#42685457)
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.
Re:Literate programming: Knuth is doing it wrong (2014)
by hitchstory on Monday January 13, 2025 @11:50AM
(#42685492)
I do squash them where appropriate.
I do use git stash where appropriate.
These arent nonobvious novelties, save perhaps to junior engineers.
Re:Literate programming: Knuth is doing it wrong (2014)
by kragen on Monday January 13, 2025 @02:10PM
(#42687352)
Well, that is kind of what you sound like.
Re:Literate programming: Knuth is doing it wrong (2014)
by Supermancho on Monday January 13, 2025 @02:56PM
(#42688178)
> 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.
Re:Literate programming: Knuth is doing it wrong (2014)
by kragen on Wednesday January 15, 2025 @10:28AM
(#42711984)
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.
Re:Literate programming: Knuth is doing it wrong (2014)
by lanstin on Monday January 13, 2025 @12:36PM
(#42686076)
Do you not have code reviews?
Re:Literate programming: Knuth is doing it wrong (2014)
by paulddraper on Monday January 13, 2025 @02:21PM
(#42687536)
You make a new commit every 12 minutes for eight hours?
Re:Literate programming: Knuth is doing it wrong (2014)
by Supermancho on Monday January 13, 2025 @02:59PM
(#42688218)
> 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.
Re:Literate programming: Knuth is doing it wrong (2014)
by paulddraper on Monday January 13, 2025 @05:29PM
(#42690376)
These questions are not made in bad faith.
Re:Literate programming: Knuth is doing it wrong (2014)
by hitchstory on Monday January 13, 2025 @06:56PM
(#42691283)
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.
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.