0
votes
1answer
78 views

Persisting type in Java - should I be using flags?

Is there some specific piece of advice around persist values that indicate type? Specifically I want to know if I should persist a flag/state indicating the type in persistence or not. I get the ...
1
vote
4answers
320 views

Data duplication vs Encapsulating. Which design to use?

The problem that I face is how to combine encapsulating and optimal memory use. I can't show you my code and therefore explain it on extensive (I hope) example. Let's say we need to have a database ...
0
votes
0answers
130 views

why are safearray structures seen differently in visual basic.net then c++? (interop)

I seem to see some components on the web that still use com and require a safe array of variants. It seems from research that sometimes object in vb.net does not cut it (I currently have a com library ...
8
votes
3answers
239 views

Is a single object to be preferred over multiple variables?

It was quite hard to put what I meant into a title, but it's easy to put into code. C++ Is this int offset_x = 10; int offset_y = 40; ... element.move(offset_x, offset_y); To be preferred over ...
1
vote
1answer
217 views

How to use OO for data analysis? [closed]

In which ways could object-orientation (OO) make my data analysis more efficient and let me reuse more of my code? The data analysis can be broken up into get data (from db or csv or similar) ...