The content below was originally posted to the Questions forum in the Gleam Discord. I wanted to share here for Fedi friends.
#Gleam #FunctionalProgramming #Programming #CodeReview #AskFedi
Hello, I’m back asking for more feedback on my code. I have attached a file with a working example (I was going to use Gleam Playground but the link itself exceeds the post length :hushed:)
I have been hacking away at my project for –checks commit logs –almost two months(!?) and, while I am making progress, I feel like I’m still writing bad code. So, to prepare something for feedback, I’ve pulled aside the current problem I’m working on into its own module. This code exemplifies working with formdata with wisp. It’s not 1:1 with my project code but the point is to show how I’m writing my code and solving problems with Gleam.
I’ll take any and all feedback, but some questions I have in mind are:
- Are there places I should be using
use that I’m missing? - Am I using
gleam/result functions efficiently and properly? - Can I make my code more legible?
The actual project can be found here, for anyone interested: git.sr.ht/~nebunez/leafcutter_…
Thanks in advance!