3 ms·
Slightly tangential, but does anyone know of a good tutorial/explanation of real-life functional programming in designing apps? For example, building a fully AJ
by crazygringo 14y ago
Slightly tangential, but does anyone know of a good tutorial/explanation of real-life functional programming in designing apps? For example, building a fully AJAX-enabled, MVC-style web app in a functional manner?
I still really want to get "into" functional programming, but all the tutorials I find seem to be awfully mathematically-oriented or theoretical. For me to really "grok" it as it might apply to my life, I'm still trying to get how to combine it with webapps or CRUD-type apps. Even back-end would be fine -- how to write a web server written "functionally", that retrieved data from a database and turned it into JSON format, for example.
- tomku 14y agoCheck out "Monadic Design Patterns for the Web"[1]. I haven't read it yet, but the description sounds like exactly what you're looking for. I don't think you're going to find an escape from the theory, though... the abstractions that are necessary to adapt functional programming to something like a CRUD app are going to be mind-bending, one way or another. It might be easy to write something simple up in Yesod or Snap, but that's only because the framework authors are doing most of the abstraction-herding for you. From what I can tell, that book goes into the messy details. [1]: http://www.artima.com/shop/monadic_design_patterns http://www.artima.com/shop/monadic_design_patterns