PHP and my programming experiences

Source: Internet
Author: User
Tags zend framework
There is a person who does not remember his appearance and name, but he has influenced me. In the spring of 99, Lenovo began to work on public websites. Although I mainly work on design, I am actually interested in technology, I like to find some Perl by myself (most of the CGI programs in that year were Perl, and I still don't know how to use the less than a thousand lines of c I learned at school on the Web.

There is a person who does not remember his appearance and name, but he has influenced me. In the spring of 99, Lenovo began to work on public websites. Although I mainly work on design, I am actually interested in technology, I like to find some Perl by myself (most of the CGI programs in that year were Perl, and I still don't know how to use the less than a thousand lines of c I learned at school on the Web.

There is a person who does not remember his appearance and name, but he has influenced me. In the spring of 99, Lenovo began to work on public websites. Although I mainly work on design, I am actually interested in technology, I like to find some Perl myself (most of the CGI programs in that year were Perl, and I still don't know how to use the less than a thousand lines of c I learned at school) modify the code and interface of the message board or chat room program, and use it on a website called "happy home.

In the fall or the end of the year, it is said that Peking University (or Tsinghua) students helped develop news systems part-time. I often don't want to do anything. I watched him write code. His main development method is to connect to the server and open Vi to start writing. At that time, although I used VI in Solaris, I still only moved the cursor and saved simple operations, and I was not used to it. In this way, it is quite novel to use VI for development.

That was my first time in contact with PHP. At that time, the version was 3.0, so the file extension he wrote was. php3. I am responsible for the front-end interface and style, and occasionally write some code. In this way, it takes about a week to write and test (completely in the online server environment, and now it's really fearless), and a basic news management system will be launched. In this way, I started my PHP career.

Less than half a year after the news management system was run, it was completely rewritten by colleagues from Lenovo Research Institute using Java. I also learned a little bit about Java and EJB during my cooperation. This one or two-year-old student lost contact and did not know what he was doing. The problem is that I really don't remember his name or contact information. It seems that we are both very introverted and don't ask each other. It's really a strange young man.

Before leaving Lenovo, I used PHP to write a few small projects. Now I still remember an advertisement maintenance and updating system, the main functions are advertising management, image uploading, and html text block editing. Since I have studied Perl code before and added some C basics, I really love PHP.

You can see which Web script has such a wide range of extensions and easy-to-learn code in that year. What database operations and Image Generation? I even used its GD library to implement a pie chart to display the voting results (of course, the pie chart generation algorithm is copied) -- text operations and so on. There are a lot of extensions, including countless names with different styles. It is really easy to learn, easy to use, and free to syntax, there are no strong type constraints like Java. I really love it, but how can this be awesome. Later Years, it was indeed a period of high-speed popularization of PHP.

The website that Lenovo used in the Past uses almost all Oracle databases and runs on Sun servers. It is said that there are also optical fiber arrays. After many years, I was told that my domain name was retained because I was not taken care of. I remember my mood was calm. It is said that the person who snatched FM365.com made a website named 265.

02 and two friends of the same association went to the affiliated High School of Peking University. At that time, the ASP environment was online. I haven't used ASP before. I wrote some modules and found that there is a big gap with PHP. If I don't use Com, many ideas are difficult to implement. Here I would like to say that ASP supports two languages: VBScript and JScript. I really don't like the VB syntax. I try to use JScript to implement the modules I write later. In addition, JScript supports a Dictionary object similar to Hashtable, which makes it easy to operate Dictionary data. However, ASP is still too weak. If PHP uses a multi-function military knife, ASP can only be regarded as a rusty fruit knife.

People's thoughts will change, and they will never be satisfied with the status quo. Gradually upgrade the entire system to. Net in about one year. The first time C # was found to be very similar to Java, and it was also the first time to try to design the system architecture with the concept of hierarchy. During this period, his colleagues included Huo Ju and Dai Fei. On the way to the restaurant, I often discuss with torch whether it is better to be divided into three layers or better than four layers.

Huo Ju has more help and influence on me. He also sent me two books, design patterns and C ++ Primer, the latter is thick. I don't think much about it. I want to throw it when I move the house several times ).

Frankly speaking, C # Is a good language for collecting the expertise of many people. Compared with PHP, C # is enough for OO.And perfect enough. Compared with PHP, PHP is really cool. Plus, just getting in touch with the design pattern-something like a hammer in the hand of the torch will find a nail everywhere-such a super big hammer. So during that time, I was addicted to two things at the same time. One was WoW (still in Public Beta) and the other was C #. I can learn from writing large scripts and countless sub-processes and transition to object development and multi-layer architecture design. Thanks to C # And. Net.

The last project in the online school is a multi-user Blog system. The Open Source Transformation based on b2 has returned to the embrace of PHP. Although I personally like the C # language very much, I still have no confidence in the Windows platform (Mono was a lab project at that time ).

In about 04 years, it may be affected by Java. Some development frameworks, such as CakePHP, Zend Framework, CodeIgniter, and Symfony, also appeared in the PHP community .... However, after reading these frameworks and doing some tests, I got stuck. Cake and other digits are even better. Zend is the most abnormal. It almost completely simulates strong-type languages (such as Java) and completely designs modules and classes using OO methods. Direction and complexity go straight to the Java ass.

Is PHP really written like this? What is the difference between this and Java and. Net? Is there any advantage of PHP? I am bored with the verbal battles between various forums. To prevent the possibility of continuing to go astray, I 've escaped from these luxury giant wheels. But I am confused. How can I write PHP? I seem to have lost my way. I search for answers in various open-source projects and books. With the change of failed projects and work units, the idea has also changed significantly. More than two years later, I paid less attention to community trends and wrote some basic libraries suitable for self-use based on my understanding of Web development and structural hierarchy, it's easy to use.

I also have access to and learn other new languages and frameworks, such as Python, Django, and Ruby. I am fascinated by the Language Features of Python, which is the first one I have ever seen to make clarity (or cleanliness) part of the syntax rules.ProgrammingLanguage.

Maybe I love cleanliness myself, maybe my thoughts have changed. I even think that Python's linguistics: "thereshocould be one-and preferably only one-obvious way to doit. "(there is only one clear implementation method), which is a perfect and correct concept. Looking back at the scars and traps of PHP, I can't help but ask: is PHP too slow to make progress and is too hard to get ahead. Why?

I would like to thank another student who rented a house in a Third Ring Road in Southwest China a few years ago, hao peiqiang gave me a Python entry (or maybe the reason why I keep it in my hand). At that time, he was still single and pure, everyone is chatting about future vision and various dreams.

In a language, PHP is easy to learn and use, and almost does not need any background. It is suitable for all kinds of people (such as graduates of Peking University Qingdao who are scolded by everyone ), the difference in code quality is large. However, it is impossible for a person to be in the initial state forever. A person will grow up. The longer he uses it, the more he can feel its limitations.

Some time ago, I saw some people say that PHP is very bad. Although this is hard to hear and his opinion is very arbitrary, it is true that the PHP features mentioned in his article include reference to the opinions of several foreigners. For example, there is also this.

My friend said, "language is not important. It is important to think.

But how difficult is it to get ideas? It takes some time to accumulate and add some talents, and even a little chance to instill them into people's minds. To implement high-quality and controllable code, I need to write dozens of pages of conventions and specifications, and Review them regularly. Otherwise, I will wait until countless mines are suddenly trampled on.

There are many factors that affect productivity, such as human factors and language and tools (including platforms. If one language can easily implement clear, clear, and rigorous high-quality code, and the other language requires years of experience and careful attention to achieve the same quality requirements, it is difficult to judge the advantages and disadvantages.

In fact, I am a sentimental person (: D). After so many years of traveling along the way, I have gone through a gap and a hurdle. Today I am trying to say that I am not a taste of it (: S ).

The reality is comforting. A large number of people use PHP, and a large number of websites run on it. PHP has a place in practice. The outcome is unknown as everything is changing.

Update:

The development speed depends on the specific business needs. With a large number of open-source projects (regardless of their quality), PHP can easily deploy a small website suitable for multiple types in a short period of time, it is faster than Java.

However, according to the previous description, you know what I want to say. You need to have at least one person who has a lot of experience to control the architecture and design. Otherwise, as the number of users and visits increases, there will be technical bottlenecks. These are examples of practical lessons.

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.