We have explored how to solve cross cutting problems using aspect oriented programming. These problems include things like caching, security, and performance measuring; problems that all require ugly copy-paste solutions, if we resort to standard OOP practices.
Spring Python's AOP module helps us to uphold the DRY and SRP principles. This reduces maintenance costs and helps us to handle future changes that are always coming.
In this chapter, we learned:
Advice
In the next chapter, we will look at easily writing SQL queries using Spring Python's DatabaseTemplate
.