Hacker News new | ask | show | jobs
by pmontra 2426 days ago
I think it's about Elixir. Personally I won't start a web project with Erlang: it's too hard to read and to write, it makes me feel like I'm still in the 80s (it's when I started coding.) Elixir is almost 1:1 with Erlang and I'm much more comfortable with it.

I can't say much about tooling because I never really worked with Erlang, only some toy programs. Elixir's tooling seems to be on par with what I'm using for Ruby, JavaScript and Python.

1 comments

It's better than those. I can write an integraion test that leaves the vm via http request a comes back in and the http handler only views a shard of the shared state of the system associated with that particular test. That's a concurrent integration test. You can't really do that reliably without the BEAM.

Thanks to Elixirs macros, the code for this subsystem is about 75 lines of code and in order to use it in a group of tests it's a single "use" statement at the head of the test, and the hooks inside of the main part of the code are compiled to no-ops in prod.