Application of MVC pattern in the J2EE Project (1)

Source: Internet
Author: User

Application of MVC pattern in the J2EE Project (1)
Author: FavoYang Email: favoyang@yahoo.com welcome
Keywords: MVC j2ui Mode
Abstract:
This article briefly introduces the idea of MVC mode, analyzes the advantages and disadvantages of MVC mode, and finally provides several common MVC mode practices based on the MIDP platform. I believe this article is more or less helpful to any commercial program developers who use the midp platform.
Copyright:
This article is also published on www.j2medev.com and my Blog (blog.csdn.net/alikeboy). If you need to reprint it, there are three ways: 1) contact me and I agree to it; 2) I have a cooperation agreement with www.j2medev.com for reprinting articles. 3) Use Rss to aggregate my Blog. In addition, the full text must be forwarded on the Internet (including the statement in the header of the article). Do not take it out of context.
Body:
MVC pattern first recognized
The first time I realized that the MVC mode started with the "document-View" model adopted by the Microsoft MFC framework. I was excited when I first came into contact with this concept. The program framework problems that have plagued me for a long time seem to have been solved. Then I read the description of the MVC pattern in the GOF book and improved some understanding of the pattern. It should be said that the MVC Framework is the evergreen tree in the field of programming and one of the most important models in the GOF model. This classic model is widely used, and there are too many program architectures under this framework, from the early excellent Application to the popular Web. MVC has many variants due to different requirements. Understanding MVC is a required course for every program designer. It is best to be proficient in application.
I am not going to introduce this model in detail, because the details are complicated and I am not easy to make it clear. You should refer to books on models, I want to know more about any of them. So it is here. The MVC mode is short for Model-View-Controller ". The core idea of MVC is separation. Model is the abstraction of the object class; View is the representation of the Model on the screen; Controller is the coordinator. Some may find that the description of the Controller is vague. Don't worry. I will talk about it later. Probably because it is too famous, every Implementation of the MVC mode has a large source, but they are all called MVC !! It makes beginners confused. The M. V. C. Coordination between the three is messy. In fact, this is not their fault. The key to clarifying the idea is the word "separation" just mentioned ". Although MVC implementation is different, the idea is consistent.
Advantages and disadvantages of the MVC model
Advantages:
1) Change M. v. c. separation allows different experts to take charge of different modules. Generally, M is handled by experts who are familiar with databases and network transmission, and V is handed over to experts who have research on the UI. This is attractive to project managers. division of labor can improve efficiency and process the software development process according to the traditional division of responsibility. Developers can also concentrate on one field. The premise of doing so is that the interface should be clear, and the MVC separation idea provides the foundation for it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.