Comment by lloeki
2 days ago
> 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.
2 days ago
> 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.
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...
Also very much alive and called that in the Java/Spring ecosystem