What is Aspect Oriented Programming?

Category: Programming

1Definition

A programming paradigm that separates cross-cutting concerns (like logging or security) from business logic.

2Context

Complements object-oriented programming. Popular in enterprise Java applications using frameworks like Spring.

3Example

Instead of adding logging code to every function, AOP automatically injects logging before and after method calls.

Common Trap

AOP doesn't replace OOP—it addresses problems OOP handles poorly, like scattering the same code across many classes.

Related Terms

More Programming Terms

Look up any term instantly

Get clear definitions without the jargon

Try WhatIsIt.ai