Open wcyz666 opened 9 years ago
hupili/dev
firstOK, what I want to achieve is comment class. This class is almost the same as message except two characteristic
Douban's diff is still there. This makes it more difficult to see the incremental part that is only related with comment functions.
If the comment class is almost the same as message class, we need to confirm:
Message
? If so, we may consider derive the class from Message
. If not, should Message
and Comment
be derived from some intermediate common base, for they already have many similarities. CommentID
. in-reply-to
field. You need to do this research before mass production. You can also further detail your description in natural language. Instead of "how" you do it, you can think/talk more about "what" you want to achieve. For example, what interfaces should be exposed? what operation can be performed on Comment? can you reply a comment? ...
Of course, you can not get all the answers at once. It's OK to start prototyping a few platforms, so that you can see the common factors and differences. Getting some running code first is usually good. You can iterate a few times before you finalise the design.
Another way is to approach from application. Always put the new features of middleware into your applications so that you know whether it is useful or not.
A precaution is that, this branch is a major upgrade. We may not merge it before it's matured enough.
Also I think it's May be acceptable if we provide an interface called unsubscribe() such that we can choose not to receive any feeds from a certain person? Well, just a grumble when testing SNSRouter.
Oh, I contemplate and now argue that's a fabulous idea! Nearly all platform support this operation
This is a prototype of comment. Could you please give some advice? If you agree with this prototype I will begin to work on specific platform