Philosophy of science, cognitive psychology, and educational theory and practice