News for hackers. Stuff that matters.
Re:Why can't you guys comment your fucking code? by copperx on Monday July 03, 2017 @11:04PM (#14693227)
Strangely, I really like to comment my code, although it frustrates me that even the best IDEs have zero support for keeping comments up to date with the code.

Changing, say, a function should prompt the IDE to somehow "tag" the associated comment so that you remember to check its accuracy, at the bare minimum. Other nice-to-haves would be having references to code, e.g., if you talk about variable x in your comment and then rename it, the comment reference should be updated.

You can feel the disdain for code commenting in the industry by looking at the anemic tool support for comments.

Re:Why can't you guys comment your fucking code? by oldandtired on Tuesday July 04, 2017 @02:52AM (#14694039)
Agreed. One of my projects is about updating a specific code editor to manage comments as a "meta-data" of the code itself. Otherwise, maintaining comments becomes a nightmare in the maintenance regime.
Re:Why can't you guys comment your fucking code? by tonyedgecombe on Tuesday July 04, 2017 @04:18AM (#14694369)
I'm think Reshaper does some of that although I'm not absolutely sure as I don't write comments.