r/functionalprogramming • u/ignorethecrane • Jan 11 '23
Question What are some good diagrams for representing functional programs and architectures?
What are some good ways to visualise the flow of data through a pure system, functional composition, and abstraction? Thanks!
19
Upvotes
6
u/Raziel_LOK Jan 11 '23
Not sure what do you mean, any Diagrams from OOP would work the same, as they are equivalent.
Can u give a concrete example in OOP so it might be clearer what u are looking for.
One suggestion is take a look on:
Eric Normand: Grokking Simplicity: Taming Complex Software with Functional Thinking Or Yehonathan Sharvit: Data-Oriented Programming: Reduce Software Complexity
I think they both give good clues on how to represent functional programs visually.
5
u/[deleted] Jan 12 '23
As others have said Bartosz Milewski videos on category theory.He draws diagrams like this.https://wiki.haskell.org/File:Typeclassopedia-diagram.png
4
u/Pyglot Jan 12 '23
Look at graphviz and mermaid-js maybe they will give you some examples or ideas.
5
u/beezeee Jan 11 '23
Perfect use for category theory. Bartosz Milewskis YouTube videos are a nice intro if it's new to you
10
u/[deleted] Jan 11 '23
[removed] — view removed comment