Friday, 9 April 2010
I was reading this article about the supposed best use of UML diagrams during the course of a project, in particular, generating code from UML is useless. I have to agree that it seems pointless, once the generated code is modified the UML diagram is no longer useful and can no longer be used to generate the source. Maybe this has just be used in the wrong way. UML could be used in the same way as a unit test. Perhaps initially it could generate code but also assert that code sticks to the design, if not then this test would fail and the architects would be notified. This would help keep the architects up to date on what the codebase looked like without constant peer reviews, keep the documentation up to date and give warning when the design needed to change. I have a feeling this is already done by someone.