AOP vs OOPs- AOP does not replace OOP. AOP extends OOP. The ideas and practices of OOP stay relevant. Having a good object design will probably make it easier to extend it with aspects. - Benefits of applying AOP: - The logic for each concern is now in one place, as opposed to being scattered all over the code base. - Classes are cleaner since they only contain code for their primary concern (or core functionality) and secondary concerns have been moved to aspects.AOP vs OOPsAOP : - Addresses cross cutting concerns - Code creation is clear. - Reusability of code is at a great extent. - Properly separates business logic into reusable code. - Modularization is based o Processes / Functionalities.
OOP: - Functinality is within a class. - Code modularization is into real world objects. - Implementation is forced by the developer. - Modularity is based on real world objects.
|