3 ms·
1) Either use a functional style like beaconstudios said where it's perfectly normal to separate the data and the processing. 2) Or if you want to keep an OO
by boubiyeah 10y ago
1) Either use a functional style like
beaconstudios said where it's perfectly normal to separate the data and the processing.
2) Or if you want to keep an OO style, use the module pattern with private functions closing over the data.