Sequence diagrams as code allow for tracking changes in the diagrams and controlling their versioning; moreover, based on existing code, it's easy to create subsequent diagrams.