Ask HN: Is there a better way to document complex software architectures?
406 pointsDespite having the 'architect' title for about five years now, I still sit for hours in Visio & Powerpoint to painstakingly drag boxes and lines around to describe systems.
While the system definitions themselves have arguably improved as my skill as an architect has increased, there's been no such improvement in the speed or method I use to describe them. My visuals are perfunctory, powerpoint-fu is lacking, and the end result always has plenty of room for improvement. It then gets saved as PDF and shelved as an artefact that is disconnected from all the other architectures, and the system boundaries are inevitably out of date by the time the next person looks at it.
So much craft has been put into better languages, better compilers, and better IDEs for the software developer, I'm absolutely confused - where is the modern 'IDE' for the Software Architect?
Comments (235) 87 threads
Earlier commentsMy workflow right now is hand-drawing diagrams in Paper and pulling them into a Notion page. Notion is amazing, the Paper workflow is not.
Embracing the constraints of a simple README for particular sub-systems lets me also put together general systems overview documents very easily after.
That said pencil & paper / whiteboard almost always comes first of course.
http://tom.preston-werner.com/2010/08/23/readme-driven-devel...
https://monodraw.helftone.com
http://asciiflow.com
Good non-ASCII alternative (for hyperlinked sharing in wikis etc):
https://www.lucidchart.com
Obviously, one principle is "use as few comments as possible but no fewer".
But another principle is "don't spend extra-time formatting or otherwise prettifying a comment". Not only is that time not spent on development but it makes the comment seem more credible than it deserves and it can make other programmer looking at the comment hesitate to change it when they otherwise should.
Like comments, architecture draws may be fated to be often out-of-date. Like comments, that doesn't mean they're useless. Like comment architecture draws probably actually benefit from not looking more integrated into code than they actually are. They're a starting point, you have to read the code still but a starting point can be very important.
Perhaps your only real problem is finding a draw program you can use faster.
I actually got into that habit back when I was working with the insanely expensive suite of Rational IDEs. At that point, and later with the Eclipse Modeling Framework, the goal was to generate code from diagrams.... but that took more work than it was worth in my opinion.
With those tools, or with doxygen, you can get pretty far writing skeleton classes and method stubs, with exogenous systems represented the way you might mock them. Then just drop the generated SVGs into your slides, and profit.
This also answers your question about the lack of tooling: whenever a promising architecture/modeling product shows up they get acquired and then just fade away.
All comments shown.
Couldn't load more comments. Check your connection and try again.