by orliesaurus · 5mo ago · 0 comments
I haven't touched it in a while, Since writing code these days, as most of us know, it's basically steering an LLM.
So I wonder how good are LLMs at writing Phoenix or Elixir so to speak? Time for me to create another side project... and figure it out.
- it’s functional making it much easier to reason about for LLMs (eg no side effects)
- it’s compiled (including the html template), so the LLM get instant feedback if something is off and can fix it quicker
- it’s more concise than other frameworks (language, framework, no front/backend split) and consequently you hit the max token limit much less frequently
- it has excellent tailwind support
I told a business partner to just use claude for certain tasks a year ago, and it failed miserably in python where it succeeded in elixir/phoenix liveview. This was a regular occurrence. LLMs have obviously progressed since, but the principle still stands that they work much better in elixir than python.
So in short: it’s great and arguably better than most other languages and frameworks
The stable nature of the language, and the static/immutable nature of constructs, presumably really helps moving safely here.
Checkout https://github.com/oliver-kriska/claude-elixir-phoenix (not me).
Don’t like a pattern that LLM introduced? Write a custom credo rule and the problem doesn’t come back.