alexpovel / effective-typestate

A presentation on the type-state pattern (as popular in the Rust ecosystem), in the style of "Effective C++/Rust" (loosely coupled showcases), with examples in Python (easiest to read). Link below contains compiled presentation
https://alexpovel.github.io/effective-typestate/
MIT License
3 stars 0 forks source link

Add Venn diagrams #2

Open alexpovel opened 8 months ago

alexpovel commented 8 months ago

To "Use Case 3"/UUID. .drawio file:

<mxfile host="app.diagrams.net" modified="2024-02-28T14:56:14.143Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0" etag="dnrHQZHRxxpba7YDUy5-" version="23.1.7" type="device">
  <diagram name="Page-1" id="lkQahnf55bbuhcO0Bwvy">
    <mxGraphModel dx="2440" dy="1334" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="0" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="7vIhLoC4GjujlDHXe2GT-1" value="Strings" style="ellipse;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
          <mxGeometry x="310" y="420" width="300" height="300" as="geometry" />
        </mxCell>
        <mxCell id="7vIhLoC4GjujlDHXe2GT-2" value="Emails" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
          <mxGeometry x="359" y="585" width="110" height="110" as="geometry" />
        </mxCell>
        <mxCell id="7vIhLoC4GjujlDHXe2GT-3" value="UUIDv4s" style="ellipse;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
          <mxGeometry x="1060" y="420" width="300" height="300" as="geometry" />
        </mxCell>
        <mxCell id="7vIhLoC4GjujlDHXe2GT-4" value="UserIDs" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;opacity=50;verticalAlign=top;" parent="1" vertex="1">
          <mxGeometry x="1060" y="420" width="300" height="300" as="geometry" />
        </mxCell>
        <mxCell id="7vIhLoC4GjujlDHXe2GT-5" value="NewsletterIDs" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;opacity=50;verticalAlign=bottom;" parent="1" vertex="1">
          <mxGeometry x="1060" y="420" width="300" height="300" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>

image

alexpovel commented 8 months ago

https://viewer.diagrams.net/?tags=%7B%7D&highlight=0000ff&edit=_blank&layers=1&nav=1&title=Untitled%20Diagram.drawio#R3ZZRb5swEIB%2FDY%2BVAAMhjxtJ00jrXrJqe3XgAHeGQ%2BYSkv36mWICiExrpWha%2BxT7O%2Ftsf3dKYrGoOG0Ur%2FJHTEBarp2cLLayXNdZuKH%2BaMm5I0vP70CmRGIWDWAnfoGBtqEHkUA9WUiIkkQ1hTGWJcQ0YVwpbMwyky5FOT214hnMwC7mck6%2Fi4TyjobuYuAPILK8P9kJll2k4P1ic3Sd8wSbEWJri0UKkbpRcYpAtvJ6L92%2B%2Bz9ELxdTUNJrNiyO2%2FwLRt7m%2BfAsVw8%2FwN18uzNZjlwezIN3pESZ1ebOdO5F6GTauZ58bnJBsKt43EYaXXbNciqknjl6mAopI5SoXvaxNIUgjjWvSeFPGEWSxXJv2zoyf0l%2FLVAEpxEyL9sAFkDqrJeYKOv7xbSZ11tvhqIx27B8VLAL5KZRskvuwaUeGJ1vUOvO1K4LLuTtzCY%2BhIl3zWzo7lkQ3Misv5yY9UN%2FZtZxrpi9wJubZTOzT0%2Fb1dF7b03r2MF%2F17Xe3G0Narv6p22LOpegVorfqm6NCv2V%2FEmKrNSQsPq4BfBnBfgKTS2B6MZl4BCmV1s8iEPYp38vwx6JsHiPldDT4Xf3JTb698LWvwE%3D