Hi folks, I'm just discovering FP & arrow and ...
# arrow
t
Hi folks, I'm just discovering FP & arrow and I'm very excited! I have limited experience with FP. I understand some of the basics, I've read lots, I've used HOCs, compose, I get pure vs effects, etc. Most of my experience comes from redux and react. However, i have never put together a large application following FP principles. I'm starting a new project this week and I'd like to try a functional-first approach as much as possible. It's a ktor & graphql based micro service that will serve as the backend to a web-based UI. Nothing too fancy. So my question, are there good example applications which are considered best practice to use as a template? I have very basic unknowns which could be answered with an example... How often are classes and FP mixed? How is functional only code organised? By package, inside singletons, etc etc. I appreciate that a lot of the answer depends but still keen to explore an example. 🙏 🙏
s
maybe this will help, it's Scala, but a Kotlin version would be similar: https://github.com/pauljamescleary/scala-pet-store
t
Great thank you just browsing through this now. Would be great to see something similar with kotlin & arrow though!
I can see there are a few examples in the arrow docs as well
s