6

I've had Cody AI running in my VS Code setup, but am wondering what other AI tools I should try e.g. GitHub Copilot?

Also I'm wondering if Illuminated Cloud 2 with its explicit parsing of Apex and the various metadata formats to precisely know what the valid auto-completions are is a better way to go today?

I'm looking for answers that describe Salesforce-specific code generation capabilities of different AI tools, such as generating Apex, LWC JavaScript, or Visualforce.

4
  • 3
    I've taken the liberty of rewording your question to try to make it fact-based rather than opinion-based - I think there is value to the community here and a specific answer can be written. Please feel free to revert if you don't like the edits.
    – David Reed
    Jul 19, 2023 at 20:33
  • Thanks for doing that @DavidReed.
    – Keith C
    Jul 19, 2023 at 21:04
  • 1
    note IC2 also has code templates you can use to generate entire classes, methods, etc that follow some pattern - for example, I use an IC2 template to autogenerate my Selector classes
    – cropredy
    Jul 19, 2023 at 21:50
  • 2
    Tried Cody, GPT-4, Bard and a few others. The results are pretty meh with pure Apex. For some cases it can generate a sort-of code chunk "template" that can be used as a starting point. Somewhat better with LWC due to JS. Considering that the models are trained on these very Q&As...even billions of neurons won't help.
    – identigral
    Jul 19, 2023 at 23:15

1 Answer 1

1

This is entirely a single person's opinion.

The two VSCode tools I tried over the space of a few days are Cody AI and GitHub Copilot. For the latter, I'm on the waitlist for the GitHub Copilot Chat part so have missed out on that. Took less than 24 hours on the waitlist to get access to the GitHub Copilot Chat feature. But just appears to be similar AI to what Cody AI offers.

General questions about e.g. sfdx asked in the chat window are usually helpful and provide a quicker answer than Googling.

On code generation, my general impression is that a lot of distracting noise is generated:

Feels like pair programming with someone who mistakenly thinks offering a rough guess is better than keeping quiet.

and while good on language syntax a lot of hints are needed to get anywhere near the desired business logic. And it is frustrating that metadata such as field definitions are unknown to the AI except for what it spots in existing code.

In my dreams, and in line with:

Copilot's primary job is to assist you, taking care of mundane or repetitive tasks

I'd like an AI solution that could do the tedious work such as "add a 30 character string field called Abc to Contact appending to the layout or flexi-page and adding that field to the permission sets and profiles that contain most of the Contact fields".

I will keep running Cody AI and see if I can get more value out of it.

If you have success with other tools, or your experience is different to mine, do post an answer here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .