使用 Visio (Dia) 绘制算法
我只是想知道有多少经验丰富的程序员实际上在 MS Visio 或 Gnome Dia 等程序中制定了他们的流程或算法?
我正在尝试为我的网站编写一些复杂的 PHP 代码,但似乎缺少一些东西。 图表程序会有帮助吗?还是我应该寻找其他领域?
I was just wondering how many experienced programers out there actually map out their process or algorithms in a program like MS Visio or Gnome Dia?
I am trying to code some complex PHP for my website and just seem to be missing something. Is a diagram program going to help or should I be looking in another area?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我仅将 Visio 用于不需要遵循 UML 规则的快速图表。 有时对于与代码细节无关的文档很有用:如果您需要显示代码的一些高度抽象视图,Visio 可以完成这项工作,示例、显示每个主要部分如何通信的文档或简单的活动图。 ..
如果您愿意,您可以找到免费 UML 编辑器列表需要进行密集的UML设计。
I use Visio only for quick graph that doesn't need to follow UML rules. Sometime useful for documentation that aren't about the detail of the code : if you need to show some high abstract view of your code, Visio do the job, Example, documentation that display how each big part communicate, or a simple activity diagram...
You can find a SO list of free UML editor if you require to do intensive UML design.
每次我尝试在 Visio 中制作真正的使用图表时,结果总是事与愿违。 永远不要低估铅笔和铅笔的力量。 纸,或者更好的是白板。
但是,是的,解释或写出你的问题比仅仅坐在那里思考会更快地找到解决方案。
Everytime I've tried to make a truly usage diagram in Visio, it always ends up being more work than it's worth. Never underestimate the power of pencil & paper, or better yet, a white board.
But yes, explaining or writing out your problems will more quickly lead to a solution than merely sitting there and thinking about it.
OmniGraffle。 类图。 序列图。 交互图。 ”纳夫说道。
OmniGraffle. Class diagrams. Sequence diagrams. Interaction diagrams. 'Nuff said.
当我想用 3 个盒子和一些箭头制作草图时,我使用 graphviz。
我讨厌图形化的东西,每次更改名称时都必须重新排列所有内容。
它(几乎)就像编写一样简单:
在文本文件中然后运行“dot -Tpng -O myfile”
尝试一下......
但请注意,图形表示仅适用于非常高级的视图(即只有很少的对象)
When I want to make a sketch with 3 boxes and a handful of arrows I use graphviz.
I hate graphical stuff where you have to realign everything each time you change a name.
It's (nearly) as simple as writing :
in a text file then run "dot -Tpng -O myfile"
give it a try ...
but be warned that graphical representation just work for very high level views (i.e. with few objects)
我使用 magicdraw 绘制出我的用例(这样我和我的团队就准确理解了所需的功能),然后我为更复杂的功能绘制了活动图和类图。 你还可以在那里做数据库架构并让它为你生成sql(如果你的数据库很大的话,这是上帝发送的)。 然而,Magicdraw 不是免费的,但如果您预计要做大量复杂的项目,那么它可能值得投资。 除了使用图表路线之外,您还可以考虑使用 PHP 框架,该框架可能会处理一些事情,例如 Zend Framework 或 Code Ignitor
I use magicdraw to chart out my use cases (so my team and I understand the features needed exactly) and then I do activity charts and class diagrams for the more complex features. You can also do database architecture in there and have it generate the sql for your (a god send if you're database is huge). Magicdraw isn't free however but if you anticipate doing a fair amount of complex projects it might be worth the investment. Outside of going the diagramming route you can look into using a PHP framework that might take care of some stuff for e.g. Zend Framework, or Code Ignitor