Re:It's probably time to stop recommending Clean Code (2020)
by triceratops on Tuesday May 25, 2021 @11:24AM
(#27278061)
Code never gets moved or refactored by someone other than the original author?
[ Parent
| on HN ]
Re:It's probably time to stop recommending Clean Code (2020)
by kapp_in_life on Tuesday May 25, 2021 @11:38AM
(#27278246)
So then you checkout at the refactor commit and look through the blame to continue searching. If you have to repeat this more than a few times then the person has probably left the company or hasn't touched the code in years so its better to understand it yourself before modifying.
Re:It's probably time to stop recommending Clean Code (2020)
by triceratops on Tuesday May 25, 2021 @11:41AM
(#27278286)
I'm embarrassed I didn't think of that before.
Re:It's probably time to stop recommending Clean Code (2020)
by kapp_in_life on Thursday May 27, 2021 @02:26PM
(#27306363)
No worries, after typing it out I definitely feel like there should be an easier way to say "show me the stack of commits that touched this line(s) of code", and I'm sure some git wizard has a fancy one liner that could more easily do that.
Re:It's probably time to stop recommending Clean Code (2020)
by SassyGrapefruit on Tuesday May 25, 2021 @11:43AM
(#27278302)
If it gets moved then the blame will tell me who moved it, It will also tell me what the hash was before it was moved. That hash will have all the original information. Same for the refactor case.