Home > Article > Backend Development > Teach you step by step how to do a keyword matching project (search engine)----On the fourteenth day, teach you how to do it----_PHP Tutorial
On the fourteenth day
Starting point:
1. Teach you step by step how to do keyword matching project (search engine) ---- Day 1
Review:
13. Teach you step by step how to do keyword matching project (search engine) ---- Day 13
After Xiao Shuai Shuai received the code from Boss Yu, he felt that it looked a bit difficult and he didn’t know what design pattern was used.
Xiao Shuaishuai is also quite smart. When Xiao Shuaishuai read the book Design Patterns, he was only interested in pictures. Coupled with Xiao Shuaishuai’s understanding of previous UML, he decided to convert the code into pictures for viewing. .
So Xiao Shuai Shuai spent a long time and finally converted Boss Yu’s code into a design drawing. The design drawing is as follows:
When Xiao Shuai Shuai completed these diagrams for the first time, he also went out of his way to understand concepts such as association, dependence, and inheritance.
Inherited
Refers to the ability of a class (called a subclass, subinterface) to inherit the functions of another class (called a parent class, parent interface) and add its own new functions. Inheritance is the difference between a class and a class Or the most common relationship between interfaces;
Dependency
It can be simply understood that one class A uses another class B, and this usage relationship is accidental, temporary, and very weak, but changes in class B will affect A;
Association
It embodies a strong dependency relationship at the semantic level between two classes, or classes and interfaces, such as me and my friends; this relationship is stronger than dependence, and there is no contingency of dependence, and the relationship is also It is not temporary, it is usually long-term, and the relationship between the two parties is generally equal, and the relationship can be one-way or two-way;
Xiao Shuaishuai took the picture and compared it with the design pattern picture. Why does it feel so like the factory pattern...
Xiao Shuaishuai found Boss Yu with the picture and said excitedly: Boss Yu, this is the class diagram I compiled from your code, and I also know that the factory pattern is used.
After hearing this, Boss Yu felt that Xiao Shuaishuai was very capable and diligent. Boss Yu was even more satisfied with him. (What would Boss Yu think if he knew that Xiao Shuaishuai was compared with pictures...)
After Boss Yu praised Xiao Shuaishuai, he said to Xiao Shuaishuai: What if I want to add old age clothes now?
Xiao Shuaishuai looked at the picture and said happily and confidently: Write a class and inherit CharListHandle to implement the exec method.
Boss Yu said with kindness: It’s better to write it, go write it and have a look!
Factory pattern: Instantiate objects and use factory methods instead of new operations. Factory pattern is divided into simple factory pattern, factory method pattern and abstract factory pattern.
Xiao Shuai Shuai is very happy and feels that success is not far away.
Xiao Shuai Shuai started writing the tasks assigned by Boss Yu.
Wangdao SEO optimization software works on search engine optimization. My personal understanding of search engine optimization is that SEO creates and uses keyword optimization to help small and medium-sized enterprises’ websites rank higher in search engine query results to obtain the most effective user clicks. . It is based on the retrieval characteristics of search engines for web pages, so that the basic elements of website construction are suitable for the retrieval principles of search engines, so that the search engines can include as many web pages as possible and rank high in the natural retrieval results of search engines, ultimately reaching the website Promotional purposes. The main work of Wangdao search engine optimization is to optimize web content by understanding how various search engines crawl Internet pages, how to index them, and how to determine their ranking of search results for a specific keyword. , a technology that makes it in line with users' browsing habits, improves search engine rankings without damaging user experience, thereby increasing website visits, and ultimately improving the website's sales or publicity capabilities. The so-called "search engine optimization for Wangdao" is to make the website more easily accepted by search engines.
360 search engine has agents in Hebei
What are the advantages of 360 promotion
Rich resources - covering many traffic entrances such as 360 navigation, 360 search, etc., with rich display locations and display forms to meet the needs of enterprises Diverse needs. Simple operation - humanized design, fast delivery process, simple and flexible operation, you only need to open an account to achieve self-service delivery. Precise positioning - through keyword matching and delivery by time period, region, and user group, we can accurately target the target user group and display more accurate promotional information for the enterprise. Intelligent and efficient - professional statistical methods and various data reports ensure the scientificity and rigor of 360 promotion; only charging is based on results, truly achieving lower investment and higher returns!
360 search Hebei area processing: 1111