Saturday 20 October 2018

Performance benefits of using classes?

I see a lot of code using classes for their controllers, DAL, etc.Is there a performance boost to creating classes and instantiating them where you need them opposed to making a bunch of functions that you export and import individually?class UserController { doSomething() { } doSomethingElse() { } } vsexport function doSomething() { } export function doSomethingElse() { }

Submitted October 20, 2018 at 09:33PM by jsscrub

No comments:

Post a Comment