Chatting design pattern and class

zhaozj2021-02-08  232

The following is purely chat, but the benevolent sees benevolence, the wise man is wisdom, I hope to give you a thinking.

2001-04-08 22:38:06 Meng Lang must change the database, our first must guarantee the database is the calculation requirements of the program. Otherwise, the error cannot be judged.

2001-04-08 22:42:01 Leeseon, first this way, I suggest that semi-finished products will be made alone into a class, to encapsulate its logic.

2001-04-08 22:41:27 Meng Mao is likely to be in the process, it is not divided into the semi-finished product or the material, the operation is consistent, and the semi-finished products are listed separately, you can consider

2001-04-08 22:45:22 Leeseon is born from the same interface class, using the same interface to achieve, I want to be better

2001-04-08 22:43:40 Meng Mang, you still remember, the earliest type of integrated materials

2001-04-08 22:47:13 Leeseon remember, I want to use the same way, but I only have different interfaces.

2001-04-08 22:44:54 Menglang

2001-04-08 22:50:20 Leeseon is watching a new article, but it is not necessary if you will lose the example: because that kind of situation should be you asked for the base class first, then only ask others The implementation of the subclass is good, this situation should be good when designing, rather than letting others to design it. This is likely to be better reuse

2001-04-08 22:50:07 Meng Lang this way is that if the drawback of the derived approach is: Must understand his parent class, or the parent class must be open

2001-04-08 22:53:44 Leeseon Nothing, most from a pure virtual class

2001-04-08 22:52:36 Meng Lang I appreciate the benefits of the class, but I feel a bit fear on the complexity of the class with multiple layers.

2001-04-08 22:56:26 Leeseon is okay, it is relatively deep in the MFC, but it is still the most stable class library.

2001-04-08 22:55:47 Meng Mon, I think I am difficult to write such a simple and practical class. This is what the strength of the big company can do. C Builder may have a small point, This is also inexpensive in the derived library.

2001-04-08 23:01:27 Leese, but we don't write class libraries, and the level is not deep, I think it is still

2001-04-08 23:02:10 Leese, and later use STL more convenient

2001-04-08 23:02:20 Meng Lang STL is the essence summed up. We should use, and it is also the standard class library of C .

2001-04-08 22:58:58 Meng Lang COM has a lot of differences. Some people say VB is because it is completely COM technology, so supporting real class technology is very poor.

2001-04-08 23:01:23 Meng Lang can do it for a variety of different applications and different types. It is impossible to estimate. For example, our budget class. After timely calculation, class derived You must pay attention to what work has been done. If there are some special processing in the middle, you must understand and process in subclasses. Inheritance will inherit complexity. If you use mode programming ideas, inherit will be better

2001-04-08 23:04:40 LeeseonCom is mainly used to use aggregation, but aggregation also needs class to support, just make the granularity of the class, there is no big class.

2001-04-08 23:05:52 Meng Lang unden it, fully adopted the inheritance mechanism, which is much better for application extensions. This is relative, if there is enough flexibility, there must be a lot of complexity increases

2001-04-08 23:09:53 Leeseon class and aggregation and delegation are very good, but can not use any one, it is best to use it in the place where it is.

2001-04-08 23:10:53 Menglang, according to your specific object of the nature. If the budget, I use the interface function to do, the difficulty will be large. However, the design of the dynamic form is outside This interface can be used. The external design will not be limited. It starts not to consider how to go and form a table design link, as well as what data or class form. Because of this application Very norm, in this case, I would rather use the function interface to be more fast. 2001-04-08 23:11:55 Leeseon you put on the language on the homepage, you can't open the project

2001-04-08 23:14:44 Leese, there are some problems on the interface, I still don't put it on top of it, or adjust it to the entire program and then put it. Otherwise I am afraid. The enthusiasm of others

2001-04-08 23:11:58 Meng Lang is the problem, the path, etc. I have changed, but I haven't been uploaded yet.

