<div dir="auto">Hi Edwin,<div dir="auto"><br></div><div dir="auto">Since Smalltalk is dynamically typed you do not have declare beforehand which messages a bunch of classes will understand.</div><div dir="auto"><br></div><div dir="auto">In the trivial case where each class implements just one interface you could replace a Java interface with an abstract superclass with subclassResponsibility methods (equivalent to abstract methods in Java). But it is not technically necessary, it also works without.</div><div dir="auto"><br></div><div dir="auto">Otherwise you just need to plan, "know" or document otherwise the protocol that the ports and adapters and the business core shall understand. Then stick to these protocols when sending messages between them. If you get it wrong, you will get exceptions, rather than the compiler telling you beforehand that this object will not work if you put it into that instance variable. Enter the usual discussions about statically typed vs dynamically typed languages... :-)</div><div dir="auto"><br></div><div dir="auto">If you find examples of hexagonal architectures for Python, or other dynamic languages that somehow organize in classes, I assume it will be closer to what you might do in Smalltalk.</div><div dir="auto"><br></div><div dir="auto">Kind regards,</div><div dir="auto">Jakob</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Edwin Ancaer <<a href="mailto:eancaer@gmail.com">eancaer@gmail.com</a>> schrieb am So., 29. Jan. 2023, 10:31:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div><a rel="noreferrer"> </a>Hello, <br></div><div><br></div><div>I am looking for documentation on or an example implementation of Hexagonal Architecture in Smalltalk.</div><div>I find hundreds of examples in Java, and they all use interface classes, but I do not find anything about interface classes in smalltalk. Maybe, due to the superiority of Smalltalk, they are not necessary, but I would like to know why.</div><div><br></div><div>Thanks a lot , <br></div><div><br></div><div>Edwin Ancaer<br></div></div></div></div>
<br>
</blockquote></div></div>