This study utilizes action research to construct and optimize intelligent programming learning environments, combining intelligent design and learning analytics technologies. It explores ways to enhance learner interactivity and adaptability, driving the intelligent evolution of the educational ecosystem. The research aims to offer a new perspective on the integration of intelligent learning environments and learning analytics, while promoting the ongoing development of educational practices.