Interpolation in the development of the hotel management system 2 - About OO

zhaozj2021-02-16  49

After writing the "Overview of the Type of Inns Development System", I really feel that some difficulties will continue. While watching some documents in my notebook, I haven't worry about my thoughts, but I am not more troublesome. Many times ask yourself not to stick to it many times, there is no answer to this, just like this confused, I don't know where I will go. I don't know how the endings of this article. However, no matter what the result, I sincerely thank you for supporting my mid-to-my people, I sincerely bless you, and I have to go on the road of this procedure.

After reading Dove_Young's comment on the "Overview of the Type of Inn Developing System", I was really happy after all, I was paying attention to what I wrote, and the most important thing is to tell my own ideas. I really hope that every person who seriously looks forward that I have written some comments for me, even if it is a junk. I am in the primary stage for design and writing, I hope to listen to other people's opinions, and now I can only go to the left and right articles with my idea when I am now. The evaluation of my article will play a few people to meet the role of meeting. Thank you again for all support to help me.

Dove_Young's message as follows: doVE_YOUNG (2003-7-23 10:36:30)

Anyway, I think your design method is still oo. I don't quite understand that you still remember the classic entry example of the four wheels of the car? ? In short, OO is just a kind of thought. Don't go to OO at all times. :-) I said that I have a view of myself to oo. I have no truly studying for any program development. All knowledge about development comes from self-study, which caused my knowledge structure as messy and did not have much foundation, fortunately, I am learning management, good at organizational Structure of this mess (also learning is not learning, because I want to tell me how to manage I can't tell), so I can't find north in the process of program development. And I always think that the non-department birth has its strengths, which is not limited to the problem of thinking in the computer field, so maybe it will highlight the strangers, find out what other issues. Of course, the premise is that you have to learn and work hard. No longer boast, otherwise I really can't find it.

For the concept of OO, I just understand from my own point of view. I saw a lot about the example of the car, but I think almost all people can know how to define a car (classic example) as a class. But how to apply this idea to the real engineering is what we actually do. Because the car is too typical, people often use this example because it has a clear boundary, but if the car is really put In actual engineering (such as car rental), it is not necessary to be as simple as we think, we need to have four attributes of four wheels, but other properties, such as license plate numbers, mileage, model, etc. An object is only meaningful when it is placed in the environment in which it is located. We can design it. Because the system we have to develop is to run in a certain environment, only the environment we have to define is meaningful. However, in real life, we have seen the objects are multifaceted, that is, an object is in a variety of environments, such as a car in the manufacturing industry (some more), motor, loading Oil, but we will not care about these problems in the lease industry. What we need is how to abstract an object from a multi-environment, extract the characteristics of this object in the environment we need. Of course, cars in the classic example have made us have a good concept for objects, but clearly printed in everyone's mind, there are four wheels in the car. This is his feature, but there are several actual projects. Use this feature? I can't figure it out that I am using OO's view to develop this system, but I am trying to get to it. Maybe this is for Oo Oo, because I can't find how to use OO to run through my system, I can only say that I want to use OO to develop my system. It is easy to say a philosophical, but it is difficult to do.

I hope that I have not written so much, I don't make Dove_Young, it seems that many suggestions he wrote to me, I am here to definitely do what he means, I believe he is really helping me, and I think he is At present, I will support the most people, I think it is one of my friends I don't know. Thank you Dove_Young.

However, we still have to figure out the problem. How is OO. OO should actually include object-oriented programming and object-oriented analysis (there may be other), the former is the use of object-oriented languages ​​to target object-oriented design, including the use of some objects, but this is not true OOP At least I think it is. I think we have to remind yourself even during the object-oriented programming process. We use this technology to solve our problems, making our system easier to maintain, easier upgrade. I believe that many of the programmers I have no real use of object-oriented technology. At least I didn't, we just solved the problem we encountered, and didn't care about what I used. This is not a good habit. . I use an example in http://www.9cbs.net/develop/read_article.asp?id=19657 to explain one of the actual projects in the actual engineering method, but maybe many people have been used. Not that we can't think of, but didn't want to think.

As for the object-oriented design, I didn't dare to say anything, but I think I need to say my own point of view since I have seen Allen Holub's building user interfaces for Object-Oriented Systems. Allen Holub made a lot of knowledge that I have learned with me, but he said it very reasonable, at least I think so. Then let's take a look at what we have to do now, what we have to do is to complete the company's work, not to complete the exam, the difference between the two is the only answer, and the former's answer is solved Question, there is no standard answer, maybe some developers' leaders will require certain methods, I think this is a performance of restriction productivity, of course, the programmer does not re-realize 1 1 in a normal project Algorithm. We can choose any of the theories asked to solve this problem, as long as we like this person's ideological way. Of course, we also need to consider whether other people can accept this way of thinking, but if you want you to find your own way, use your own mode, the premise is that you have enough time and energy. I personally think that the design of the object is an abstract object from the problem we have to solve and can use these objects to truly solve this problem (verification process). As I mentioned earlier, this process is not as easy as we are so easy, and there is no universal pattern in this process, we need to constantly think and practice. Thereby constantly improving yourself. Maybe I will continue to write some articles about design, I hope everyone can support, pay attention.

Copyright: IDILENT website reproduced please indicate the author's other reprint, please contact the author (iDilent@yahoo.com.cn).

转载请注明原文地址:https://www.9cbs.com/read-24370.html

New Post(0)