摘要
中文学习平台需要适应不同地域环境和不同语言环境的中文学习者,其最终的实现要求用户对其进行配置、使用和维护。设计一款代码简洁、可重用性强、易于测试的软件是最终目标。传统的基于.NET平台Web软件开发采用的三层架构中的展现层中显示页面和后台代码耦合性高、测试困难、可重用性差。因此该文采用将MVC模式引入到三层架构中的方法,将三层架构中的显示和逻辑代码彻底分离,应用到中文学习平台架构的设计和开发中。设计和开发过程中重点分析了中文学习平台的各种灵活性和重用性需求,实验证明,引入MVC设计模式的三层架构很好地满足了开发要求,使软件易测试并具有很强的可移植性。
Chinese study platform needs to adapt to Chinese learners in different environment and different languages. The software' s final implementation requires the user to configurate, use and maintain. The purpose is to design software with clean code and high reusability. Traditional Web development based on. NET platform uses three-tier architecture, in which the presentation layer has high coupling with code behind them. It is difficult to test and has poor reusability. Therefore,it introduces MVC pattern into the three-tier archi- tecture to separate the display and the logic code completely and applies these architecture to design and development of the Chinese study platform. In process, focused on analyzing a variety of flexibility and reuse requirements, experiments show that the introduction of three -tier MVC design pattern well positioned to meet the development requirements, and the final software is easy to test and has high portability.
出处
《计算机技术与发展》
2011年第11期163-166,共4页
Computer Technology and Development
基金
广州市越秀区科技计划资助项目(2006-GX-028)
关键词
MVC
三层架构
重用性
中文学习
MVC
three-tier architecture
reusability
Chinese study