I read a story when I was young: Three scholars wanted to go to Beijing to take the exam, and asked an old monk what their future prospects were. The old monk sat upright like a mountain, and finally stretched out his finger slowly. So the three scholars argued endlessly on the road, not knowing which one the old monk pointed out would be named on the yellow list. Unexpectedly, the three of them went to high school at the same time. Although they were happy, they couldn't help but doubt the old monk's authority. After the three people returned home in rich clothes, they asked the old monk. The old monk sat upright like a mountain and said slowly: One finger means that all three of them have been hit, and the three of them fainted immediately.
■ ASP programming ideas - writing eight-part essay
MS hastily launched ASP technology under the impact of java technology. If it were not for the dominance of the WinServer operating system, the crude ASP would not have been able to gain a foothold when OO was promoted for more than 20 years and C++ and JAVA were in full swing.
We can almost see the evolution of programming technology over the past few decades from ASP technology. The first ASP program most people write is to insert <%="Hello, Welcome to ASP World!"%> into the HTML character stream. The instant impulse has always supported ASP programmers from outputting web page content to outputting web page structure. The learning process of outputting web page script program, as long as you have a certain understanding of HTML syntax structure and database, and are familiar with certain two programming languages, you can quickly create several websites. If you can also click PS and FLASH, Then you are simply incredible; finally one day someone remembered something like include "string.h" in C language and began to realize that repeated code can define a function or procedure to be called repeatedly, so <include became popular on the Internet file="****.asp"> statement; complex enterprise calculations cannot bear the rough eight inherent components of ASP, but some white-bone ghosts have written DLLs to embody JAVA's iconic N-layer structure technology, so there is another A new term is called DLL trap. If the DLL you write has the same name as the existing one in the WIN system, then the day of reinstalling the machine is not far away. Simply put, ASP is a hybrid of process-oriented and object-oriented, primitive and chaotic. In the same program, you can see call sub and set rs=conn.execute("..."), what? thing!
But no matter how hard it is, the essence of ASP programming is to always face the process of organizing the HTML character flow of web pages. Although it has a bit of OO, its purpose determines that it is faced with the process. In its eyes, it is fancy. The text in the web page is the same as the picture. It is a character. Its task is to start from the <html> tag and continuously use the response.write statement to generate <head> to <body>, <div>, <input> to </ html> tag character stream, and finally constitute the client HTML page and client script program, just like the eight-part essay breaks the topic, carries the topic, and starts the speech...
■ The evolution of WEB programming ideas - let the RMB come more fiercely!
Let us imagine the process of your monthly salary from 1,000RMB to >30,000RMB.
A static web page is like a WORD document, and CSS is like a template for the WORD document. If you happen to do these things, then your position is called a web designer with a monthly salary of 1,000. At this time, you are young and ignorant;
if you start to know how to use a program to automatically generate a page, your programming ideas at this time are centered around The unfolding of a specific web page is just like the face-to-face era of the 1950s and 1960s. Then your monthly salary may be 2,000, and you are called a programmer. At this time, you are just starting out;
you have done many repetitive things and found that many pages require some public functions. For example, websites often require a public CONN file to create a database. When connecting objects, programmers will naturally encapsulate the creation process into functions for repeated calls. The programming ideas at this time are centered around public functions, just like the structured programming of the 1970s and 1980s, which has begun to abstract functions. When you are in your prime, you start to be called a software engineer, with a monthly salary of 3,500;
when you find that a website is actually composed of public content, such as the login box, it often has fixed data (username/password) , fixed appearance (user name and password input box/submit button), fixed actions (audit/login successful/login failed), from a structural perspective, completing the login box requires defining several variables and several functions, but we To further abstract, consider the dialog box as a whole. It uses data to represent its own characteristics (combinations of different user names and passwords), uses methods to represent the events it can handle, and encapsulates it to become an object. It can be represented by the following structure:
class login {user name; password; review; successful login; failed login; input interface;}
If you look at the website from the perspective of an object, you will find that everything from an input box to a page is Objects abstract the most basic content from the entire website (cannot be divided and cannot be separated), design it into an object, and then simply combine it. The programming idea at this time is to face the entire website. In fact, this is the OO idea that was popular in the 1980s and 1990s; at this time, you may already have a business card with the words "senior software engineer" printed on it, with a monthly salary of 5,000 RMB, but when you comb your hair in the morning , you will find that there are wrinkles in the corners of your eyes;
when an enterprise needs to integrate the Internet into its body, it must regard the existing desktop programs and WEB programs as a whole, and both require common components, such as this The login request may not only be a WEB program, but also a desktop program, which means that authorization components need to be used uniformly to handle such things, then the programming idea at this time is to face the component; at this time, your title has been changed to Architect, monthly salary > 10,000, but there are some white hairs on the head in the mirror;
everything already looks perfect, no! Just like our never-ending pursuit of a monthly salary, companies want more than just letting users simply browse their web pages. His associated customers have put forward new requirements for your system. For example, they hope to use their JAVA system to directly complete the transfer process, but my system is built using the ASP.NET system! In addition, you cannot let others transfer 2^N RMB easily. Thousands of associated customers let your programming ideas begin to face public services. The other party doesn't know your object or component. As far as he is concerned, transferring money is one thing. As long as he enters the username and password with his stubby fingers in his desktop program, the rest is your system's business. If you can skillfully use WEB Service to complete these things, then congratulations. As far as you are concerned, salary is just a number and often has no practical significance. Of course, it is now difficult for you to attract innocent girls with your own charm. In the words of an eighteen-year-old girl, you are already an old man, even though you are only in your early thirties.