I can't help but say that I have written a framework. I can only say that they are a beginner with many years of programming experience ., Framework beginners

Source: Internet
Author: User

I can't help but say that I have written a framework. I can only say that they are a beginner with many years of programming experience ., Framework beginners

Many people in the blog Park published their own framework, curious, and click to read it.

I just want to say that is really not a framework.

 

I suggest that they take a closer look at how. net is designed and how code of some third-party frameworks is written.

Take familiar. from: using System; To: using System. web; then: using System. web. UI; now: using System. web. mvc;

 

Take the Data layer framework in. net, from: using System; To: using System. Data; to: using System. Data. SqlClient;

Now: using System. Data. Entity;

 

Let's take a look at third-party frameworks, such as the commonly used IoC framework: autofac. Let's take a look at its components as follows:

Api address: https://autofac.org/apidoc/

 

People with a little programming experience will find out the rules.

 

From this structure, we can clearly understand the components of a framework, the general functions of each component, and the dependency between each component, instead of writing a piece of code, it is called a framework.

 

For an object-oriented development language such as C #, a framework is mainly used to solve the code set of specific functions in some fields. Then, we need to abstract and encapsulate the functions in this field that you want to solve.

When interfaces are used, when abstract classes are used, and when static classes are used. This plays a vital role in the Framework extension, upgrade, and developer habits.

 

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.