While AI may not be a full replacement of a good developer, it can still help in some instances.
Using the prompt, “Write a Salesforce LWC that allows users to edit a field”, Gemini Pro actually built a working lightning web component (LWC). On its first attempt.
Then I wrote, “Display the total number of characters in the field and the maximum allowed characters, which is 32768”. And it updated the source files accordingly. And it worked on its first attempt. And it placed the character count in a logical spot.
This output definitely impressed me.
Now, since I’m not really a developer, I
- cannot comment on how secure the code was
- can definitely see how practical this is for non-developer
- would probably not recommend using the output as production-ready code
The takeaway
AI is very useful for creating first drafts. Whether that’s an email, news article, documentation, or a LWC. But I wouldn’t recommend using it as-is in production.
That’s when a strong developer takes over and makes necessary refinements.