What is a good example of a cross-cutting concern
? The medical record example on the wikipedia page seems incomplete to me.
Specifically from this example, why would logging lead to code duplication (scattering)? (Besides simple calls such as log("....")
everywhere, which doesn't seem like a big deal).
What is the difference between a core concern
and a cross-cutting concern
?
My end goal is to get a better understanding of AOP.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…