r/programmerchat • • May 23 '15

Pre-commit nervousness - does anyone else have it or am I alone?

When I prepare a commit, I usually double and triple check the changes I'm about to push. I go through all changed files and lines and verify that I indeed am only pushing those changes which I want to, even when I know that there are no other changes in my code than those and/or that I already went over that stuff.

The more complex the pending commit, the more "nervous" and detailed in my sanity checking I am. Doesn't take a lot of time, but I'd feel wrong not doing it.

I rarely saw my colleagues doing that, so I was wondering how common that is or if should start to worry ;)

edit: Let me clarify that it is not that I sit there shaking with fear of committing, it's more the need to do a final sanity check. It's not even an uncomfortable feeling, for me it just belongs to the whole part of developing. I was just wondering if other people were experiencing that too. "nervous" might have been too strong a word.

25 Upvotes

35 comments sorted by

View all comments

Show parent comment

2

u/jungrothmorton May 24 '15

I understand the slight apprehension you're feeling. I just don't have it.

I work at a ropes course. I often work up on a platform, clipping people into the zip line. If I didn't clip someone in and let them off the platform, they'd fall 40 feet. Probably die. I get nervous when I do that. I don't get nervous when I do git commits.

3

u/foosel May 24 '15

Maybe that's a case of perspective then

2

u/jungrothmorton May 24 '15

It is. And I don't mean to just boast about it.

But when I think about it, maybe you shouldn't change anything. The fact you give as much attention to your code as I do to someone's life is pretty cool.

1

u/Ghopper21 May 24 '15

Interesting analogy. With the ropes, you have a mental checklist of things to check and double-check right? How many items on that list? Where the analogy breaks down is that in programming, the stakes are generally much lower, but the number of things that could go wrong are generally much higher.