What is Aspect Programming?

Category: Programming

1Definition

A programming paradigm that separates cross-cutting concerns from business logic.

2Context

Logging, security, and caching are aspects that cut across many classes.

3Example

AOP can automatically log every method call without adding logging code to each method.

Common Trap

Aspects can make code harder to understand—the behavior isn't visible where it happens.

Related Terms

More Programming Terms

Look up any term instantly

Get clear definitions without the jargon

Try WhatIsIt.ai