i kind of like what my prof Lynn Loomis said once; consider a function f(x) acting on a point x. Which one do you think is the function, f or x? well usually we think f is, and sends x to a number, but if you want, you can notice that given f, plugging in x sends f to a number too. so x is a function on the set of f's! this is the dual way of looking at it. The point is you have two objects f and x, and combining them gives a number, so if you fix either one, you get a function on the other variable. i.e. ( )(x) is a function in the f variable, and f( ) is a function in the x variable. That's the basic example of duality. To make the point more visually he wrote f(x) as x(f), when x is thought of as the function, and that simple reversal blew my young mind, since I had never before considered it.
In the case where f is linear, the two points of view have similar properties: i.e. f(x+y) = f(x) + f(y), but also (f+g)(x) = f(x) + g(x),
This also illustrates the principle of double duality. i.e. if V* is the space of all linear functions on V, then if f is such a function, we have just seen that a vector x in V gives such a function on f, namely "evaluation at x". so elements of V give linear functions on V*, i.e. there is a natural map from V to linear functions on V*, i.e. to (V*)* = V**, and in finite dimensions it is even an isomorphism V ≈ V**.
That wikipedia article linked above looks pretty good to me, by the way, and the first few sentences inspired my thinking.
i am also led to remark that sometimes spaces of functions have better properties than geometric spaces they act on, e.g. it is easy to multiply two functions f and g, but not so easy to multiply two points. This gives the dual object, in the sense of the one whose elements are functions, more structure sometimes which can be very useful. In this sense cohomology is dual to homology in topology, but is stronger for m aking some proofs. I.e. there are topological spaces whose homology vector spaces are isomorphic, but whose cohomology spaces can be distinguished by their multiplicative structures, so cohomology can bne used to prove the spaces are not homeomorphic but their homology cannot do this.