Music is one of the most logical things out there. It either sounds good (to you), or it doesn't. If it doesn't sound good to you, you change it until it does.
In your research, you might want to look into people who only play physical instruments, versus people who record and use DAWs to compose and put songs together on their computers. The latter is even closer to programming than just thinking about music theory, and a lot of people might be interested in learning how to do it.