47 points · by jayliew · 8y ago · 53 comments
The core purpose is to facilitate the efficient communication of technical information between software engineers on the team at a high level / bird's eye view (as opposed to a more granular level line by line comment inside of code).
Specifically, something persistent & electronically scalable (not just a temporary whiteboard sketch that goes away!)
Not just for a one-off communication, but something long-term so that institutional knowledge stays with the organization, even if people come and go.
I'm thinking out loud here but some kind of product / solution that can be baked into a code review process.
For block diagrams that illustrate relationships between components as a sort of directed graph, I prefer Omnigraffle (on OSX). It's fast and effective, easy to label boxes, lines, and interactions, and supports exports to pdf and png for quick sharing. Where omnigraffle falls over is in terms of its popularity and accessibility. You can't really review the diagram source as a part of the code review process, and the output diagrams are not useful to the visually impaired. Popularity is a factor because even if a dev knows some piece of block diagram software well, it's likely that they know a different one than anyone else. For that reason, we're not prescriptive about the tool used on our team, only that some form of block diagram is included with the documentation for a feature or component.
For sequence diagrams I use web sequence diagrams, for which I hold a commercial license. These diagrams are great for illustrating different workflows, with the caveat that we generally need several very similar diagrams to explain even the simplest features. These also benefit from having a straightforward text format that can be shared as a reviewable part of the source tree, and which can be read and edited by the visually impaired. Sequence diagrams are a more effective tool for demonstrating the veracity of code against a desired specification than block diagrams are, but understanding the top-level component layout is generally a prerequisite.
Not sure about the general popularity of either of these, but they've been an effective toolchain for me so far.
Personally I prefer Pencil [0], it suffers from 'another electron app' syndrome, but I've grown to really like it. It's probably predominantly a UX tool but it has more fine control over elements than lucidchart does, plus it's open source.
I do also really like Omnigraffle and that’s my first go to.
In contrast to some others here, I find quick, simple diagrams immensely useful in resolving long, unproductive discussions. They tend to focus discussions on concepts, ontologies and cardinalities instead of trying to verbally represent mental models.
http://plantuml.com (I do, however, seriously dislike how many ads are on the site for this thing)
I don't get a lot of value out of diagrams for the work it takes to produce them.
The diagramming tool is a minor consideration except it should be easily editable by someone coming along later. The important thing isn't the tool, but that there is a common, known place to look and collect the info for the team. It could be as simple as a shared folder as long as everyone agrees.
In general, I write and try to encourage "tech memos" that are short of capital-D official, complete Documentation, and instead focus on capturing the high-level view of some scoped aspect of the total system. Memos that cover say a walk-thru of one type of operation through the entire system, how a single feature interacts with the larger system, or a tricky bit of analysis, logic, or assumptions on some key point; all tend to be popular reading. Whiteboard pics are often included just for convenience if needed too.
For more long form docs I tend to use a mix of LaTeX's TiKZ (though I used to use PSTricks) for block diagrams and for a somewhat faster workflow I've used some of the diagramming tools which integrate nicely into an asciidoc based document. That can be graphviz, blockdiag, seqdiag, etc ( https://asciidoctor.org/docs/asciidoctor-diagram/ has a decent list of some of the options).
With any option it's easier to quickly sketch something out than it is to have some clear well organized diagrams which don't need any external context to understand.
As somebody who predominantly uses Linux, I was wondering if you have Linux support on your roadmap? I'm rarely actually in a situation where I could use Vexlio on OSX or Windows, but of you had Linux support I would literally be using it daily (and I'm sure I'm not the only one).
I used to use it in Wine, but it took a lot of finicking to get it working and behaviour was just a little too nondeterministic when it worked.
When I get some spare time I can send you the details on what I had to do to get it (barely) working.
Plus programmability!
It's surprising though how many are still bound to the idea that if you want diagrams for documentation, you'd better get a good drawing tool and draw them yourself. While manual drawing might give more flexibility, the burden of creating and maintaining those diagrams is often too much in the agile projects we work with. I suggest you all take a test drive on Softagram. Just go to softagram.com, register for a free trial, add your git repo and off you go. I'd be delighted to hear if you like it or not.
I want to avoid the situation where the left hand doesn't know what the right hand is doing. Any person on the team doesn't have to go hunt down the person who knows the system, but can just look up the diagram at a high level and know where to start.
It is free btw
Both work, I ended up choosing LucidChart and we are now testing it with the team
Primarily though I use sparx enterprise Architect. I've been told it's outdated, others don't like the ui, but honestly all my models are in one place, including wire frames and use cases. I enjoy use it. It's roadmap creation support I do not like, like a poor Gantt (at least last time I tried it)
When the code is primary source of truth it is better to use some on the fly visual analysis. In my current place we use Softagram to mainly analyse bird eye level changes at reviews, but it also helps during staff onboarding.
I used to use Visio on Windows and had an excellent experience.