PHP syntax what will, write the project is also good, but many of the core code is online source code, how to have advanced upgrade it? Please advise, thank you.

Source: Internet
Author: User
PHP has been doing two or three years, is the big project, the idea has, but the core code is to find someone else to write good code, how to learn to put someone else's code into their brains, use the time directly can knock on the code?

Reply content:

This time I'll go back to the PHP documentation ( / http php.net/manual/en/ ), especially the concept is not a very confident part;
I will find a good repl ( / http psysh.org/ ) to experiment to confirm the understanding of these concepts;
I will read the source code of the framework I use, analyze its architecture, learn its code style;
I will learn more deeply about how to use OOP well;
I will learn how to write testable Code;
I will learn how to use the PHP functional function;
I'm going to be familiar with the composer ecosystem ( https:// getcomposer.org/ );
I will expand my knowledge and skills to improve my future code quality.

Modern PHP

Modern PHP (photocopy version)

PHP Objects, Patterns, and practice

PHP Cookbook

General this state, that is to do the project to find the code, authentic code farming, only work, usually do not read.
PHP related to several books to see, TCP/IP, algorithm introduction, MySQL core programming. Not to speak PHP, but all related, usually do not know what to do in the head here. Many common algorithm ideas and design ideas are also spoken.
In addition, programmers have to have a unveils of their own, read the code sometimes hard to read to learn, unless you think that the code is not important or you generally know what is going on, do not need to read.
Encounter difficulties to face, do the project can be around the past, but not busy when you want to think about how to do. PHP itself is relatively simple.
Personally, the focus is a matter of thinking, the same purpose can be achieved through different code paths. Thought down, the back of a casual use of their own feel good way to achieve it. In fact, two words: Retreat
This is the time to put down the code, think of the virtual head of the brain things ...
For example, design patterns, object-oriented, interface, abstraction, dependency injection, reflection put someone else's code into the brain is not meaningful, the key is to understand the code of thinking, various classes, interface planning. Don't get too tangled up in some specific implementation methods. No recruit wins a recruit. I think I understand their ideas first. Then take a look at how to fit into your project. Well. PHP Rookie's answer. What you need is to write your own framework ... The realization of a simple framework on the line first, read the source of others
Second, finding fault
Third, help others to improve the source code together

Many people think that online open source is a master write, certainly no problem, but in fact a lot of problems or optimization of space, if you can have their own ideas, then you also grow up the programmer to maintain their own code to write the state, every day Wu, regardless of how to write something. To maintain that feel.
  • 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.