Relating to the last question/comment in the video, i would argue we are not actually creating code from a diagram. Mermaid defines a kind of a DSL for diagrams, so we are transforming code from one language to another, just like any other DSL. Having said that, the final code probably needs a lot more detail on the 'how', which Mermaid cannot express. I also believe the most important and useful use case is to generate diagrams from code, which helps to understand the system.
Relating to the last question/comment in the video, i would argue we are not actually creating code from a diagram.
Mermaid defines a kind of a DSL for diagrams, so we are transforming code from one language to another, just like any other DSL.
Having said that, the final code probably needs a lot more detail on the 'how', which Mermaid cannot express.
I also believe the most important and useful use case is to generate diagrams from code, which helps to understand the system.