Im not super strong in JS, and it seems that chatGPT , deepseek is completely lost on how to write 'retool' code, any suggestions for AI that understands retool code?
Hey @Caspar_Jensen and welcome to the forum!
I use ChatGPT. I have the impression that it has gotten better and better, and I don't know if that is because of the memory it has of previous conversations, the model, or the way I have changed my prompting.
I tried using Claude, and I didn't find it as accurate as chatgpt, although I know of some other users in the forum that prefer Claude over chatgpt.
For me the key is always providing context, e.g.
- the data you want to manipulate, provide a snippet of the json
- the component you want to show the info in
- the result you want to see, providing also a snippet of how the json should look like.
- describing if you are using a js query or a transformer, and if a transformer, ask it to use curly brackets for variables
- describing if the code is an inline code in a component ( at the beginning I constantly had to ask to do it inline without constables, after a while it did it automatically)
I write most of my JS with the help of chat gpt, and I rarely have to repeat myself more than twice.
Hope this helps!
Great question, @Caspar_Jensen! Welcome to the community.
I've moved this topic over into the Discussion
category, for the time being, but am definitely interested to see what other community members have to say on the topic. Like @MiguelOrtiz, I'm old fashioned and still use ChatGPT whenever I'm feeling lazy and want to put the s to work.
We're working on some exciting things in the background, though, so keep an eye out!
ChatGPT has been my general go to as well, largely because it is somewhat lazy like me and doesn’t overkill with error handling etc with its responses, which I’m generally looking for since I generalize my questions to something like “I have an object “foo” that contains an array “bar” with objects in it. How can I change a key in the every object in “bar” and insert new default keys” or whatever when I’m tired and just can’t remember the basic syntax…
I’ve also found that if I want to get un-lazy and really work on details, Gemini (yes, Gemini) has become really good at working through the whole code with me, particularly for long context stuff.
In all cases, especially with ChatGPT’s canvas, the more I work on something, the longer the context gets, and the more confused the LLM gets. With Gemini, I branch conversations, which is helpful. In others, I tend to copy where I’m at and start a new chat.
If you haven't already seen it, we just announced the alpha of our AI app generation tool over here!