DEV Community

Discussion on: Use fake static classes to protect your namespace (js/ts)

Collapse
 
qpwo profile image
Luke Harold Miles

My biggest issue with classes these days is actually that you have to instantiate them to use methods after you get the value from the db. So I am a bit biased by my particular use case.

You could do all this with static methods but an object works just as well and is shorter and clearly cannot be instantiated.