Generally by solving a problem or figuring something out. As a student I guess I had trouble learning because I couldn't focus, things either came too fast or too slow, if too fast I was overwhelmed, if too slow I was bored and my mind wandered and I lost it... Writing allows me to organize things and present them in a way that helps me learn. After decades of teaching I've found that what has helped me learn works across the board, the razor sharp student who gets it the first time, and the student who struggles with the subject. Logic has a way of working for everyone. So much of what is out there isn't logical. It doesn't have boundaries or a scope, and just doesn't make sense. If my teachers had identified that a particular topic had these boundaries, this vocabulary and these applications it would have made more sense to me. So, when writing technical subjects I have to present them logically. I'm thinking that writing fiction won't be something I'll ever really be inspired to do... and if I do write it, it'll be really bad, or really good... I'm thinking it'll be really bad... so... stick to my technical material until others have said something encouraging about any fiction I might write.