Preferences

> AOP? (since aspect-oriented programming is history)

AOP is very much alive, people that do AOP have just forgotten what the name is, and many have simply reinvented it poorly.


nivertech
AOP always felt like a hack. I used it with C++ early on, and it was a preprocessor inserting ("weaving") aspects in the function entries/exits. Mostly was useful for logging. But that can be somewhat emulated using C++ constructors/destructors.

Maybe it can be also useful for DbC (Design-by-Contract) when sets of functions/methods have common pre/post-conditions and/or invariants.

https://en.wikipedia.org/wiki/Aspect-oriented_programming#Cr...

alex_smart
Also very much alive and called that in the Java/Spring ecosystem

This item has no comments currently.