To Phper: Untold words php and talk about my programming experience

Source: Internet
Author: User
Tags php and domain name zend zend framework lenovo advantage

There is a person, this person I have no recollection of his appearance and name, but he once affected me.

In the spring of 99, Lenovo started to do the public website, although my main job is to do the design, but in fact my interest in technology, like to find some Perl (CGI program of the year most is Perl, I learned in the school that less than thousands of C also do not know how to use the Web on the message board or chat room program to change the code and interface, used in a "happy home" of the land Slag son on the site.

At about the fall or the end of the year, this is said to be a Peking University (or possibly Tsinghua) student to help with the part-time development of the news system. I often do not do things, watching him write code. His main development mode is to connect to the server to open VI start writing. At the time I used VI in Solaris, but I only moved the cursor and the simple operation of saving, and I was not used to it. This completely use VI development still feel more novel. That was the first time I had access to PHP, when the version was 3.0, so the file name extension he wrote was all. PhP3. I'm in charge of the front desk interface and style, occasionally hitting a handwritten bit of code. This side of the writing test (fully formal online server environment, now think about how fearless), about a week, a basic news management system on the line. In this way, I also started my PHP career.

After less than six months of operation, the news management system was completely rewritten in Java by colleagues at Lenovo Institute. I also secretly learned some Java language and EJB skins during my collaboration. And this year longer than my two-year-old classmate, this lost contact, do not know what he is doing now. The problem is, I do not remember his name, there is no contact, as if we are both very introverted, do not ask each other, really a pair of strange young people.

Before leaving Lenovo, I wrote a few small projects in PHP, I still remember an ad maintenance and update system, the main functions are advertising management, image upload, and HTML text block editing. Thanks to the previous code that studied Perl, plus a few basics of C, I really liked PHP as a scripting language. You see, that year, which web script has such a rich extension and there are so easy to learn code. What database operation Ah, image generation AH-I even use its GD library to achieve a pie chart to show the results of the vote (of course, the pie chart generation algorithm is copied) ——、 text manipulation of anything, many extensions, including countless and different styles of naming, it is too easy to learn, too good to use, grammar free, And there is no strong type of constraint like Java, I really love it, how can it be good wow. The next few years are indeed a period of high popularity in PHP.

Lenovo's Web site was almost entirely Oracle, and ran on Sun's servers, which were said to have fiber-optic arrays. Many years later, I was told that because no one cared for, the domain name was registered, I remember at that time my mood is calm. It is said that the person who registered fm365.com later made a website called 265.

02 and two friends who were also Lenovo went to the Peking University attached school. The ASP environment was online at that time. That has not been used before ASP, wrote a number of modules, found that and PHP gap is large, if not COM, many ideas are difficult to achieve. Here again two words, ASP support two languages: VBScript and JScript, I really do not like VB Grammar, late writing module I try to use JScript to achieve. Also, JScript supports a Hashtable-like Dictionary object, which is handy for manipulating dictionary-class data. However, generally speaking, ASP is still too weak, if PHP is a multi-function saber, ASP can only be regarded as a rusty fruit knife.

People's thinking will change, and people are not satisfied with the status quo. The entire system is progressively upgraded to. Net in about a year. The first time I found it in C # was similar to Java, and it was the first time to try to design the system architecture with layered concept. During this period, colleagues have Horon and [DF]. Often on the way to the restaurant and the torch discussion is divided into three or four floors good.

Horon to my help and influence more, he also sent me two books "design mode" and "C++primer" (the former is often read, the latter is thicker, not how to see, a number of moving have to throw).

Frankly speaking, C # is really a good language for the director of the House, and is enough oo and perfect for scripting languages like PHP. PHP is more of a dirt chick than it is. Plus just getting in touch with the design pattern--this thing is like the torch says there's a hammer in the hand and you find nails everywhere--such a huge hammer. So I like to indulge in two things at the same time, one is wow (still in the public test looks), one is C #. I can learn from writing large scripts and countless sub processes and transitioning to object development and multi-tier architecture design, thanks to C # and. Net.

In the last project to do is a multi-user blog system, based on B2 open source transformation, and back to the embrace of PHP. Although I love the C # language from a personal point of view, I still have no confidence in the Windows platform (at that time Mono was still an experimental project).

About 04 years, perhaps by the impact of Java, the PHP community has also emerged a number of development frameworks, such as cake, Zend framework, CodeIgniter, Symfony ... But after looking at the frames and doing some testing, I was stuck in a tangle. Cake and several others are slightly better, the most perverted of which is Zend, which simulates strongly typed languages (such as Java) almost completely, and designs modules and classes completely with OO methods. Direction and complexity went straight to Java's butt.

is PHP really going to write like this? What's the difference between Java and. NET? Does this also have the advantage of PHP? I'm tired of the war of words between various forums. In order to prevent the possibility of continuing to go astray, I fled these grand wheels. But I limit the confusion, I want to write PHP, I seem to lose the direction. I look for answers in all kinds of open source projects and books. With several failed projects and the changes in the unit of work, the idea has also changed a great change. More than two years later, less attention to community trends, according to their own web development and structure of the understanding of layering, write some suitable for their own base library, no frame, with a pour also take advantage of the hand.

I also have access to and learn about other new languages and frameworks, such as Python, Django, and Ruby. I'm fascinated by the language features of Python, the first programming language I've ever seen to use clarity (or neatness) as part of a grammar rule. Maybe it's me who loves clean, maybe my thoughts have changed, and I even feel Python's philosophy of Language: "There should be one–and preferably only one–obvious to do it." (There is, and only one, a clear way to do it) is the perfect and correct idea. I looked back at the scars and pitfalls of PHP and asked if PHP was progressing too slowly and too far ahead. Why is that?

Here again to thank a classmate, a few years ago one day in the southwest of the three-ring rental, Chuang sent me a Python primer (also may be I hold in the hand has not put down the reason), when he was single, but also very innocent, we are chatting about the future of the vision and all kinds of dreams.

In a language, PHP easy to learn and use, almost no foundation and background, suitable for all kinds of people (such as by everyone scold the University of Qingdao graduates), but the quality of the code gap is larger. However, people can not always be in the primary state, people will grow up, the longer they use, the more they feel its limitations.

Some time ago to see some people say that PHP is rotten, although this is harsh and the view is very arbitrary, but he said that the PHP features include quotes from a few foreigners are the facts. Like this, and this.

My friend Lao Wang said, "language is not important, the important thing is thought", this is good. But it takes a long time to accumulate and some talent, and even a little bit of opportunity to instill in the human mind. In order to achieve high quality and controllable code, I need to write dozens of of pages of the Agreement and specifications, and also regularly review, or so the countless mines are suddenly trampled on the day. There are many factors affecting the productivity factor, and there are some factors, such as language and tools (including platform). If a language can easily achieve clear, clear and rigorous high-quality code, while the other language will take years of experience and be careful and careful to achieve the same quality requirements, which is superior to the inferior, it seems easy to judge.

In fact, I was a heavy emotional person (: D), so many years along the way with me through a ditch and a snag, today hard to say, in the mind Strange taste (: S).

Reality will give some comfort. There are a large number of people with PHP, there are a lot of websites running on it, PHP occupies a place in fact. Everything is changing, the ending is unknown.

Author: liut Original: http://liut.cc/blog/2010/04/all-about-php.html



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.