News for hackers. Stuff that matters.
Re:Git log is not a changelog by ArrayBoundCheck on Saturday July 16, 2022 @11:16PM (#32124180)
Why are you searching a year or more back? Is this using git blame?
Re:Git log is not a changelog by shakna on Saturday July 16, 2022 @11:27PM (#32124228)
To explain why a certain block of code exists. When the code came into existence is rarely that important. You just want to know why.

Why does the code fence against a particular circumstance you didn't think should be possible? Why does it call out to something you think is unrelated? Those questions can be answered by a proper commit message.

Re:Git log is not a changelog by kazinator on Sunday July 17, 2022 @10:26PM (#32133877)
Sometimes, in some kinds of projects, the commit messages looks like this:

  JIRA: #1234

  Adjusted the FOOBAR parameter from 42 to 73.
To know the "why", you have to read the ticket; you will not find anything in the git log.
Re:Git log is not a changelog by erik_seaberg on Monday July 18, 2022 @12:00AM (#32134506)
Oh jeez, please do not make me run “git log” and then open a hundred tabs in an old bug tracker that may or may not still exist to figure out when a problem may have been introduced. I want code reviewers to insist on at least somewhat useful messages for us to skim at 3 AM.
Re:Git log is not a changelog by ArrayBoundCheck on Sunday July 17, 2022 @12:03AM (#32124393)
I set a breakpoint and run the test suite for that answer
Re:Git log is not a changelog by fragmede on Sunday July 17, 2022 @12:27AM (#32124459)
That answers what the code does, but not why it does what it does.
Re:Git log is not a changelog by tuwtuwtuwtuw on Sunday July 17, 2022 @01:54AM (#32124802)
So you never need to understand when or why a bug was introduced? Or you never need to understand why the current behavior as is it is?
[dead]
Re:Git log is not a changelog by dang on Sunday July 17, 2022 @05:59PM (#32131817)
Could you please stop breaking the site guidelines? You've been doing it a lot lately, unfortunately. Not just with these off-topic complaints about downvoting, but with comments like these:

https://news.ycombinator.com/item?id=32104697

https://news.ycombinator.com/item?id=32086054

https://news.ycombinator.com/item?id=32085905

https://news.ycombinator.com/item?id=32085736

We eventually ban accounts that carry on like this on HN. I don't want to ban you, so if you'd please review https://news.ycombinator.com/newsguidelines.html and stick to the rules when posting here, we'd appreciate it.

Re:Git log is not a changelog by ArrayBoundCheck on Sunday July 17, 2022 @07:17PM (#32132534)
Some of those comments were in response to people calling me a liar with upvotes on their comments and downvotes on mine. It's incredibly irritating and frustrating when it appears those accusing me of lying not suffer any consequences.

For example (one that you linked to) a person said I was wrong and his comment wasn't flagged yet when I asked him to stop replying to my comments (many of my comments in the thread weren't on his comments) mine gets flagged https://news.ycombinator.com/item?id=32086054

Re:Git log is not a changelog by dang on Sunday July 17, 2022 @07:56PM (#32132839)
It's certainly irritating and frustrating, but it doesn't make it ok to break the rules.

If you see a post that ought to have been moderated but hasn't been, the likeliest explanation is that we didn't see it. (There are far too many posts here for us to read them all.) You can help by flagging it or emailing us at [email protected].

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...

Re:Git log is not a changelog by ArrayBoundCheck on Sunday July 17, 2022 @08:27PM (#32133094)
(Mostly a rhetorical question) I'll probably never be able to do that if it's based on karma but my question is, if I stop saying things that get my comments flagged but proceed to get into negative ranking (ex: -50 or maybe -100 if I get on an unlucky roll) will I be banned by the system automatically? I assumed so which was the other reason that annoyed me
Re:Git log is not a changelog by dang on Sunday July 17, 2022 @09:11PM (#32133387)
If karma goes below a certain threshold (I think it's -12) then the account's comments get autokilled, but only for as long as the karma remains below that threshold.
Re:Git log is not a changelog by d3nj4l on Sunday July 17, 2022 @06:26AM (#32125675)
Why don’t you put that as a comment on the code?
Re:Git log is not a changelog by lexicality on Sunday July 17, 2022 @06:54AM (#32125773)
Comments are for why code is written the way it is, commits are for why the code is written in the first place.

You _could_ tag every line of code with

  // JIRA-123 The PM wants this to be blue
but if you did it would become unreadable and wouldn't be kept up to date.
Re:Git log is not a changelog by kazinator on Sunday July 17, 2022 @10:28PM (#32133894)
Because if 37 changes are done to the same 15 line function over time, the amount of comment material will dwarf the function. And most of it will pertain to historic versions of the function which are not what actually appears below the comment; a comment made 13 revisions ago makes sense for the 13-revision-old version of the function.
Re:Git log is not a changelog by d3nj4l on Monday July 18, 2022 @04:04AM (#32135783)
You just update the comment?