DEV Community

Cover image for How to Build Your Own Blockchain in NodeJS

How to Build Your Own Blockchain in NodeJS

Simon Pfeiffer on June 24, 2021

When we're trying to learn something new, it can oftentimes be tempting to dive headfirst into documentation, articles, and conceptual explanations...
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
 
tpetrone profile image
Petrone

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

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
 
shnydercom profile image
Jonathan Schneider

Nice read! I looked at the ethereum white paper a couple of years ago and it was hard to wrap my head around the basics. This shows the essentials and with the pseudo-code I can share it with less techy people. Thanks for the article =)

Collapse
 
simoncodephere profile image
Simon Pfeiffer

thank you! really glad you enjoyed it :)

Collapse
 
akpome profile image
akpome

Great article. Better to over comment.

Collapse
 
muzammilaalpha profile image
muzammilaalpha

Nice one!

Collapse
 
pratap2210 profile image
Pratap Sharma

This was nice and simple. Well written

Collapse
 
okumujustine profile image
okumujustine

Nice article, loved it.

Collapse
 
andemosa profile image
Anderson Osayerie

Informative. would definitely try this out

Collapse
 
simoncodephere profile image
Simon Pfeiffer

happy to hear that!

Collapse
 
prabhukadode profile image
Prabhu

Nice

Collapse
 
fcolombo profile image
Freddy Colombo

Muy buen post,
Es simple, pero explica muy bien el concepto de Blockchain.
Como acotación, el source-code para block.js está errado.
Ambos snippet muestran el source-code de blockchain.js.

En base a su source-code, aquí le dejo mí implementación en GitHub:
github.com/f-colombo/build-own-blo...

Saludos.

Collapse
 
ashkanmohammadi profile image
Amohammadi2

Thanks for the nice article. It was easy to understand for beginners like me.