DEV Community

Discussion on: On the journey to writing better comments

Collapse
 
christiangroeber profile image
Christian Gröber

Yeah I guess that's a very valid argument. But I don't think my approach really repeats what the code does, it summarizes what a code Block is supposed to do, so if we look at the example from my post and I decide I want to change how the name of the file is determined. Now I can tell, just by looking at the comments, that that will have to be in the first code block.