[Technical Discussion] [full modeling] How many methods should a class have? Split as big as possible?

Source: Internet
Author: User

[Theme] a tech engineer 21:21:47

Hui Dong, generally, if there are more than one class method, I think it is too complicated to split it?

[Active] 21:23:53

From the perspective of requirements and code, there are only a few ideas about how many classes need to be split.

Generally, if a use case needs to be described in a 4-layer or above case in the demand stage, it needs to be split. At this time, at least two classes are required for implementation.

[Theme] a tech engineer 21:24:49

This Class header file cited 32

[Active] 21:25:51

This cannot be too large.

You may need to look at it from more perspectives, such as performance, processing speed, whether the cycle body in the middle and the call relationship are clear.

Simply by the number of methods, it is really hard to say that we must split them up. Splitting the categories is more reasonable to think about from the perspective of demand.

In this way, the logical relationship is clearer and the implementation level of the Code is easier to grasp.

[Theme] a tech engineer 21:27:48

In the tutorial, there are only three types of three elimination games. I used about 50 categories to implement similar functions.

[Active] 21:28:32

In this regard, it depends on the requirements and architecture considerations. The number of classes does not necessarily indicate complexity or rationality.

This simple definition is not appropriate.

[Theme] a tech engineer 21:28:57

Hmm

I write it myself.

[Active] 21:29:42

It is recommended that you think about the reverse engineering of UML, and then think about the relationship between classes, or you can find the answer.

[Theme] a tech engineer 21:30:12

In part

UML diagram

I plan to take a week to sort out the chart after the function is completed.

Reusable parts are extracted.

Use it for other games in the future

[Active] 21:43:40

Well.

[Active] 21:44:56

Using a collaboration diagram, you can see the relationships between classes and whether there is any relationship with redundancy.

A time sequence diagram can only represent time sequence management. It is of great use when a system is built in the initial stage. However, when analysis is reworked, collaboration diagrams are of the greatest use.

[Theme] a tech engineer 22:06:45

I have not drawn any collaboration diagrams. Now I am drawing class diagrams.

[Active] 22:50:11

Let's take a look at the relationship between class charts, that is, the big use of collaboration graphs.

Shows the behavior of the class and the interaction between the class.

Very useful.

[Theme] a tech engineer 23:20:27

Good

 

Day 2

[Theme] a tech engineer 12:10:22

@ Huidong collaboration chart looks pretty good. It may be a problem that I use this tool. The message direction is not well adjusted

[Theme] a tech engineer 12:10:38

 

[Active] 16:22:33

What tools are you using?

[Active] 16:25:51

You can consider using trufun, a tool made in China. I have worked with this company on the technical level and they have been insisting.

That is, investment has never been put in place, because they have a wrong time to talk about investment. It was just in that the financial crisis began, and then the development tool vendors closed down frequently, they have been sticking to the present.

The software is good, and the standards are very tight.

I am the first professional trainer of EA in mainland China. However, if I only make one order, I will not do it. The agent of this company in China is too dark. But the tools are doing well. After rose disappears, they are quite good lightweight tools.

A few open-source products do not work well. It is just a superficial effort. The Association of code levels and the import and export are basically equivalent to dreaming.

[Theme] a tech engineer 16:25:51

The free Mac UML tool version of argouml is 0.34.

Qingrun 16:26:01

Change.

Qingrun 16:26:33

I have never used this one, so it is hard to evaluate it. You can consider ea or trufun. The former can be cracked, while the latter can also be used without cracking.

[] A Technical Engineer: 16:27:28

Hao 3q

 

Day 3

A Technical Engineer: 21:28:02

@ Huidong someone recommended omnigraffle to me. I tried it and it looks good.

Qingrun 22:14:43

Oh. I have never used this. I don't know.

You can check it out.

Qingrun 22:14:58

I have used it. Let's share your comments. Haha

A Technical Engineer: 22:27:40


Qingrun 22:54:36

The figure is very general. I don't know how to do the logical implementation part.

2014-10-21

A participant 9:00:15

Yang Jian, omnigraffle is okay. It is the best prototype tool on Mac and can be sold for several hundred genuine products.

Another participant 9:18:58

Go tall

Another technical engineer, 9:20:50

Omni is not cheap.

A Technical Engineer: 9:32:42

Well, my cracked version has a serial number.

A Technical Engineer: 9:32:53


Qingrun 10:35:46

This is just a drawing tool, not a UML tool. This is a big difference.

Qingrun 10:37:15

There is no implementation of code and logic, just drawing, that is, products that can be developed in six months to one year-only UML-based graphics. It is of little practical significance and will waste time.

Qingrun 10:37:49

Staruml, which is widely rumored on the Internet, was used last year to check whether rose can be completely replaced. As a result, it found a very serious logic problem and was not supported at the code level, it is also a drawing tool.

 

 

[Technical Discussion] [full modeling] How many methods should a class have? Split as big as possible?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.