Thursday 26 October 2017

Node.js development: functions vs classes

So, the title is straightforward: since classes have been supported in node.js for quite some time now, how have you been adopting them? Do you still rely on functions, or do you include classes? I've been working on a project lately and found myself split between classes and functions. Some parts of the app I did with just functions, other parts I did with modules and it got me thinking, is there a rule? I suppose that pretty much everything you can do with a class you can do with a module / functions. What are your practices, recommendations?

Submitted October 26, 2017 at 05:49PM by JavascriptFanboy

No comments:

Post a Comment