Maybe OCaml Was the Friends We Made Along the Way
summary
A decade of JavaScript and TypeScript work leads to learning OCaml via CS3110 and building a working playlist transfer tool that moves Spotify↔Apple Music playlists by implementing OAuth, a temporary HTTP callback, and lookups that use shared music IDs instead of fuzzy matching. The prototype compiles with Dune and opam, uses Lwt with an Lwt mailbox/mvar to pass tokens, and solidifies the mental model that Lwt’s monadic awaits, result and option types, and OCaml’s module system treat errors as values and improve modularity.
AI-written summary · about
