4 ms·
It's odd to see posts saying "Aspect-Oriented Programming never caught on." All game developers know Aspect-Oriented Programming, just not by that name, becaus
by yodon 3y ago
It's odd to see posts saying "Aspect-Oriented Programming never caught on."
All game developers know Aspect-Oriented Programming, just not by that name, because it's at the core of one of the most successful platforms in the industry.
Unity3d is a $14B company built in large part on Aspect-Oriented Programming and Aspect-Oriented Design.
Every time you implement a Unity Behavior in C#, you're doing Aspect-Oriented Programming in a text editor. Every time you drag a Behavior onto a Game Object in the Unity Editor, you're doing Aspect-Oriented Programming in a graphical programming environment.
- incrudible 3y agoI have never heard of anyone referring to the Unity way of doing things as AOP, and the docs do not call it AOP. In my view, if it was AOP, you could change the behavior of all Foo instances without dragging anything on them, and without changing the definition of Foo. If anything, Unity follows the composition-over-inheritance principle.