O'Reilly logo

Spring Python 1.1 by Greg Lee Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AOP is a paradigm, not a library

There are many articles about AOP. Developers have discussed whether or not Python needs an AOP library.

Note

Aspect oriented programming is not just a library. It's a paradigm, just like object oriented programming and functional programming.

The key goal that AOP strives to solve is writing crosscutting solutions in places where OOP can't. OOP solves problems where the solution can be inherited. AOP is transversal whilst OOP is vertical. Either way, the goals are the same: "DRY (Don't Repeat Yourself)" and "obey the SRP". This also is described by the 1:1 Principle, which states that one requirement has one and only one manifestation in the implemented code. This is a combination of the DRY and SRP principles. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required