用例制定
我正在思考网络服务的规范,这个问题突然出现在我的脑海中。
是否应该有以下用例:
- 用户可以对其他用户的帖子进行投票 从而改变后者的声誉
可以分为两个用例吗?
- 用户可以对其他用户的帖子进行投票
- 当用户获得投票时,她的声誉会相应改变
哪一种表述更好?
I was thinkering with the specs for a web service and this question popped into my head.
Should the following use case:
- A user can vote on other users' posts
so to modify the latters' reputation
be split into two use cases?
- A user can vote other users' posts
- When a user gets voted, her reputation changes accordingly
Wich one is better formulated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会选择拆分选项,这样您可以更好地控制每个流程,并且也更容易维护。
I'd go for the split option, this way you have way more control over each process and it's also easier to maintain.
除非有你希望它们独立发生的情况,否则我想不出分割它们的理由。
Unless there is a case where you want them to happen independently I can't think of a reason to split them.