I have translated many numerical math programs from FORTRAN into C++ and JavaScript. The original FORTRAN source code listings are posted on the NETLIB site and have been in the public domain for 20, 30, years.
The C++ and JavaScript translations that I write are hand-coded, line-by-line, and repeatedly tested and stepped through. The conversion tool f2c is not used.
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.
Any advice?
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?