(One intermediate revision by the same user not shown)
Line 1:
{{Short description|Feature linked to many parts of a program, unrelated to program's primary function}}
{{Refimprove|date=June 2008}}
{{single source|date=June 2008}}
AnIn [[computer programming]], an '''aspect''' of a program is a [[Software feature|feature]] linked to many other parts of the program, but is not related to the program's primary function. An aspect [[Cross-cutting concern|crosscuts]] the program's core concerns, therefore violating its [[separation of concerns]] that tries to encapsulate unrelated functions. For example, [[Data logging|logging]] code can crosscut many modules, yet the aspect of logging should be separate from the functional concerns of the module it cross-cuts. Isolating such aspects as logging and [[persistence (computer science)|persistence]] from [[business logic]] is at the core of the [[aspect-oriented programming]] (AOP) [[programming paradigm|paradigm]].<ref>{{cite book|title=Aspect-Oriented Database Systems|url=https://archive.org/details/springer_10.1007-978-3-662-05851-0|author=Awais Rashid|year= 2004|publisher=Springer|isbn=3-540-00948-5}}</ref>
Aspect-orientation is not limited to programming since it is useful to identify, analyse, trace and modularise concerns through requirements elicitation, specification, and design. Aspects can be multi-dimensional by allowing both functional and non-functional behaviour to crosscut any other concerns, instead of just mapping non-functional concerns to functional requirements.{{Citation needed|date=April 2010}}