So editing code is like free climbing now? My IDE has infinite undo, and some editors (like vim) can go back to arbitrary points in time. The relatively unlikely case that the editor crashes (or I accidentally shut it down) and I lose a little bit of undo state (or a few lines of code) is just not worth it in my opinion.
I commit maybe once every few hours. I don't recall my diff exceeding 2000 lines, normally it's a few 100s. I can't recall the last time I lost code. It only happened a few times ever. It was never a problem to quickly redo those changes (and possibly improve along the way).
Is there any other point in doing micro-commits other than being "safe"? If not, I have other things to worry about.
Besides, my editing environments don't play well with checking out an older commit to see what's there - they don't recognize this as "going back". Much better to simply undo.
When I was less experienced, my code was more error-prone and micro-commits saved me often. Either way, VSCode won’t lose your progress regardless of how it quits. It will always drop my undo history on restarts though (which can be a real pain if I’m exploring and haven’t made a commit in hours).
I commit maybe once every few hours. I don't recall my diff exceeding 2000 lines, normally it's a few 100s. I can't recall the last time I lost code. It only happened a few times ever. It was never a problem to quickly redo those changes (and possibly improve along the way).
Is there any other point in doing micro-commits other than being "safe"? If not, I have other things to worry about.
Besides, my editing environments don't play well with checking out an older commit to see what's there - they don't recognize this as "going back". Much better to simply undo.