A beginner's explanation for why Elixir isn't more popular
I've been tinkering around with Elixir and Phoenix Liveview for a day and a half now and I'm beginning to understand why it isn't more popular. Sure, the syntax looks as if it were developed in a vacuum, but I can get used to that eventually. The real reason is the docs suck. Not the docs for the language or the Phoenix framework, but the docs for all the little surrounding libraries you'll need for every project. The docs for Goth (GCP authentication) were very lacking and I've spent the entire day trying to make a POST request with HTTPoison and I just cannot get it to work. It seems like the correct response is being received but there seems to be the wrong number of params or something. I can literally see the response on the error page, but the program refuses to accept it. The only relevant example in the repo is a GET request and it does not appear to work for POST, and there doesn't seem to be any relevant answers on SO. I feel like if it takes a day to figure out how to make a POST request work it cancels out the supposed benefits you get down the road no matter how great they are. At this point, it seems the practical next move would be to just do it in python (or node.js). The docs for python aren't great either (a beginner would struggle to install pip), but you generally won't get stuck for days on trivial problems. Unless that becomes the case for Elixir, I can't imagine it being a mainstream language.
2 comments
[ 3.1 ms ] story [ 20.0 ms ] threadThats because you have to pattern match based on params and arity.