// The previous article, just entered the third time, then the book just watching the model, the new cow can not be afraid
// Tiger, now look at the chapter of the draft, almost dare not write
first time
It is tired to be a tiredness, making programmers (software developers) more tired. Just, there is a post in front, telling an old programmer's voice, let's take a look, you can experience the sour, work strength, working hours of our line, not to have a personal question --- Trial Who doesn't want to get love What is the moisture? Most of them have become the rainy tree of Sahara ... and, it is not better than other lines, we are forced to catch up with the speed, "programmers' experience", simply as a new allusion, the programmer industry is not respectful :). However, people are very interesting, making programmers (software developers) more interesting. Once you think about it, how the computer has deeply entered this society. Once you want to think, how rich this area is, you have a big jungle, a burst of refreshing wind, and there is an underaffinating wilderness. Waiting for people, adventurers to discover, create, you will understand that a real programmer's life will be how exciting. What's more, I haven't noticed it yet. Which aspect can be so freedom, so contempt, so adolescent! We are all future computer development, staff, in any case, our lives and computers can no longer fall, we will catch up with technology, chasing the development opportunities, taste all it brought! Just like today, on the eve of Mid-Autumn, I miss my family, I miss the girl I like (I also look at the rain :), but I still sit in front of the computer, talk about computer technology, talk about face to object! Some students may say, you have to talk about object-oriented, talk about its concept, talk about its development, why do you say so much not related? Oh, no, a real programmer, not to master the technology in the vacuum, for a person, many times, you didn't master those technologies, mostly non-IQ factors. Things are not isolated, I am deeply tied to the heart because of the above ideas, so I will pursue all the wonderful things, including object-oriented, so I will write posts here. At the computer system, you didn't hear these, or in your heart, didn't you flash? (1) I learned C, but now OO is very popular, I want to learn, where should I start? Everyone said that C is good, but some people say that Java is more promising, and I heard that C # is coming, there is VB, there is delphi, SMALLTALK, etc., ah, my god is going to break! What should I do? (2) (angry), VC is too difficult, I can't wait to take the foot, it is useful ... (small) VB useful? ... (3) I learned C , I can write some small programs, but I don't know what can be designed, or I think there is no matter what level can be written :).
I feel this problem, there is no doubt that a good OO program system should make a good division for class (Class)! But how can I not see traces? (4) Code reuse, good architecture, how can I have a pile of my class? And always need new classes? Is OO commitment to deceived? I am going crazy ... (5) How big is the impact of OO? I want to learn the database, it is an operating system, or a network, how much will I learn OO? ... I believe that most of my classmates have been flashing in such a problem; I am caught in the heart, step by step ... Today, I took them out, put it in my order, on the one hand I have a very big relationship with them, on the other hand, I am eager to let go, don't play :) Discuss. I certainly hope that I can solve them. No, this is big :), I just tried to talk about my understanding - one of course there are many ideas I come from books. If you are not right, of course, it is responsible, I don't understand it, the fried vegetables are not delicious, I have to ask my own cabinet, you can rest assured, I will not find a vegetarian to go to theory :) . Here is the chapter of the draft: 1, the order is questioned, why did I choose this bitterness? And tell a small story :). 2. Object-oriented language analysis and analysis of object-oriented concepts and technologies, in computer (advanced) language, mainly talking about C and C #, Delphi will also involve, Java will see the progress. 3. Simple object-oriented program is designed. 4, construct the data structure in the package with the object-oriented viewpoint. With a detailed example, small, such as linked list, large-scale traversal dynamic demonstration, and the design of the Saxie B_ tree. 5, the compiler uses object-oriented package practices, students don't know how to learn to learn, he does not stop, VC is good, or C Builder is good? Does Delphi have a future? Waiting for this problem. This section tries to talk about them. 6. All masters of object-oriented development concept must go back to mathematics and return to the development concept. This section talks about object-oriented development concepts and part of Windows programming. 7. Talk about the object-oriented development philosophy to talk about UML and design models. 8. Other object-oriented technologies discuss object-oriented applications such as operating systems, databases. In short, this is a very big challenge for me! The content of these posts, I will sort out in class, search for previously written examples, may also write some new examples. Therefore, the time of posting, maybe a bit long, please forgive --- I will compensate in some mathematical knowledge during the period :). I hope to be familiar with the classmates of any of these elements. If you are willing to bear your writing tasks, I will be very happy. I am doing your assistant! Really, come ... Write this, the introduction seems to be over. However, there is a very interesting question in my heart. I thought for a long time. Today, I still say it, huh, huh, don't take the number :).
It seems that there is such a thing, and the students are encountered on the road, ask what? Oh, learn C ... learn C ? Have an old story :), have you heard? Say that there have been three programmers, they are very interesting, and they are also very pleased. Going back to get off work, they often sit in a tavern, what is chatting. This day, they encountered a common acquaintance. Everyone greets the fall, acquaintances: "What are you busy with your friends?" The first programmer lit up, a brilliant laugh. These days in order to raise, he self-study C . It's good to have the foundation of C, in a few days, C will be done. C ? Object-oriented? That simple, throwing a function in struct {/ * --- * /}, then add public, add private, plus protect, is packaged ... so he proudly said: "I learned C !" Second procedure The eyes are bright, and the face is also smile. It turned out that he also learned C . Not only learning C , he also looked at the most difficult VC! After another two days of two weeks for two days, he finally completed a control application in a large stack of documents, which seems to have got a lot of news ... I didn't dare to say it very well, but it was like understanding. It is not good to master the power of the finance than the family, what I want to use, I have to give her a call ... Oh, understand, he is very accomplishment! So I also proudly said: "I also learned C ." The third programmer also looked on his eyes and smiled on his face. There is no doubt that he also learned C . Learn C for a long time, there is also a pleasure. VC is difficult to learn, but go in to be happy. More interesting is that he is always thinking about the classes you wrote, class creates your own object, the interaction between the objects, the distribution feeling, also has the characteristics of the relationship between the abstract algebra, and the system, it is coincidence, or These knowledge really contact, useful? I have to spend a good examiner ... I just want to cause this, but I saw someone staring at myself, so I smiled shallow, and said: "Clever, I am also studying C ...". The acquaintance is laughing, haha, haha, it can be seen that heroes will be slight! ! This is the story of three programmers. It is a series of Du :), everyone is knew. Even if it is the end of this introduction, good and bad, everyone commented. I am starting to prepare the first content, it may take some time. Everyone sent my post to take me :). Second article
First, introducing this is the second article of this series, it is very rush, but seeing the "water" of the computer system is so big, but has to hurry the time :). Oh, Microsoft has some CG before the day (seeing in the VC version), there is a classmate to call C # still haven't learned, Microsoft wants to drag us cragon ... Oh, you are more than Microsoft, in my opinion ... :) Just joke, but for Microsoft, we don't have to panic, I don't advocate "learning language **", the last three programmers' story, not what I want to satirism, I really think I think Learn the computer language, in fact, you have to learn the way of thinking, learn the way it brings, learning (exercise) communication ... I contact the object, is in the big one, more than the contact C. . At that time, only the knowledge of computer cultural foundation, understand DOS and Windows95. I remember that I went to find a master (fourth grade) before the holiday, I said to see Pascal, how? In fact, I have already seen it, I only think that this language and mathematics are too like :), he said that Pascal is not a future, it is best to make a good foundation, and the two after school C and VC, Da San and Teachers cooperate ... hapter Winter holiday lives in the teacher, see money, the C tutorial, look. After school, the school is studying C, you will look at C . If you ask me, what is an object? What is the benefit of object-oriented? Why do industry facing the object? I don't know, but I think that C is better than C, such as: I need a general summation function, maybe you write: int Add_int (int A, int b) {Return A b;} float add_float (float a, float b) {RETURN A B;} Double add_double (double a, double b) {RETURN A B;} We have to remember (!) distinguish between (!). But the function can be overloaded in C : int Add (int A, int b;} float add (float a, float b) {RETURN A B;} Double Add (Double A, Double B) { RETURN A B;} We naturally do not need to remember this difference.
It seems that in the later, there are more differences, C language, we learn Struct, maybe I will feel that this Dongdong is too powerful - bigger :), what object we can't get our program Come, through the structure? For example, there is a cat in the neighbor, cute, we have: struct cat {int Age; float weight; char color [20]; char name [20];}; ok, neighbor MIMI, The Tiantian, which can be used in the computer :): ... struct cat ncat; / * ncat.age = 2; ncat.met = 5.5; ncat.color = "black"; ncat.name = "mimi"; * / struct cat mcat; /*mcat.age=1; Mcat.Weight=4.5; Mcat.Color="yellow";mcat.name="tiantian";*/ ... this, above The summary function can be used, your brother is in elementary school, I want to calculate the age and body of two cats, weight, you said, do it, after the definition and initialization, call function: int Agesum = add_int Ncat.age, mcat.age); float weightsum = add_float (ncat.weight, mcat.weight); you said, this is natural, I define my data, I initialize them, then I define a large number of functional functions, I call them in the right place to handle my data, and finally I got my results, is this wrong? It can be said that there is no, this is a process-oriented programming mode, which is familiar to most of our classmates, it has many advantages. We have learned the data structure, and now learn graphics, everyone is this idea. I didn't feel particularly inconvenient. However, you have never thought about it, in addition to your own attribute, it still has a lot of your own behavior! Have you ever thought about singing when cats lonely? It may be a friend, naturally have to have the age of each other, height is heavy ... and a ratio of yourself, see if it is right? :) If so, you don't understand your cat, too, I don't know the beauty of this world.
However, what about do it? Yes, it is difficult, do you have the first one of the three programmers? The throw is very reasonable :): ... // c code struct cat {int Age; float weight; char color [20]; char name [20]; // cat (int Age = 0, float weight = 0; char color [20] = "none", // char name [20] = "none" // {/ * --- * /} int Add (int A, int b) {RETURN A B; } Float add (float a, float b) {RETURN A B;} Double Add (double a, double b) {RETURN A B;} void introduceself () {cout << "my name is" << name < <"" << endl;} // and so on ...}; look at it is a bit strange? Oh, I looked too much, change the struct to the class perhaps better, so I am now trying to describe the motivation, the intermediate process, which is the motivation, the intermediate process that is moving from the process steering, and the intermediate process is conducive to the problem. There will be a pure C version below. In this way, if ncat, McAT is defined (note that the initialization work is done, but I have been commented on it), they can come to seek the age and body weight of the partner, you can introduce yourself: McAT.Introduceself (); this example is small, not enough to explain the need to the object-oriented necessity and urgency, but can give some sense of sensibility. In fact, our real world is rich, our software development field is rich. I have tried to tell this example below. Pet is not a kind, finally one day, your family is unanimously passing, then buy a puppy. Now you have to give it a household in the computer, no way, you are a big computer system graduated, your home is an expert :)! How to do it, are you ready to write a struct dog {/ * ------ * /}; Oh, the dog and the cat are a common attribute, is it very annoying? However, the behavior of the cat is big, so you have to write a batch of data to manage the dog's data. This is okay, isn't it plus a dog? Once you are sitting down, I think of Dad retire, I want to buy a bird, my brother is crying to raise a small turtle before, and my family is opening a vote for this :), and today aunt comes over, send a few cute goldfish ... Ah, what should I do in the future? Oh, our programmer, in fact, it faces this difficulty.