Sometimes I get emails from people asking if they can use my program, or the source code, or parts of it in their own work.
I do not mind people using my code in their own work; I implicitly assume people will use it when I post it on a public website anyhow.
But some people ask about licensing (MIT, BSD, BSD 2/3-Clause, Apache, or some other license.)
I have no idea about licensing.
Coding is just a hobby of mine; I have never looked into licenses, how they work, what they do, which one would be most appropriate to my work, etc.
How do I decide to add a license to my work? And, if so, what factors should be considered to decide which license is appropriate to the type of work I post?