shishini

shishini

What do you recommend for coding using AI help?

Hi Community

This is a very general question
I didn’t jump into the AI bandwagon yet, and I am not sure where to start

So which AI tool/setup do you recommend , paid or free

I am surely interested in what works best for Elixir, but also what works best in general, for coding with any other language

Thanks

#ai

Most Liked

alexanders

alexanders

I will just share my experience, not sure if it will be useful. I have subscription for Github Copilot for a while, before that I used free Codeium.

In my experience it is good for auto-complete, sometimes it will guess big chunks of code correct and can save you lot of typing. I also use it alot if I don’t remember how something is done in some specific language, like for example formatting decimal with exactly 2 decimal places and things like that. I also had success with writing some bash scripts which solve some basic and isolated problem, often it just works, you don’t need to know bash to do that. Sometimes you can just copy/paste some error you don’t understand and get fast solution. You can also generate good tests with AI. Also I rarely open documentation now, if I need something specific it is much faster to ask AI, than to use google/docs.

I rarely use AI to try to generate new code or make significant changes in existing code. Sometimes I try to do that, but in my experience you just replace task of writing code with task of reading someone else’s code. Sometimes code is correct, sometimes it is not. Usually code is not optimal and is overkill for problem you trying to solve. So I usually prefer to start coding myself and use auto-complete to speed up things. But this is just my experience, maybe I need to write prompts better :smiley:

I would say start with Copilot free trial. In my opinion $100 per year totally worth it and will definitely save you some time on some of tasks I described above. They recently added other models (Claude and o1), so you have access to multiple models in case one doesn’t solve your problem. Good integration with IDEs (I use VSCode). I don’t have lot of experience with alternatives so can’t say if something else works better.

Hope it helps.

Pal

Pal

Not a heavy user for code as I’ve put Ash at the heart of my project: I can reason from the git status significantly better than any AI (for now, at least)

For specific Elixir/JS, Python I prefer Claude Sonnet code output, coupled with Aider ((GitHub - Aider-AI/aider: aider is AI pair programming in your terminal · GitHub)) which supports most LLMs. There’s also a new VSCode extension (not tried): GitHub - lee88688/aider-composer: Aider's VSCode extension, seamlessly integrated into VSCode · GitHub

Zed gives a nice, similar experience, with a (currently) free Claude tier. Not enough about the editor for me to move from VSC however and I won’t be drawn down the subscription pathway for an editor.

Where Next?

Popular in Questions Top

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54921 245
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement