Skip to main content
2 of 5
added 347 characters in body; edited title
kravemir
  • 1.7k
  • 13
  • 23

What are cons of usage only non-member functions and POD?

I'm creating my own game engine. I've read these articles and this question about DOD and there was written to not use member functions and classes. I also heard some criticism to this idea.

I can write it using member functions or non-member functions it would be similar. So what are benefits/cons of that approach or when project grows, does any of these approaches give clearer and better manageable code?

POD - plain old data

DOD - data oriented design

kravemir
  • 1.7k
  • 13
  • 23