This paper aimed to investigate an effectiveness of peer-interaction strategies on web-based computer programming. Totally, thirty-three computer science students participated in the programming course. The learning achievement was compared by using an e-learning system and a peer-interaction system. Moreover, the correlations between peer-interaction functions and their students’ learning achievement, and the students’ attitudes toward the new system were examined. The results demonstrated that there is no significant difference between using traditional e-learning system and the peer-interaction system. Furthermore, peer-interaction functions had a positive relationship with their learning achievement. Ultimately, it is found that students had positive attitudes toward the peer-interaction system.