Benefits of using callbacks in an online game engine
I am currently working on a small javascript project for creating an online chess game in node.js - the idea being to familiarise myself with this - see what all the hype is about.

I am just considering the pitfalls and benefits of using a callback based architecture for the whole project and specifically the game engine(or rather JS class I will make for working out a legal move - and firing the updated board back to players browsers as a JSON object(is this a good idea?)) versus more procedural code.

I'm kind of also looking for some advice on where to start.

The nesting of the logic in this manner seems a little unconventional.

Any advice/hints/tips would be awesome. 

Thank you in advance.


Benefits of using callbacks in an online game engine
===

I am currently working on a small javascript project for creating an online chess game in node.js - the idea being to familiarise myself with this - see what all the hype is about.

I am just considering the pitfalls and benefits of using a callback based architecture for the whole project and specifically the game engine(or rather JS class I will make for working out a legal move - and firing the updated board back to players browsers as a JSON object(is this a good idea?)) versus more procedural code.

I'm kind of also looking for some advice on where to start.

The nesting of the logic in this manner seems a little unconventional.

Any advice/hints/tips would be awesome. 

Thank you in advance.

