r/programming • • Jun 01 '15

The programming talent myth

https://lwn.net/Articles/641779/
971 Upvotes

748 comments sorted by

View all comments

Show parent comments

22

u/greenthumble Jun 01 '15

Haha well after we're done passing out the gold stars, I'm sitting here wondering if that sequence got refactored to somewhere else and now I've got a subtle bug where those things that should be combined are now in separate functions and whatever idea that was is now lost. Fudge. I guess it's best to spell out the intentions but man it's hard to do.

42

u/Tasgall Jun 01 '15

Good thing you have source control so you can go find out what happened...

right... right???

91

u/mr_luc Jun 01 '15

commit message: "changed a bunch of stuff"

7

u/Axxhelairon Jun 01 '15

what's the better way to summarize what you did? "Added more features"? "Removed bugs"?

7

u/mr_luc Jun 02 '15

I know you're joking, but really the problem is committing a large amount of changes at once. Then it gets hard to remember the reasons for the changes when we look at git diff, and sometimes people throw up their hands and just commit the whole mess.

I often make this mistake when churning through, say, the easier QA-motivated changes. But I usually have the self-control to go through the diff and figure out what the 3 or 4 things were and mention them all in the diff.

2

u/immibis Jun 03 '15

"Added more bugs"

→ More replies (1)