Forget Case in Elixir
How to get the case out of the way
Case Hides Intent
Snippet below shows how it is hard to untangle the code. You get the response from calling the genserver and handle cases. Simple function can do that, pattern matched to handle each case.
@spec supervise_video_worker(Atom.t, String.t) :: any()
def supervise_video_worker(api_scope, path)…