Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the question states.

What is an 'advice'? More importantly, what does it even mean (semantics)? What's the etymology of 'advice' in the Spring context?

share|improve this question
I know all that. I still don't know the etymology of the word 'advice' in the Spring context. Sure, it's an action taken by an aspect at a particular join point. Sure, it intercepts around certain points in the code. That explains the how, it doesn't explain the what. I need to know why the Spring developers chose the word 'advice' for this, because it's not making any sense to me. If I can't relate to it, if I can't make relationships between those concepts in my mind, I can't understand it. So I still don't know what it etymologically means. – MrStack Aug 3 '12 at 18:40

It's an established standard term of aspect-oriented programming. From Wikipedia:

In aspect and functional programming, advice describes a class of functions which modify other functions when the latter are run; it is a certain function, method or procedure that is to be applied at a given join point of a program.


The term advice goes back to the term advising as introduced by Warren Teitelman in his PhD thesis in 1966.

share|improve this answer
Still explains too much of 'how' and 'what'. I'm looking for the 'why' in this. I have searched and I have found this: : "2) a communication, especially from a distance, containing information 3) an official notification". Some synonyms included: 'to admonish' which in turn means: "to urge to a duty; remind". In that context I could see 'to advise' as reminding another piece of code of something "Hey, you threw an Exception; you got logged". Distant communication: disconnected entity providing information (log()). – MrStack Aug 3 '12 at 20:12
Also found this: ""; 'to advise' means 'to give counsel'. The word 'counsel' itself has one of these meanings: "advice; opinion or instruction given in directing the judgment or conduct of another.". I suppose that makes sense in a way. A method (instruction) that directs the conduct (way of acting) of another method. – MrStack Aug 3 '12 at 20:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.