I have seen a significant increase on this forum, and received emails, of responses to questions, generated by AI. I would suggest that may be creating more problems than solutions.
I am converting a major app from Modal to MDI. I do review samples, but they in no way provide a clear explanation of how MDI works, and more specifically, how FiveWin handles various setups/commands, and what it expects in them.
I started with ChatGPT and asked very detailed questions. The answers I received seemed to be nice until I tried using them. I would give it code, and it would tell me how to modify it for MDI ... but often it was wrong. As soon as I tested it's response, and it failed, it gave me some name for the problem and corrected its example.
It was suggested I use Gemini instead. It was a bit better, but failed frequently to provide a working solution. It, too, always had some name for the type of error and suggested a different approach, putting all the blame on behaviors in FiveWin.
Of greater concern is that it did not keep the total code in place, but kept suggesting new changes to sections. That might be ok, but it continuously switched variable names with each revision, so I would always have to go back and figure out what they referenced. For example, oDlgInv ( named for a specific module to differentiate from others ), might be used in one response, and the next time it might be oDIn, or just oDlg. This was a consistent behavior. Also, it would take an object in a class ( ::oDlg ) and then create a LOCAL oDlg. This isn't the best practice, but the problem arises because it would consistently switch back and forth incorrectly. For example, one time it might have ::oDlg:hide(), then in the revision it might be oDlg:hide() and when that didn't work it might be back to ::oDlg:hide(). This often happened when it decided to re-write a whole section of code.
MY POINT: AI may be helpful, but with Five Win and Harbour, and especially changes made in more recent years, it is far from accurate. As individual developers, we can see what is going on as we interact with it, but when someone asks a question here on this forum, before we respond with any AI solution, we should always test that ourselves. Otherwise, we may be providing misleading guidance, and as a result, create a lot of frustration for those seeking help.
Before I ask any question, I've used all my other resources, including AI, the samples, our very limited ( and very old ) documentation, and even searched the topic on this forum. So if I ask a question, the answers that will help me will be the responses from people who understand the question, and have an actual solution they have used in their own programs, and they KNOW it works.
Thanks for considering this. As I near my 80th birthday this summer, I still love being creative and programming. My clients also appreciate what I provide. However, as we age, our brain has to work a whole lot harder to remember, and think through processes. It is good to do this, and keeps us more alert, but new skills can be challenging.
Tim
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
