Re:Case against OOP is understated, not overstated (2020)
by ahartmetz on Friday February 11, 2022 @08:07AM
(#30300972)
Somehow I often end up with classes containing lists or hash tables containing structs, more often than other people apparently. A technique that is IMO underused is getting creative with the key in a hash table or an ordered map - it does not have to be a primitive type, and even an integer can be divided into ranges or an integer plus a few bit-flags.
I also like to use enums, but these are widely used anyway.
It's hard to say something general because the answer is "it depends".
I also like to use enums, but these are widely used anyway.
It's hard to say something general because the answer is "it depends".