Howdy Software peeps! I have a question that I'm not sure is quite constructive enough for the main site: What is the functional programming analogue to MVC? Ie. how do you organize an interactive program while doing fp?
I suppose everything kinda vanishes except the model. Either you mimick changes with a monad, or allow impure updates, or build some fancy persistent updateable functional data structure. But the model idea still exists in some form, the data. But everything else just dissolves into functions, right?
Input functions manipulate the model. Redisplay functions traverse the model.
"Best practice" questions are generally off topic here (too much opinion) but are generally on topic on softwareengineering.stackexchange.com. — torek32 secs ago
@luserdroog I'd argue that you can still do MVC in functional programming. Instead of being a way to conceptually group objects (or classes) into those three groupings, it becomes a way to conceptually group functions.