I am having more than a little trouble trying to learn OCaml by writing a project/program and learning from my mistakes as the ecosystem talks back. I am using opam, dune and ocamlopt as I can figure it out from professor internet with AI now and then chiming in unreliably. It appears to me that I always have to do n things correctly before I can get any positive feedback at all, and I seldom know how large n is. I have to write a subroutine before I can call it. But when I try to compile it berfore it gets called, I hit errors because it is there and not called. Then when I call it and get an error, I have quite a bit of puzzlement over whether the problem is with the caller, the callee or the opens, or the dune files or the switches, or the project structure or ⌠I start changing this and that, getting different messages back, and having no idea whether I have gotten closer to or farther from joy.
I am an old guy who has programmed lots of stuff for almost 60 years, and I want to keep learning, but I am prone to and not discouraged by lots of small errors on comparatively small tasks. What are the healthy development habits that can help me stay on the path?