By trying, also sometimes called self-teaching. If you are interested in something, you just search for information on how to do something and try until you succeed. There are many failures along the way, but in the end, typically you have something working, then next version is working even better.