Hacker News new | ask | show | jobs
by luke_galea 602 days ago
I think the slack flowchart is a great example of where declarative programming really shines.

You might enjoy this talk about rules engines where I simplify part of Slack's notification logic: https://youtu.be/mDnntrhk-8g?si=K1_8pU-Ck1fsCUM5

Fun stuff!

1 comments

I will invest that time later. In anticipation, thanks.

I came here to see if anyone was talking about state machines that generate their own flowcharts, or codegen from flowcharts. I'd like to know if there's prior art.

It would be great for user acceptance. I'm minded to have a go myself, possibly with mermaid as an intermediate description. Stupid? Non-stupid?

There is a library in Ruby to generate graphviz from state machines: https://github.com/state-machines/state_machines-graphviz
I have similar thoughts but I also didn't have chance to do proper investigation of the prior art :).
Icymi, luke_galea mentioned graphviz in ruby

Next challenge: generate fsm from mermaid flow chart!