You may not have known this, but in a previous life, I was a software developer.
It’s been years since I’ve developed, so I’m not an expert in apex. There are far too many awesome developers out there, and I lean on them for help.
However, every once in a while, I like to dabble and create proof of concepts. For example, I’m currently adding a feature to my Salesforce managed package that requires a 3rd party library.
The library works well on my local computer, outside of Salesforce, so I attempted to integrate into Salesforce myself, using AI. After all, everyone is talking about how AI is replacing developers.
I used Gemini 2.5 Pro, as it’s supposed to be a decent coder. It was quick to generate multiple files for the lightning web component and the controller, so I was impressed. But the code didn’t actually work.
Iteration after iteration, I kept feeding the issues back into Gemini. And it kept spewing out code that didn’t actually work. I always felt like it was close, so I stayed up until 2am last night before giving up.
In the end, I emailed my lead developer the code. By the time I woke up the next day, he resolved all the issues. Gemini didn’t know you cannot access a 3rd party library from a lightning web component. You need to access it from a Visualforce page.
I could have spent several more hours working, and would have not discovered this.
The takeaway
If you’re a decent apex developer, your job is still safe.