people who use your programs do not necessarily tell you
This is a legitimate question, it has happened to me. I published some codes for image processing and then learned that they were being used by a private armament company for missile guidance.
We had a similar programming problem for a Capstone project. We were told it was for solar panel tracking, but it could have easily been applied to something else.