DEV Community

Discussion on: How to Build Your Own Blockchain in NodeJS

Collapse
 
salarc123 profile image
SalarC123

Nice article, but for your code snippets, I think you should limit the comments to only what is necessary. You don’t need a comment to explain “require(‘crypto’)” or “class Block” because those are self explanatory.

Collapse
 
simoncodephere profile image
Simon Pfeiffer

Thanks for the feedback! :)

Collapse
 
klajdi44 profile image
Klajdi Ajdini

Actually i would argue that the comments are really helpful for someone that is a beginner.

Thread Thread
 
salarc123 profile image
SalarC123

Yes a lot of the comments are really helpful, but the author used pretty good variable names so some lines don’t need to be explained because the code already explains itself

Collapse
 
tpetrone profile image
Petrone

Very peaky comment. It does not add up anything to learners, different from the maybe over explanatory comments