From this answer (What is a handler) I understand that a handler is:
A handler is a routine/function/method which is specialized in a certain type of data or focused on certain special tasks.
But then I'm asking myself: why not replace the word handler with the word function? What's the difference? The only difference I can tell is that functions do not need to have arguments, which means they do not need to be focused on a certain type of data. And some functions -- without arguments -- are not focused on specialized tasks.
But other than that, what is the difference between a handler and a function?
Some more background:
I find the concept of handler difficult to understand still (it could be because I'm Dutch and there is not a word for it in Dutch according to Google Translate). Checking out the definition helps a bit but not fully.