3 ms·
> I dunno, maybe aim for something a little better than writing an exponential amount of functions for all of your interactions. You mean "polynomial". And you
by jstimpfle 8y ago
> I dunno, maybe aim for something a little better than writing an exponential amount of functions for all of your interactions.
You mean "polynomial". And you are still not acknowledging that OOP doesn't help there either. There is only one way out: You as the programmer must do the sensible thing. If you really need runtime polymorphism (which you rarely need, if you structure things correctly and keep separate things separate), then for god's sake go ahead and do it. But in my opinion it's much cleaner to do it with explicit function pointers.
> Games...
> the entire industry has mostly adopted it and released great games with it.
I think you are at least 10 to 20 years late. The games industry, especially in the AAA sector where performance is critical, seems to long have acknowledged that OOP doesn't work out.