How can I learn to create a custom module?

How can I learn to create a custom module?
is there have demos and docs for me ?
thanks very much

can you explain what you mean by module?