2001-04-08 23:13:12 Meng Gong will. But it has been a long time, I have to put it up. Fortunately, now I am not much. I put it just a signal role.

2001-04-08 23:16:25 Leeseon's best way to design the structure and algorithm with the container as three modes, this design mode has corresponding description

2001-04-08 23:17:46 Menglang structure algorithm container is the basic model of the program. We just have just been intervened in container mode. Use these three combinations to use very good ideas. However, they should have very good A good object conteyl, this is a baseline

2001-04-08 23:22:14 Leeseonstl is the best example, it has already solved the connection problem of the three mode of this, is Visiter!

2001-04-08 23:20:59 Meng Lang talking by the visitor in the album book, including the visitor privileges, etc., I don't know if it is Visitor.

2001-04-08 23:24:08 Leese is it

2001-04-08 23:25:38 Leeseon, I am now thinking that "design model" can be able to translate it for some years. Now everyone's software engineering level should be much better than now.

2001-04-08 23:23:46 Meng Mon, you found no, these models actually do only a generic mode management. In our editor, the idea is the same, is a general editing mode management As for the data, an external additional hook. However, the design pattern tells the methodology of a generalized basement mode for all program applications.

2001-04-08 23:25:38 Meng Mong, the design pattern is also the actual programming in the world. The reason is very simple: the scale is getting bigger and bigger, the repetitive work is very obviously.

2001-04-08 23:28:57 Leeseon is not just, I think it is more like a methodology in STL. If you don't look at it, I can't understand it.

2001-04-08 23:29:51 Meng Lang, I refer to the majority of programmers, including the majority of companies.

2001-04-08 23:33:14 Leeseon maybe!

2001-04-08 23:31:41 Meng Lang has been investigated in the network forum, just like software engineering, knowing very well, but give up or not adopted in the application or in the middle.

2001-04-08 23:35:45 Leeseon I think it may be a management problem, these modes, still very practical, and many of us also discover and do, such as Command, there are several other modes.

2001-04-08 23:34:00 Meng Mao, the price of our payment generally is unacceptable. This is the reason

2001-04-08 23:38:26 Leeseon I feel that it will gradually be gradually incorporated in the past, and the most needed or the need for the problematic problem

2001-04-08 23:39:41 Meng Mon, I have been thinking about this question: When we really abstract the most reuseful mode program (I can use it if something can be used), these may find these The mode is very small and very simple module. When we use him, we find that we will find the mode module that is best suited at this moment. So it is concluded that the best reuse is three grammar structures. Statement. Stock, for, IF2001-04-08 23:43:03 Leeseon huh, classic! However, it may be 0101010

2001-04-08 23:41:04 Meng Lang we still do it! Go home is better than this. Huh,

2001-04-08 23:45:49 Leeseon can be used to plant the model after the future.

2001-04-08 23:44:18 Meng, a new concept of the software world today: Mode field

2001-04-08 23:47:16 Leeseon huh

2001-04-08 23:47:21 Meng Mang you can imagine, which mode can be used in the budget? We can only stand on the hill to see: a line, a piece of square rural rice field This is the place where we want to use. Otherwise, every dirt must be moderate to squarely, and it is not easy to make

2001-04-08 23:51:29 Leeseon did not think about it, but the three patterns I just thought were also suddenly thought of yesterday.

2001-04-08 23:52:44 Meng Mang we can summarize the program requirements in the abstract budget to design the model. But the biggest shortage of model is to go to the set, and there is a coffin to choose the death. But that < Design mode> It is indeed the essence summed up, and the programmer has to look at it, at least should open, know how many common things in the real world, and can be designed.

2001-04-08 23:56:09 Leeseon should

2001-04-08 23:57:28 Meng Lang is good, the model has turned into the main topic today. About the model, just like programming, there is a scrutiny. However, I have intended to finish this after this. Start writing some mode programs that think it is very useful, finally give a class library. I don't know if Lao Yang still has this plan? Ask him ................. ...................

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

New Post(0)