What is the framework, why should we use the framework, what the framework solves, and how to handle it?

Source: Internet
Author: User
What is the framework and why it should be used. what does the framework solve. I just learned it. place a simple select result on the webpage. simply write the php code. what is the framework used. the entire framework has a lot of code and does not understand it. the ghost knows what happened. it also takes a lot of time to learn about the framework. what is my & qu framework and why it should be used. what does the framework solve.
I just learned to put a simple select result on the webpage.

Simply write the php code.
What is the use of the Framework? there is a lot of code in the entire framework, and you cannot read it. the ghost knows what happened in it.
It also takes a lot of time to learn about the framework.

I "put a simple select result on the web page", and I feel that the framework is useless.

The internet only says that the framework is convenient for programmers and basic work has been done.
Who can hold an instance? what is the role of the framework.



------ Solution --------------------
The framework is a bit like a class library.

For example, when processing data, use the ORM class to automatically process the URL, dynamically and statically switch the permission system.
If not, you have to do a lot of work.

The queryphp framework is basically a class library.

Http://code.google.com/p/queryphp/downloads/list
------ Solution --------------------
Don't be scared by "Nouns". maybe the same "nouns" will become a "magic weapon" in your hands"

What is "framework" and "template" of the application"
It is like a "eight shares" article. whether it is good or bad, it should be filled in according to the rules

What is "application"? an application is a code stack that completes a specific task.
It can also be said to be a "routine"
After you complete one or two projects, you will not give up the "code set" that carries your painstaking efforts.
You will repeat your ideas and code in the third and fourth projects, including improvement or innovation.
As a result, "framework" appears ......



------ Solution --------------------
Framework simplifies the work of programmers.
Integrate many class libraries.
You can use the framework without understanding how the framework achieves this. How it works. You can ignore this. Of course, it is necessary for you to be a good programmer to understand
------ Solution --------------------
For your current level, the framework is a piece of garbage, or later

Do not believe that you directly output echo 'hello you. '; what is the difference between outputting the character "Hello you" in the framework?

What is the efficiency of loop output for 100,000 times?

You can tell the results for the above two questions and have tested them, I know what the framework is and when it will be used. can it solve the problem.
------ Solution --------------------
Discussion

For your current level, the framework is a piece of garbage, or later


------ Solution --------------------
Discussion

Reference:

For your current level, the framework is a piece of garbage, or later


This sentence is awesome...

Only personal feelings.
I use the ci framework.
The difference between post-use and pre-use.
1. I no longer bother with some basic libraries.
2. I know where the configuration is, where the template is, how to write helper and how to hook libraries. if I used to write this information separately, I often find files everywhere due to improper placement.
3. The framework provides many ......

------ Solution --------------------
I personally think the role of the development framework convention is far greater than that of its library class.
Many details and functions of the development process depend on the conventions in the development process, such as how to use a separate file to store website configuration information, how the page module is organized, and how the database is organized, these requirements need to be considered and planned by developers when writing code. if these conventions are not well considered, they will often have a great impact on later development.
Novice developers tend to be relatively casual, and the design of development conventions is also relatively casual, and experience is not deep, and there are not many problems. I feel that such a framework agreement is a limitation on them, therefore, many new users do not like the framework!
But in fact, most of the agreed rules of the framework are well-thought-out and tested (such as MVC). once you understand this, and plan and consider the problems along with these conventions in development, you will feel that the framework is incredibly useful, and it is quite easy to get started and implement!

I generally recommend that new users learn the framework. instead of eager to understand the library and classes of the framework, they should first look at the various conventions of the framework! Understanding the operation of the entire architecture makes it easy to read the database class!
In particular, the core principles of most frameworks are based on the MVC structure. if you understand a framework, other frameworks will be handy!

------ Solution --------------------
Discussion

If you think the framework is spam, you should first surpass the people who use the framework in salary.

------ Solution --------------------
Discussion

I personally think the role of the development framework convention is far greater than that of its library class.
Many details and functions of the development process depend on the conventions in the development process, such as how to use a separate file to store website configuration information, how the page module is organized, and how the database is organized, these requirements need to be considered and planned by developers when writing code. if these conventions are not well considered, they will often have a great impact on later development.
Novice developers are often casual, and the design of development conventions is also relatively casual, and experience is not deep, and there are not many problems. I think the framework's agreement is correct to him ......

------ Solution --------------------
Discussion

I personally think the role of the development framework convention is far greater than that of its library class.
Many details and functions of the development process depend on the conventions in the development process, such as how to use a separate file to store website configuration information, how the page module is organized, and how the database is organized, these requirements need to be considered and planned by developers when writing code. if these conventions are not well considered, they will often have a great impact on later development.
Novice developers are often casual, and the design of development conventions is also relatively casual, and experience is not deep, and there are not many problems. I think the framework's agreement is correct to him ......

------ Solution --------------------
The framework is a mature development model. Here is a simple example.

After you develop 10 projects, you must have a set of solutions or routines for developing your own programs. In fact, your plan

Is a framework. However, your solution may not be very good. The frameworks we usually talk about now are some cool predecessors.

Or a set of solutions summarized by the ox predecessors. Program. Everyone knows. Experience is the most important.

So the benefits are self-evident. I personally think his biggest benefit is that. A well-known framework is used by everyone.

Everyone is familiar with the structure of this framework. it is very convenient to communicate with each other or maintain it in the future.
------ Solution --------------------

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.