News for hackers. Stuff that matters.
Re:Useful and useless code comments by ptx on Friday June 18, 2021 @11:20AM (#27551283)
I tend to agree that sections headings are OK (although it might be better to extract the sections to separate functions) but some people take it further than that.

Today I ran into this piece of code:

  // POST
  xhr.open("POST", "...");
  // Content-Type
  xhr.setRequestHeader("Content-Type", "...");
  // SOAPAction
  xhr.setRequestHeader("SOAPAction", "...");

There are no comments on this comment yet.