What the framework is and why it should be framed. What the framework solves. How to Handle

Source: Internet
Author: User
What the framework is and why it should be framed. What the framework solves.
I just learned it. Put a simple select result on the Web page.

Just write the PHP code directly.
What to do with the frame. Whole frame A lot of code, read also do not understand. The ghost knows what's going on inside.
And it takes a lot of time to learn the framework.

I "Put a simple select result on the page" This thing, I feel the frame fart is not used.

The web only says that the framework is convenient for programmers and does the basic work. It's all a bit of crap.
Who can hold an example of what the framework actually does.



------Solution--------------------
The frame is a bit like a class library

such as processing data using ORM class to automatically handle URL dynamic static switch permission system
If you didn't, you'd have to do a lot of work.

Queryphp Framework is basically a class library

Http://code.google.com/p/queryphp/downloads/list
------Solution--------------------
Don't be intimidated by "nouns", perhaps the same "noun" will become the "magic weapon" in your hands.

What is a "frame", the framework is the application "template"
Like "stereotyped" article, whether good or bad, according to the rules to fill in is

What is an "application", an application is a code stack that accomplishes a particular task
It can also be said to be "routine."
When you're done with the one or two project, you're not going to give up the "code set" that carries a lot of your effort.
You will be in the third, fourth ... Projects to repeat your ideas, code, and of course, improvements or innovations
So, the "frame" appeared ...



------Solution--------------------
Framework, just simplifies the work of programmers.
Many of the class libraries are integrated together.
You can use the framework, and you don't need to understand how the framework does it. How it's done. You can ignore these. Of course you want to be a good programmer to understand is necessary
------Solution--------------------
To your present level, the frame is a garbage, or later also

Do not believe you directly output echo ' Hello you. '; And in the frame output character Hello You see what's the difference?

And then cycle through the 100,000 outputs to see that efficiency?

For the above two questions you can tell the result and test it, you know what the framework is and when it's used, can it really solve the problem?
------Solution--------------------
discuss

To your present level, the frame is a garbage, or later also


------Solution--------------------
discuss

Reference:

To your present level, the frame is a garbage, or later also


This bull ...

Only personal feelings.
I am using the CI framework.
The difference between use and pre-use.
1 I no longer bother with some base class libraries.
2 I know where the configuration is, where the template, how to write how the helper to libraries how to hook, if it is previously, I write these alone, often because of improper placement of files everywhere.
The 3 framework provides a lot of ...

------Solution--------------------
I personally feel that the Convention of the development framework is far more important than the role of his library class.
The process of development has many details and functions depending on the conventions in the development process, such as how to put the configuration information of the site in a separate file, how the page module is organized, how the database is organized, and so on, all of which require developers to consider and plan when writing code, and if these conventions are poorly conceived, Tend to have a big impact on post-development.
Novice development is often more casual, the development of the design of the contract is more casual, and experience is not deep, encountered problems are not many, feel that the framework of such a convention on them is a limitation, so many novice do not like to use the framework!
But in fact, most of the framework of the Convention rules are considered and proven (such as MVC), once the understanding of this, and in the development of these Conventions to plan and consider the problem, you will feel the framework is very useful, and the start and implementation are quite easy!

I generally recommend beginners to learn the framework, do not rush to understand the framework of the Library class and so on, but should first look at the framework of the various conventions! Understanding the entire architecture of the operation, in the library class will be handy!
In particular, most of the core principles of the framework are based on the MVC structure, you understand a framework, other frameworks are handy!

------Solution--------------------
discuss

If you feel the frame rubbish, please first on the salary to surpass the frame of the person.

------Solution--------------------
Explore

I personally feel that the Convention of the development framework is far more important than the role of his library class.
The process of development has many details and functions depending on the conventions in the development process, such as how to put the configuration information of the site in a separate file, how the page module is organized, how the database is organized, and so on, all of which require developers to consider and plan when writing code, and if these conventions are poorly conceived, Tend to have a big impact on post-development.
Novice development is often more casual, the development of the design of the contract is also more casual, and experience is not deep, encountered the problem is not many, feel the framework of this agreement on him ...

------Solution--------------------
discuss

I personally feel that the Convention of the development framework is far more important than the role of his library class.
The process of development has many details and functions depending on the conventions in the development process, such as how to put the configuration information of the site in a separate file, how the page module is organized, how the database is organized, and so on, all of which require developers to consider and plan when writing code, and if these conventions are poorly conceived, Tend to have a big impact on post-development.
Novice development is often more casual, the development of the design of the contract is also more casual, and experience is not deep, encountered the problem is not many, feel the framework of this agreement on him ...

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

You've developed 10 projects, and it's certain that you have a program or routine for your own development. In fact, this package of yours

is a framework. But your package is not necessarily very good. And we're usually talking about frameworks that are some of the cattle seniors

Or a set of solutions to the summary of the cattle man's predecessors. To do the procedure. Everybody knows. Experience is the most important.

So the benefits are self-evident. Personally, I think one of his biggest benefits is. A well-known framework that everyone uses.

Everyone is familiar with the structure of the framework, so that communication, or later maintenance is very convenient
------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.