Ask HN: Are there any openly available software architecture documents?
407 pointsI'm about to leave my job for another and i'm tasked with documenting the existing architecture and flow of the app.
I'd also have to document why certain decisions were taken. I'm looking for any openly available similar documents for guidance mostly around how to structure the document.
Comments (49) 31 threads
Earlier comments[2] and [3] list a few example documents for Software Architectures, you can google further and find some more.
I think reading through a few sample documents and based on the expectations at your current job, you can derive the necessary doc.
[1] https://www.amazon.com/Documenting-Software-Architectures-Be...
[2] https://projects.cecs.pdx.edu/attachments/download/3146/Soft...
[3] https://www.voa.va.gov/DocumentView.aspx?DocumentID=188
https://aws.amazon.com/whitepapers/?whitepapers-main.sort-by...
I’m also a big fan of DDD [2] and use his “box and line” drawings all the time. There are loads of resources for DDD but I’ve linked to the book, which is awesome. DDD has great concepts like Context Boundaries and Ubiquitous Language which may simplify the documentation process.
It’s easy to think of architecture too abstractly or in terms of frameworks or other complexifying concepts, but simple is good, and that’s true from top to bottom.
[1] http://www.developerdotstar.com/mag/articles/reeves_design_m...
[2] https://www.goodreads.com/book/show/179133.Domain_Driven_Des...
https://www.cs.colorado.edu/~kena/classes/5448/f12/presentat...
Yes please. So much this. With evidence, please, so that the decisions can be revisited in the future and changed when they no longer apply. Every day I open another source file on a system that was built over a decade by a rotating cast of mostly first job software engineers without adequate mentorship and (I wish I was making this up) having their C++ code reviewed by a C programmer who gave them comments such as "just turn all these functions into one-line macros", and someone who appeared to be mainlining late-nineties OOP hype like it was going out of fashion and needed to get it all on the page before someone beat him to death with an old Vic 20.
Every day we stare at it and ask ourselves why. Why was it done like this? Was there a good reason back then? Does that reason still exist? If I rewrite it to remove all this horror, will something else break? Even, oh God, even "What is this actually meant to do?" I can see what it does do. What it does do makes no sense. Did it ever make sense?
Even the occasional comment like "cheeky hack for performance" is often more hindrance than help when a quick test shows it actually makes performance worse. Did it ever improve things? Did the hardware change underneath it such that it no longer helps? Did other code change such that it no longer applies?
Anyway, where this was going is that a decision recorded without evidence or even the factors considered might as well have been a coin toss to the software archaeologist having to maintain it in a decade's time. If the decisions and reasoning aren't recorded, you're forcing someone to attempt to reverse-engineer your state of mind, and that's an expensive and impossible job.
All comments shown.
Couldn't load more comments. Check your connection and try again.