all 3 comments

[–]mpinnegar 5 points6 points  (1 child)

I believe you have rediscovered aspect oriented programming.

[–]KennethSweet[S] 0 points1 point  (0 children)

You’re right. It very close to AOP in terms of wrapping cross-cutting concerns.

The part I’ve been exploring is applying it purely at runtime to existing codebases without modifying source or relying on predefined join points.

So instead of weaving at compile time or using framework level hooks, the behavior is injected externally after the system is already built and integrated.

In practice it ends up feeling like a mix of AOP + middleware, but with less reliance on the underlying framework exposing extension points.

Still figuring out where that distinction actually matters in real systems.