r/AskProgramming • • May 25 '26

Combining OOP and structs-of-arrays?

I'm used to doing things with structs-of-arrays because they're easy to implement and work with. I never really bothered to learn OOP, because it didn't seem to offer much beyond modelling code on our misguided intuitions about how the world works.

I'm currently learning about and reevaluating OOP for reasons, which makes me wonder: is OOP compatible with structs-of-arrays, or am I missing something important?

0 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/marrsd Jun 10 '26

Who told you OOP is misguided?

Please tell us so I can buy him a beer