I asked an AI from a large group (not a startup), and after 30 minutes it continue to gives me pre-2019 API code when I stated Xojo 2025r3.1.
So, I gave up and I will do something completely different.
That is what happens when facing a stuborn machine.
I wanted to copy/paste its answers to speed up the process to see if my idea is good / does not lead in a too complex code/design/whatever.
PS: AI does not know it does not know; I had many instances - not Xojo related - when it gaves me wrong answers and I send it proof of that.
Sometimes I am asking me if some of its sources have wrong (on purpose ?) information.
I now have to do something else and let the graphical interface I had in mind (different than the current implementation) and try to concentrate on something else. Tomorrow will be a different day.
If even AI can’t make the transition from API1 to API2, just imagine how difficult and frustrating it must be for a human developer. Oh… wait a minute…
Unfortunately, I understand how hard it is for the average Xojo developer (knowing its average age: this is mine too !).
In short and clear: this transition is learning a new language without helping tools, with less than optimum (human) memory.
In the above case, the human I am was asking myself “What is this instruction” (Ex. Instruction to set the AllowHierarchical Row to True, AddRow top instead of AddFolder… of course I forgot these names) when I copy/paste provided code and get confirmation by Xojo at reading error times.
NB: I have not done anything constructive since 14h00 this afternoon, time I started to poll the AI.
In the beginning, yes.
These days, I don’t remember API1 terms anymore so it’s just a matter of time before you use API2 fully (or mostly fully, as not everything has a replacement).
AI, on the other hand, won’t forget API1.
a. Original API disappeared from the Documentation / the AutoComplete (for new project / project saved with > 2019 IDEs,
b. AI gave unknow instructions (forget or unknow to me, but I understand what it means) or fantasy instructions (that are used elsewhere).
Usually, I ask an AI because either I forget how to do or I need to get an advice on how to do it (first time I have to do that).
This time it was to know how to do / if it is not too complex to implement that new graphic interface I had in mind instead of asking here.
You can still activate the old API1-items for autocomplete in new projects. Just check the Options/Preferences under Coding/Autocomplete.
Did AllowHierarchicalRow ever exist in API 1? It does not show up.
You also could use Claude Code for complete coding. It seems well aware of API 2.
I certainly disagree with this. I am very grateful to API2. In my opinion, it has made the language clearer. I transitioned to API2 early and have not had difficulty with it. Whatever the “fallout”, for me, it has been a vast improvement.
Or… bear with me here… generative AI just generates random noise until that random noise could be classified by its pattern recognition engine as matching the request.