设计或图表状态有哪些好的方法?
促使我问这个问题的问题是一个 Web 表单没有按照我预期的方式持久保存数据。 这很模糊,但重点是,您喜欢对状态、数据流等建模做什么?
The issue that prompted me to ask this is a web form that was not persisting data the way I expected it to. That's vague, but the point is, what do you like to do to model state, flow of data, and so forth?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我将附上白板答案,并补充解释应该发生什么,然后用语言描述代码实际在做什么,以及基本图形对任何项目都有帮助。
I'll second the whiteboard answer and add that explaining what is supposed to be happening, following by verbalizing what the the code is actually doing, along with a basic graphic is hugely helpful for any project.
也可以使用白板,但要熟悉 UML 图。 我很幸运地使用了序列图——它们很好地描述了系统各部分之间的交互。
我见过人们使用状态图,但它们不包含那么多详细信息——当我第一次看到序列图时,它们给我留下了深刻的印象。
Whiteboard as well, but be familiar with the UML diagrams. I've had a lot of luck with sequence diagrams--they do a good job of describing the interactions between parts of a system.
I've seen people use state diagrams, but they don't contain as much detailed information--sequence diagrams impressed the hell out of me when I first saw them.
UML 有 2 个图,
状态图对于状态建模可能很有用。
用于建模数据流的活动图。
The UML has 2 diagrams that may be useful
State diagrams for modelling state.
Activity diagrams for modelling data flow.
我将给出(对我来说)显而易见的答案,那就是使用白板。 喜欢白板。
I'll put my obvious (to me) answer, which is to use the whiteboard. Love the whiteboard.
Graphviz 是一个用于绘制状态机图表的出色工具(一旦您在白板上完成了它们)。
Graphviz is a great tool for diagramming state machines (once you've worked them out on the whiteboard).
我认为典型的模型工作得很好:
例如 - 状态图
http://en.wikipedia.org/wiki /State_diagram
我赞同白板的使用。 他们在状态、流程等方面的工作是首屈一指的。
I think the typical models work fine:
for example - state diagrams
http://en.wikipedia.org/wiki/State_diagram
I second the whiteboard use. They are second to none in working on state, flow, etc.