If you open the language characteristics of classic C left: functions, arrays, structures, pointers, C , all makes you surprised: class, inherit, polymorphism, template, abnormal handling ... and 98 years C standard has come since then, it has a standard template library (STL). I used to, I don't know what the standard template library is used. Yesterday I went to Lu Fei, where to go online about related articles with C STL. Finally, there is a sense of sensibility. "Theoretical comes from practice", observed the entire IT industry in this sentence, it is right. It turns out that "generic design" is a design method for "generic purpose" in order to software, components, and source code, which is a design method of "universal purpose". In the field of programming, it is possible to support this design in C is - "Template",
Inside C , integrate a set of C "Standard Template" (STL) allows programmers to use, while users can maximize software, source code multiplexing! Oh, it is no wonder that some people say: C is to give the programmer a good food, only invented STL!
I am a little understanding now. Imagine if there is no template technology, programmers compiling components, software, to a large extent, the programmer itself is compiled, and the programmer is not reflected in the maximum value. Then people will tend to use the reconfimate and better components provided by the compiler, and the programmer will get more lazy to write components.
In the end, this skill is lost. Then to rely on the components provided by the compiler to program, can this person become a programmer? People have to throw a lot of silver into the pocket of the compiler, and buy components to it. In the future, it is a compiler! This may be the father of C : "In order to give the programmer a meal!" The mystery is right! " I don't know if I am right, anyway, I think so now! --To Be Continued2002-9-15 小 原创