Table of Contents
The programming ideas involved in PHP development projects are: process-oriented programming implementation,Object-oriented" >ideasThe programming ideas involved in PHP development projects are: process-oriented programming implementation,Object-oriented
MVC, single entry, regular expression, etc." >2: MVC, single entry, regular expression, etc.
3: In-depth knowledge of the database
cachingprocessing" >4: Various cachingprocessing
5: The server
6: Load balancing, website pressure resistance, etc.
7: In-depth study of data structures
8: Need to learn the underlying language
9: Strengthen learning at the application level
Home Backend Development PHP Tutorial How to solve the bottleneck of in-depth learning of PHP

How to solve the bottleneck of in-depth learning of PHP

Apr 04, 2017 pm 03:13 PM
php bottleneck

PHP gives learners the feeling that it is easy when they first learn, but after 2-3 years of learning, they deeply feel that they have encountered The bottleneck is difficult to penetrate, and it would be a pity to give up. The feeling of "it's worthless, it's a pity to abandon it" is very appropriate. Backing off; after learning, there seems to be no progress;
if

...

else, loop You also know these, and you can even remember some things that others cannot understand Function, but when the project comes, I feel confused, even though I have a lot of words to say, I actually have no idea what to do when I encounter any problem... ...At this time, first of all, congratulations on your entry into the industry, and secondly, congratulations on having encountered the bottleneck of learning PHP in depth

But once you pass this level, your level of understanding will be even higher. One floor. But this level is not easy to pass. Because what hinders you is not PHP things, but many non-PHP things...

How to solve this bottleneck? Learning PHP?

1: In-depth understanding of

programming

ideasThe programming ideas involved in PHP development projects are: process-oriented programming implementation,Object-oriented

Programming implementation, aspect-oriented programming ideas;

is not just familiarity, but proficiency;

PHP starts with

variables

, branch statements, Loop statements, and then functions, so this is the programming idea you will encounter at the beginning: process-oriented programming idea. It is a processing idea that uses functions as units and encapsulates the code that causes duplication into functions. This kind of thinking can also be developed directly when developing projects. However, you will encounter a lot of repeated codes and you will create a lot of files. Therefore, the biggest feature of developing projects using only process-oriented programming ideas is: in the project Too many files... Too many files will make it difficult to control the distribution of folders, which is also not conducive to project maintenance and upgrades. It is difficult to build a large project, which is usually the same as a corporate website

#. ##You should reduce the number of files, then you need new ideas: object-oriented programming ideas. Its main features are: encapsulation, abstraction, inheritance, polymorphism,

interface

. ##Don’t memorize these things by rote, but fully understand them with practical principles, and at least be able to convince yourself. For example, let me ask you, why are inheritance and why are they based on polymorphism? Why do they look like that? This is the key point, and the difficulty is that you seem to have read it all, and you have read a lot of books, but when you use it, you seem to be confused. It's irrelevant. Because you haven't fully understood it. This will at least hinder your in-depth understanding of PHP's framework

. For example, many people use TP to develop projects and use Laravel to develop projects, but have you studied TP in depth? Source code? Laravel source code? What is Composer? Why is this so?

At this time, you should be at the stage of "reading a thin book but a thick one". You should fully search for the answers to these questions, ask more why, and then find the answers. In the process of finding the answers, you Unknowingly, the level has been improved...

Using object-oriented thinking to develop projects can greatly reduce the number of files, making your project compact, streamlined, but powerful. Good scalability. However, when your project gets larger and larger, you will find that there is still a lot of duplicate code. They are reflected in the inevitable duplication between files. This is not an object-oriented flaw, but a problem with the project itself. Object-oriented is just not powerful enough to solve these problems (even less process-oriented). At this time you have to upgrade your new thinking: aspect-oriented programming thinking. Maybe this idea seems vague to you. But if I say "set the data acquisition tag in the template", you should understand it.

Form:

5"

ord

er="id asc" limit="10">

《{$title}》- --{$author}

{$add_time

}

This is a method often used to obtain dynamic data when setting templates, but you can. Explain why you do this? And why it looks like this?

In fact, if you can answer these questions, you have entered the field of aspect-oriented programming thinking, because you need to deeply understand the template parsing engine. ....It is brought about by large projects but cannot be solved by object-oriented code redundancy. Only in this way can your project become bigger and bigger...

2: MVC, single entry, regular expression, etc.

MVC is not about memorizing these words, but a deep understanding of them. Understand why there are Controllers, Model, Views, and what their respective contents should be...

Regular expressions also require proficiency.

3: In-depth knowledge of the database

It’s time to start learning about database sub-databases, sub-tables, partitions, and database clusters.

Database optimization, such as: Index optimization, SQL statement optimization, etc.

4: Various cachingprocessing

such as: file cache, database cache, memory cache, etc.

These will involve many things, such as: How to write and operate configuration files, database cache tables, cache fields, etc. The introduction of NoSQL, such as: Memcache,Redis,Mongodb,....

5: The server

is mainlyLinux Server, there is a lot of content on it, and the first ones brought out are web monitoring programs such as Apache and Nginx.

There are also common programs such as ssh, ftp, etc.

Deeper, there is shell programming, and using shell programming to develop a server management system, such as: AMP, WDCP,.... These things may seem irrelevant to you who work in PHP, but if your website Can't access it, do you know what the problem is? So it's not irrelevant, but it's very relevant, so don't keep that narrow sense of limitations anymore.

6: Load balancing, website pressure resistance, etc.

These are necessary contents for building a project with development potential. How much do you understand? Related to PHP.

7: In-depth study of data structures

I believe you will listen when you learn data structures when you are a freshman. It talks about pointers, linked lists, queues, stacks, etc. It's a bit confusing, and you won't be able to use it very much. But at this stage you can study in depth, which will help you understand the principles of Apache, for example, and of course make it easier for you to use Apache. This actually helps you solve the bottleneck problem invisibly.

8: Need to learn the underlying language

Mainly: C language, C++; it can be seen that C language and C++ are very important basic languages. The PHP interpreter is written in C/C++, and the browser is also written by them. This is of course linked to your PHP application.

9: Strengthen learning at the application level

Such as: WeChat development, the use of various third-party plug-ins, such as: jquery,Layer,bootstrap,Uploadify. You can even write the necessary plug-ins yourself.

Don’t just limit yourself to PHP, but start working on the front-end, because front-end things can give you a deeper understanding of PHP. For example: extracting articles from the homepage of the website, if the numbers are 1, 2, 3, 4, 5, you can solve it from the front end, or you can solve it from PHP... What if you require more perverted information display? It is very likely that it is suitable to solve it on the PHP side or even on the database side...

Expanding your knowledge will help you learn PHP in depth...

In short , when you have a certain foundation in learning PHP, you will no longer easily say that PHP is easy, very simple, and you can learn it in two weeks and so on. You may even feel that you are getting smaller and smaller, and you still need to learn a lot of things. This is okay, at least you have really entered this industry, but you will increasingly encounter the bottleneck of learning PHP in depth. What's holding you back is a lot of non-PHP stuff. You have to use an open-minded mind to explore what you encounter. Don't be picky or picky, despise this or that, but complain all day long...

Just stick to it and solve each new problem. Why, your bottleneck will pass one day, and then you will truly have learned something, and become a master who is well-rounded and has the ability to comprehensively solve problems.

The above is the detailed content of How to solve the bottleneck of in-depth learning of PHP. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

7 PHP Functions I Regret I Didn't Know Before 7 PHP Functions I Regret I Didn't Know Before Nov 13, 2024 am 09:42 AM

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

See all articles