▲ | neilv 5 days ago | |||||||||||||||||||||||||||||||||||||||||||
I used to work heavily in this kind of system modeling (developing tools for it, and dogfooding), and still use it when high-value for figuring out or communicating an aspect of a system. Here's a challenge, to help appreciate the nature of these: try to find an error in the diagrams. It's usually harder than you might think, since, even when you know the notation and metamodel semantics, it's information-dense talking about a domain. You usually have to know or learn a lot about the domain, and/or have an domain expert you can walk through it exhaustively, before you can find errors. And an error can be whopper: a single graph edge missing, or between the wrong vertices, or with the wrong adornments can have huge implications. For example, large amounts of work that have to be redone, or a project abandoned, or a mess that takes 10x longer than it should to write, and 10x the tech debt going forward with a bad architecture, or a fundamental security flaw. One of the mistakes many people make is treating formalized diagrams as "marketecture" visuals, like they only need for handwaving sales presentation slides, where there's some kind of visual for every concept they want to be able to literally point to. Nope, if you have software engineers and domain experts communicating and reasoning about your system in only the fuzzy terms of sales/exec presentations, you're really stabbing yourself in the face. | ||||||||||||||||||||||||||||||||||||||||||||
▲ | tinco 4 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
One of my more painful design mistakes happened in this sort of way when designing a system for recording inspections. I interviewed multiple inspectors and came up with a representation that was a little bit more elaborate than I would have hoped, but it at least captured all information I believed. Then the company progressed and eventually we got to market fit and for two years the team and I were dealing with this increasingly burdensome complexity that we were not reaping any rewards of. Then one day we had enough and a colleague redesigned the system to ditch the extra complexity resulting in a much more elegant design that was easier to reason about. That bliss continued for less than a year, until some customers asked for a particular report that we needed to generate based on a structure of the information that was now no longer present. We had to redesign it again, migrating was super painful and involved a temporary workaround that basically involved an extra branch on literally every piece of code that touched the inspection system. In retrospect, I still don't know how I could have convinced the team that the complexity was something we needed when no customer required it for 3 years. Especially when the colleagues who took over that system from me had gained much more experience and expertise in the domain than I had since I had designed the original. It would probably have been better if I had recorded the requirement that prompted the complexity, but had not actually implemented it as no customer had actual need for it at the time. Then we would not have had to deal with the complexity the first three years, and then evolved the product when the need arose. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
▲ | motorest 4 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
> Here's a challenge, to help appreciate the nature of these: try to find an error in the diagrams. The point of diagrams is to communicate concepts and ideas. They are a design tool, not a design goal. They are used to help reason about your design. One of the most basic uses is to step through each of your requirements and verify if the design meets each and every single one of them. > For example, large amounts of work that have to be redone, or a project abandoned (...) No, this is not the diagram's fault. That's a problem caused by poor or even inexistent design. You only need to redo a project if you fail to meet critical requirements and you can't figure out a way to make them work with what you have. The diagrams only convey the output of your design process, and if it is faulty then it's not the diagram's fault. | ||||||||||||||||||||||||||||||||||||||||||||
▲ | pydry 4 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
They're an awful substitute for code. About the best use for them is to give people an overview of the architecture of an existing system. Even them theyre not great coz they tend to go out of date quite quickly and theyre quite expensive to build. As a means of software design theyre BDUF crack - theyre an incitement to bad decisions in advance of writing software that would always be much better if done retrospectively via refactoring. | ||||||||||||||||||||||||||||||||||||||||||||
▲ | mdaniel 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
> try to find an error in the diagrams. Easy peasy, it's the 3rd blue line above the purple line /s https://github.com/takaakit/uml-diagram-for-ddd-example-in-e... I can't believe someone took time to generate such a thing, as if it is useful to anyone | ||||||||||||||||||||||||||||||||||||||||||||
|