|
|
|
|
|
by deckar01
3131 days ago
|
|
I actually have to maintain a js codebase that uses a generic “addProperty” function at its core to generate getters and setters. It is terrible to debug. Properly encapsulated class methods are much easier to read and debug. This problem has been solved for a long time. Some data doesn’t need a class, but when it does, don’t roll your own. |
|