News for hackers. Stuff that matters.
Re:Block Comments Are a Bad Idea by OscarTheGrinch on Wednesday October 11, 2017 @07:55AM (#15448982)
Commenting out whole sections of code incredibly useful for debugging and rapid prototyping.
Re:Block Comments Are a Bad Idea by icebraining on Wednesday October 11, 2017 @07:59AM (#15449005)
Many editors allow you to select the section and line-comment it as a whole.
Re:Block Comments Are a Bad Idea by tyingq on Wednesday October 11, 2017 @08:23AM (#15449147)
Even vim has a visual block selection mode. <ctrl-v> at the top of the block, then move down (j or down arrow) to the bottom. That marks the block. Then type the I character (insert in front of cursor), type the comment character, and press <esc>. Once you press <esc>, the inserted comment character action is repeated for the whole block.

Or non-visual block select...V% with cursor on the opening {.

Re:Block Comments Are a Bad Idea by wruza on Wednesday October 11, 2017 @12:39PM (#15451055)
Oh, my

  :vmap <M-/> :s|^|//|<CR>
  :vmap <M-\> :s|^//||<CR>
(writing from memory, may need tuning)
Re:Block Comments Are a Bad Idea by reacweb on Wednesday October 11, 2017 @08:11AM (#15449081)
Exactly. In java, block comments are used at the beginning of a class or method for javadoc generation. If I want to comment out big portions of code, I use line-comment thanks to eclipse. With this working practice, the problem does not exist. Never use block comments for commenting out big portions of code.
Re:Block Comments Are a Bad Idea by yen223 on Wednesday October 11, 2017 @09:34AM (#15449576)
Equally importantly, block commenting fucks with the editor's ability to comment/uncomment code.