I always just tackle things head on, hit a roadblock, research how to get through it, and continue. But having a goal that's interesting to me is paramount.
Wrote learning doesn't do much for me, but having a goal, finding working examples of solutions or implementations of the parts of solutions helps me internalize how things actually work, and put it all together.