<div dir="ltr"><div dir="ltr">On Tue, Jul 4, 2023 at 2:06 PM David Alayachew <<a href="mailto:davidalayachew@gmail.com">davidalayachew@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:monospace">I spend a lot of my time writing front end code, path finding algorithms, and natural language processing. These are basically the 3 realms I spend 90% of my time in. All 3 of these treat State Transition Diagrams as the holy grail for representing control flow and decision making. Literally ALL of the business logic I write for these initiatives involves me emulating a state transition diagram directly into Java code.<br></div></div></blockquote><div><br></div>This sounds like a scenario where a domain-specific language might be appropriate. Have you considered taking that approach? <br></div><div class="gmail_quote"><div class="gmail_quote"><br></div><div class="gmail_quote">An quick & easy way to experiment with this idea is to use XML+XSLT to generate whatever (e.g., Java source files). Once I used XML+XSLT to generate RPM spec files, which were then compiled into RPMs, as a way to do some DevOps automation. That's a random example but it worked well in terms of the cost/benefit trade-off.<br></div><div class="gmail_quote"><br></div></div><div class="gmail_quote">Obviously, Java is a general purpose language, so for any particular subset of the programming universe, it's probably going to be sub-optimal. That shouldn't be a surprise, right?<br></div><br><div class="gmail_quote">-Archie<br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>