News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by irthomasthomas on Wednesday August 07, 2024 @03:43PM (#41184653)
Looking at someone else's code, how would you know which was out of date, the code or the comment?
Re:Please do not attempt to simplify this code by Vegenoid on Wednesday August 07, 2024 @07:09PM (#41186443)
git blame will show when lines in a file were last changed, and the commit that changed them
Re:Please do not attempt to simplify this code by mook on Wednesday August 07, 2024 @11:13PM (#41187767)
Does it matter? If the comment doesn't match the code, there's a bug (in the comment or the code). Either way you need to spend time to understand the context and figure out the correct thing, not trusting either.
Re:Please do not attempt to simplify this code by mumblemumble on Saturday August 10, 2024 @08:02PM (#41213084)
Looking at the commit history is a great start. Especially if your team actually empowers people to reject code reviews when the commit messages are unclear or insufficiently detailed.