r/functionalprogramming • u/vaff • Oct 04 '23
Training Functional language to pair with htmx
I've recently stumbled upon htmx. The idea is nothing new. But I lile the ideologi behind HATEOAS. Having everything / most rendered on the server and returning html components / snippets from the server. Keeping state and logic in one place.
I'm looking for a functional language (and framework maybe) that can give me some tools to pair with it. If I was going react or just the typescript way. I'd probably use Astro, Remix or Nextjs. But I'm not really fan of the transpiled Javascript on the frontend and the JSX in the backend.
I'm looking for something like Django or RoR, maybe Laravel. But with a functional language.
I'm not versed in functional programming. But I'm curious to learn.
View all comments
Show parent comment
2
u/Rajahz Oct 07 '23
Looks great, and it seems like Elm serves a lot of inspiration within functional languages and frameworks.
I’m currently exploring Clojure (again, hehe) for building some small tools and learning fp. OCaml feels harder to learn especially because ot requires one to study FP, types, and oCaml’s syntax.