Online educational resources can be used to conduct experiments that link real-world learning environments with laboratory research. The document discusses an experiment on Khan Academy that tested the effects of adding motivational messages on student math practice. Growth mindset messages led to reduced dropout rates and increased problems practiced and accuracy compared to practice-as-usual or positive messages. Simultaneous applied and basic research is possible by starting with practical goals within constraints like randomization. Future directions discussed include teaching learning strategies, a learning coach, and MOOC experiments. A MOOClets research group meets weekly to develop digital modules combining research and practice.