Skip to main content

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Now this is a thread I'll enjoy following.

Has anyone had any success with using an AIs to generate MultiValue code ?

Could this help bridge the skills gap with newbies coming in and companies looking at future-proofing their systems.



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

I've tried both Perplexity.ai and Chat GPT and both come up with reasonable code using this example I found online

Prompt: Please write a PICK BASIC program that will confirm the validity of an NPI number using the LUHN 10 algorithm
Response:

image.png

PICK BASIC Program to Validate an NPI Number Using the Luhn 10 Algorithm

Below is a PICK BASIC program that checks the validity of a 10-digit NPI number using the Luhn 10 algorithm, as specified for NPI validation. The NPI Luhn check is performed by prepending the constant "80840" to the first 9 digits of the NPI, then applying the standard Luhn algorithm to the resulting 14-digit number[1][2].

* NPI Luhn 10 Validator in PICK BASIC

PRINT "Enter the 10-digit NPI number: "
INPUT NPI.NUMBER

* Check if input is 10 digits and numeric
IF LEN(NPI.NUMBER) # 10 OR INDEX("0123456789", NPI.NUMBER, 1) = 0 THEN
    PRINT "Invalid input. Please enter a 10-digit numeric NPI."
    STOP
END

* Prepend '80840' to the first 9 digits
BASE.NUMBER = "80840" : NPI.NUMBER[1,9]

* Build the 14-digit string for Luhn check
LENGTH = LEN(BASE.NUMBER)
SUM = 0
POS = 1

* Luhn algorithm: process from right to left
FOR I = LENGTH TO 1 STEP -1
    DIGIT = ICONV(BASE.NUMBER[I,1], "MCN")
    IF MOD(POS,2) = 1 THEN
        DIGIT = DIGIT * 2
        IF DIGIT > 9 THEN
            DIGIT = DIGIT - 9
        END
    END
    SUM = SUM + DIGIT
    POS = POS + 1
NEXT I

CHECK.DIGIT = (10 - MOD(SUM,10)) MOD 10

IF CHECK.DIGIT = ICONV(NPI.NUMBER[10,1], "MCN") THEN
    PRINT "NPI number is VALID."
END ELSE
    PRINT "NPI number is INVALID."
END

STOP

How it works:

·       Prompts the user to enter a 10-digit NPI number.

·       Checks that the input is numeric and 10 digits.

·       Prepends "80840" to the first 9 digits of the NPI.

·       Applies the Luhn algorithm to the resulting 14-digit number:

o   Starting from the rightmost digit, every second digit is doubled. If doubling results in a two-digit number, subtract 9 (equivalent to adding the two digits).

o   Sums all digits.

o     The check digit is calculated as image.png.

·       Compares the calculated check digit to the last digit of the input NPI.

·       Prints whether the NPI is valid or invalid[1][2].

This program follows the official NPI validation procedure using the Luhn 10 algorithm as described in references[1][2].

1.       https://www.eclaims.com/articles/how-to-calculate-the-npi-check-digit/  

2.       https://www.johndcook.com/blog/2024/06/26/npi-number/   



------------------------------
Karl Pozmann
Akron, OH
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Have used Grok to generate a lot of Java code. Just tried Grok with "Pick Basic" and it does an OK job.



------------------------------
Bryan Buchanan
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Both Perplixity.ai and Chat GPT 4.0 give similar responses to this prompt:

Please write a PICK BASIC program that will confirm the validity of an NPI number using the LUHN 10 algorithm

PICK BASIC Program to Validate an NPI Number Using the Luhn 10 Algorithm

Below is a PICK BASIC program that checks the validity of a 10-digit NPI number using the Luhn 10 algorithm, as specified for NPI validation. The NPI Luhn check is performed by prepending the constant "80840" to the first 9 digits of the NPI, then applying the standard Luhn algorithm to the resulting 14-digit number[1][2].

* NPI Luhn 10 Validator in PICK BASIC

PRINT "Enter the 10-digit NPI number: "
INPUT NPI.NUMBER

* Check if input is 10 digits and numeric
IF LEN(NPI.NUMBER) # 10 OR INDEX("0123456789", NPI.NUMBER, 1) = 0 THEN
    PRINT "Invalid input. Please enter a 10-digit numeric NPI."
    STOP
END

* Prepend '80840' to the first 9 digits
BASE.NUMBER = "80840" : NPI.NUMBER[1,9]

* Build the 14-digit string for Luhn check
LENGTH = LEN(BASE.NUMBER)
SUM = 0
POS = 1

* Luhn algorithm: process from right to left
FOR I = LENGTH TO 1 STEP -1
    DIGIT = ICONV(BASE.NUMBER[I,1], "MCN")
    IF MOD(POS,2) = 1 THEN
        DIGIT = DIGIT * 2
        IF DIGIT > 9 THEN
            DIGIT = DIGIT - 9
        END
    END
    SUM = SUM + DIGIT
    POS = POS + 1
NEXT I

CHECK.DIGIT = (10 - MOD(SUM,10)) MOD 10

IF CHECK.DIGIT = ICONV(NPI.NUMBER[10,1], "MCN") THEN
    PRINT "NPI number is VALID."
END ELSE
    PRINT "NPI number is INVALID."
END

STOP

How it works:

·       Prompts the user to enter a 10-digit NPI number.

·       Checks that the input is numeric and 10 digits.

·       Prepends "80840" to the first 9 digits of the NPI.

·       Applies the Luhn algorithm to the resulting 14-digit number:

o   Starting from the rightmost digit, every second digit is doubled. If doubling results in a two-digit number, subtract 9 (equivalent to adding the two digits).

o   Sums all digits.

o     The check digit is calculated as image.png.

·       Compares the calculated check digit to the last digit of the input NPI.

·       Prints whether the NPI is valid or invalid[1][2].

This program follows the official NPI validation procedure using the Luhn 10 algorithm as described in references[1][2].

1.       https://www.eclaims.com/articles/how-to-calculate-the-npi-check-digit/  

2.       https://www.johndcook.com/blog/2024/06/26/npi-number/   



------------------------------
Karl Pozmann
Akron, OH
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

We leverage Bitbucket for code management, and therefore do all our coding in VSCode. When we push code changes we have webhooks in bitbucket that call API's on our QM and Universe servers to deliver the latest code updates. We're a universe and OpenQM shop. AI Copilot inside VSCode is amazing and has rapidly become adept at PICK basic syntax. It's like having full IntelliSense and code review all in one. If you've not tried it it's worth giving it a shot. When you're about to push a change and AI says the equivalent of "whoa there. You don't have a case1 clause on  this case, which could lead to errors..." and "you've used a file handle you don't open at line 23" it truly is like having a copilot.



------------------------------
Justin Orton
Owner, Solution Architect
Technical Plus LLC
kissimmee FL US
------------------------------

Now this is a thread I'll enjoy following.

Has anyone had any success with using an AIs to generate MultiValue code ?

Could this help bridge the skills gap with newbies coming in and companies looking at future-proofing their systems.



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hello Elkie, Stefano and all,

Most models that handle code generation now know about MV BASIC to an extent and can generate code for MultiValue servers. Per our own research, the quality isn't great and they tent to hallucinate a lot. Of course, AI models are evolving fast and a couple of weeks can make a huge difference. I'm very interested to hear from the community about your efforts using AI for MultiValue programming.

To overcome these quality issues that are due to MV being a niche market (as opposed to Python, Java, C++, etc...) we've been working at finetuning an open source model. We recently (on April 17) launched the MultiValue Developer Assistant (that is the name for our assistant based on our fine-tuned LLM) and are working with beta participants to assess how our model does. If you want to know more, please reach out to me (hborda@rocketsoftware.com).

As I said at the beginning I'm very interested in hearing about use cases beyond MV BASIC language code generation for AI to help with developer productivity and on-boarding new developers into the MultiValue platform.

Kind regards,



------------------------------
Hernando Borda
Product Manager, AI Initiatives
Rocket Software
hborda@rocketsoftware.com
------------------------------


Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

I've been using Copilot/Claude 3.5 in VSCode against mvBasic with good results.

Especially interesting is using it against existing code for finding bugs, suggesting improvements/refactoring "heritage" code and writing tests (post hoc TDD). 



------------------------------
Stuart Boydell
AU
------------------------------

I've been using Copilot/Claude 3.5 in VSCode against mvBasic with good results.

Especially interesting is using it against existing code for finding bugs, suggesting improvements/refactoring "heritage" code and writing tests (post hoc TDD). 



------------------------------
Stuart Boydell
AU
------------------------------

I'm loving these responses! It's good to know we're all embracing our AI overlords... I mean, assistants. 😄

Speaking of which, has anyone tried throwing some Pick BASIC at these AI tools and asking them to generate functional flow diagrams? I'm picturing something hilarious, like a flowchart where every path leads to an infinite loop, or maybe just a single box labelled "MAGIC." Anyone got any fun (or useful!) results?



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Now this is a thread I'll enjoy following.

Has anyone had any success with using an AIs to generate MultiValue code ?

Could this help bridge the skills gap with newbies coming in and companies looking at future-proofing their systems.



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hi Elkie,

We've recently developed proprietary technology at H3O focused on MultiValue (MV) datasets, specifically enabling direct code generation from MV structures.

As part of this, we built a tool that extracts data from MV databases into structured, readable JSON. This allows an LLM to query against the data effectively, opening up new opportunities for modern AI functionality on legacy MV systems.

Beyond that, we created a gateway product that simplifies the process of moving MV data into usable formats. This product isn't just about data extraction - it's a critical enabler for organisations looking to modernise without the overhead of migrating off MV platforms.

We're now expanding this into a full platform: using the Gateway to power a React-based web frontend, enabling direct, modern user interfaces over traditional MV systems without needing to overhaul the backend.

Exciting stuff!! 

Best,
Ethan



------------------------------
Ethan Curtis
Commercial Director
H3O Business Technologies Limited
Peterborough GB
------------------------------

Hello Elkie, Stefano and all,

Most models that handle code generation now know about MV BASIC to an extent and can generate code for MultiValue servers. Per our own research, the quality isn't great and they tent to hallucinate a lot. Of course, AI models are evolving fast and a couple of weeks can make a huge difference. I'm very interested to hear from the community about your efforts using AI for MultiValue programming.

To overcome these quality issues that are due to MV being a niche market (as opposed to Python, Java, C++, etc...) we've been working at finetuning an open source model. We recently (on April 17) launched the MultiValue Developer Assistant (that is the name for our assistant based on our fine-tuned LLM) and are working with beta participants to assess how our model does. If you want to know more, please reach out to me (hborda@rocketsoftware.com).

As I said at the beginning I'm very interested in hearing about use cases beyond MV BASIC language code generation for AI to help with developer productivity and on-boarding new developers into the MultiValue platform.

Kind regards,



------------------------------
Hernando Borda
Product Manager, AI Initiatives
Rocket Software
hborda@rocketsoftware.com
------------------------------

Yes, I'd love to hear and know more about this please.  

Obviously, I float around the market a lot and have clients ask me questions all the time.  This would be great knowledge for me to know about.

My details are elkie@prospectus.co.uk  and my calendar link is www.calendly.com/elkie



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hi Elkie,

We've recently developed proprietary technology at H3O focused on MultiValue (MV) datasets, specifically enabling direct code generation from MV structures.

As part of this, we built a tool that extracts data from MV databases into structured, readable JSON. This allows an LLM to query against the data effectively, opening up new opportunities for modern AI functionality on legacy MV systems.

Beyond that, we created a gateway product that simplifies the process of moving MV data into usable formats. This product isn't just about data extraction - it's a critical enabler for organisations looking to modernise without the overhead of migrating off MV platforms.

We're now expanding this into a full platform: using the Gateway to power a React-based web frontend, enabling direct, modern user interfaces over traditional MV systems without needing to overhaul the backend.

Exciting stuff!! 

Best,
Ethan



------------------------------
Ethan Curtis
Commercial Director
H3O Business Technologies Limited
Peterborough GB
------------------------------

Hi Ethan

I'd be very interested in knowing more about all this etc and your User Cases.  Sounds very useful.

Here's a link to my diary www.calendly.com/elkie  or drop me an email with anything you have around it to elkie@prospectus.co.uk 

I do look forward to learning more.



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

I've tried both Perplexity.ai and Chat GPT and both come up with reasonable code using this example I found online

Prompt: Please write a PICK BASIC program that will confirm the validity of an NPI number using the LUHN 10 algorithm
Response:

image.png

PICK BASIC Program to Validate an NPI Number Using the Luhn 10 Algorithm

Below is a PICK BASIC program that checks the validity of a 10-digit NPI number using the Luhn 10 algorithm, as specified for NPI validation. The NPI Luhn check is performed by prepending the constant "80840" to the first 9 digits of the NPI, then applying the standard Luhn algorithm to the resulting 14-digit number[1][2].

* NPI Luhn 10 Validator in PICK BASIC

PRINT "Enter the 10-digit NPI number: "
INPUT NPI.NUMBER

* Check if input is 10 digits and numeric
IF LEN(NPI.NUMBER) # 10 OR INDEX("0123456789", NPI.NUMBER, 1) = 0 THEN
    PRINT "Invalid input. Please enter a 10-digit numeric NPI."
    STOP
END

* Prepend '80840' to the first 9 digits
BASE.NUMBER = "80840" : NPI.NUMBER[1,9]

* Build the 14-digit string for Luhn check
LENGTH = LEN(BASE.NUMBER)
SUM = 0
POS = 1

* Luhn algorithm: process from right to left
FOR I = LENGTH TO 1 STEP -1
    DIGIT = ICONV(BASE.NUMBER[I,1], "MCN")
    IF MOD(POS,2) = 1 THEN
        DIGIT = DIGIT * 2
        IF DIGIT > 9 THEN
            DIGIT = DIGIT - 9
        END
    END
    SUM = SUM + DIGIT
    POS = POS + 1
NEXT I

CHECK.DIGIT = (10 - MOD(SUM,10)) MOD 10

IF CHECK.DIGIT = ICONV(NPI.NUMBER[10,1], "MCN") THEN
    PRINT "NPI number is VALID."
END ELSE
    PRINT "NPI number is INVALID."
END

STOP

How it works:

·       Prompts the user to enter a 10-digit NPI number.

·       Checks that the input is numeric and 10 digits.

·       Prepends "80840" to the first 9 digits of the NPI.

·       Applies the Luhn algorithm to the resulting 14-digit number:

o   Starting from the rightmost digit, every second digit is doubled. If doubling results in a two-digit number, subtract 9 (equivalent to adding the two digits).

o   Sums all digits.

o     The check digit is calculated as image.png.

·       Compares the calculated check digit to the last digit of the input NPI.

·       Prints whether the NPI is valid or invalid[1][2].

This program follows the official NPI validation procedure using the Luhn 10 algorithm as described in references[1][2].

1.       https://www.eclaims.com/articles/how-to-calculate-the-npi-check-digit/  

2.       https://www.johndcook.com/blog/2024/06/26/npi-number/   



------------------------------
Karl Pozmann
Akron, OH
------------------------------

Hi Karl

In ChatGPT, did you find any difference between the various models or was it consistent ?

Recently when I had to do some JSON code I found that there was a difference in accuracy between the models used.

<PS Yes, I know I'm a Recruiter and not a Techie but on occasion, needs must!> and as I say: "I LOVE MY JOB"



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

We leverage Bitbucket for code management, and therefore do all our coding in VSCode. When we push code changes we have webhooks in bitbucket that call API's on our QM and Universe servers to deliver the latest code updates. We're a universe and OpenQM shop. AI Copilot inside VSCode is amazing and has rapidly become adept at PICK basic syntax. It's like having full IntelliSense and code review all in one. If you've not tried it it's worth giving it a shot. When you're about to push a change and AI says the equivalent of "whoa there. You don't have a case1 clause on  this case, which could lead to errors..." and "you've used a file handle you don't open at line 23" it truly is like having a copilot.



------------------------------
Justin Orton
Owner, Solution Architect
Technical Plus LLC
kissimmee FL US
------------------------------

Hi Justin

Great idea and I bet it's great and a relief to find the

whoa moments > WTF moments   😉

Thank you for sharing. 



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

I've been using Copilot/Claude 3.5 in VSCode against mvBasic with good results.

Especially interesting is using it against existing code for finding bugs, suggesting improvements/refactoring "heritage" code and writing tests (post hoc TDD). 



------------------------------
Stuart Boydell
AU
------------------------------

Hi Stuart

You've definitely embraced, using, enjoying and sounds like benefitting from using AI. 👍



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------
There's been a lot of enthusiasm for AI in this thread, even as if was started as a hilarious way to share the garbage it sometimes generates.
 
I've been toying with a few models, given some rules for formatting and standards, DRY directive, etc. 
 
It's been some mixed results. Spits out code with that appears functional, great. What a time saver! Sometimes it even works! For those cases where it doesn't work, when pressed, it brings up "Key Concerns." The code with Key Concerns is usually the crux of the problem I'm attempting to solve.
 
Allow me to digress for a moment.
 
I think there's a conversation to be had about not just can we do something, but should we
I remember when the first software bug killed a person. Dramatic, but there are some eerie parallels to how the manufacturer of that machine justified the decision to use software control of the system as cost-cutting, and the current situation where we are trying to use software to write software, with the aim of increasing developer productivity, reducing time to market, and reducing onboarding costs.
 
Piled on top of those traditional bugs, we now have new limitations introduced when using AI. These are limitations that are hard to understand and largely unfixable by the average developer. Studies have shown developers with access to AI tools write less secure code
I know we as developers understand the responsibility to have a person with application-specific knowledge and domain-specific knowledge evaluate the results. I am less confident in our ability to avoid bias and stay vigilant when we get to the point where AI code mostly works.
Digression over. 
 
I've experienced this. When I asked the model for code to verify a SB+ user name and password, the machine's first choice was to attempt to decrypt the hashed password. 
 
When I pointed out this wasn't ideal, the next suggestion tried to read the user name and password from a hallucinated file.
 
The next suggestion was to EXECUTE "SB.LOGIN" CAPTURING RESULTS and parse that.
 
The fourth attempt hallucinated an "ENCRYPT.PASSWORD" routine. You can imagine how this could go horribly wrong.
 
The fifth attempt said it was not possible. (It is possible; I wrote one.)
 
When I'm thinking about bridging the skills gap, the above isn't an approach I'm excited about.
 
To Hernando's point, I wrote a UniBasic library that creates native Excel files. (Python would be the obvious choice here, but I don't have the luxury of control of the environment.) When I asked the model to implement a string table in UniBasic suitable for Excel, the results included tags not in the spec, some invalid XML, and a misunderstanding of Excel's internal file structure. I'm not sure that being a niche market is hurting us all that much, if these are the results given a program with billions of users.
 
Another digression: I went to the Computer Museum in Mountain View two weeks ago. Lots of reminiscing, fun times. The exhibits shows technology constantly increasing in capability and usefulness. There's a Waymo in the lobby! They've got exhibits illustrating Moore's law. (They've also got the graphing calculator I used in grade 7 and the punch cards I colored on when I was a child.) You know what was completely absent? Any mention of ethics. No mention of the upsides v/s downsides of technology in general, or AI in particular. 
 
Do I trust it to write code? Not yet. But it does sometimes save a little typing. 
 
 
 
 



------------------------------
Elaine Litchfield
Elaine Litchfield Consulting
San Diego CA US
------------------------------


Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Haha, Stefano, love the vibe of your post! 😄 I haven't heard about the "PICK" magic word, but that sounds like a neat trick. It's wild how quickly AI has become a coding partner, isn't it?

I've had my fair share of fun (and frustration) with AI-assisted coding, especially when it comes to CMI Level 8 Assignment Help. I once used an AI to generate an outline for a strategic leadership analysis-turned out to be surprisingly on-point. Of course, I had to tweak it a bit to add my personal insights and references, but the AI really helped me get the ball rolling!

Anyone else had AI throw a curveball your way with coding or assignments, only to surprise you with how useful it really was?

Enjoy the weekend, and here's to debugging without tears! 😎🍻

- [CMI Assignment helper]



------------------------------
cmi assignment helper
Looking for Reliable CMI Level 2 Assignment Help
Rocket Software Forum Member
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Hi Elkie and All,

My 2 cents ... (haha Elkie you're probably waiting for this)


We have always had code generators, 4GLs, application builders etc. for MultiValue. It's been a key area in reducing the workload and delivering applications rapidly and consistently. That's kind of in our blood and I've never understood why anyone would write code long-hand when it's so easy for MV to produce or to soft code using definitions. Screen runners, report writers, dictionary generators, templating and scripting languages etc. have been with us forever.

So what problem is AI code generation really solving? 

Your example of the Luhn function - by chance, one I also use in training - is a nicely compact and stand-alone piece of code. How often does that happen in real life? Developing for MV is about understanding the context, the application, the choice of languages, data structures, usually working with mature applications and the business decisions that underpin them: in fact the code itself is often the least important part and the simplest... and now of course we have Python on the U2 platforms with all the ecosystem of pre-built packages. (Yes, including multiple Luhn packages). 

One advantage of MV is that the language itself is simple and focused on the business case, certainly compared to more modern languages (think C#, Angular/Typescript etc.). Those have a lot of (unnecessary, perhaps - discuss) complexity to manage and AI, or at least various forms of intelligent reflection, can help to tame that. Even coding C# with the latest VS I find myself accepting the AI generated suggestions maybe 15 - 25% of the time. The rest is just distracting and more time taken to cancel them, so I'm not entirely convinced that's really helping my velocity overall.  

Having an AI model spit out MV code is of limited use unless we can train it in the whole business application that surrounds it, and we're not there yet. That's not to say I am anti-AI, but I don't think this is really a helpful use case. Perhaps integrating it at a higher level into the various application generators might be more fruitful and certainly using it for analytical insights.

As to the training question, no it won't help. Someone still has to understand, and critically review, the code it produces. Someone needs to be able to test it, in all aspects. And as we know, AI is dependent on the training model and that begs the question of the 'PICK' code to which it has been exposed. Let's be honest, there is a lot of poor, obsolete, badly constructed legacy MV code out there.

AI definitely has a place and we can't ignore it, but I don't think this is it.



------------------------------
Brian Leach
Director
Brian Leach Consulting
Chipping Norton GB
------------------------------
There's been a lot of enthusiasm for AI in this thread, even as if was started as a hilarious way to share the garbage it sometimes generates.
 
I've been toying with a few models, given some rules for formatting and standards, DRY directive, etc. 
 
It's been some mixed results. Spits out code with that appears functional, great. What a time saver! Sometimes it even works! For those cases where it doesn't work, when pressed, it brings up "Key Concerns." The code with Key Concerns is usually the crux of the problem I'm attempting to solve.
 
Allow me to digress for a moment.
 
I think there's a conversation to be had about not just can we do something, but should we
I remember when the first software bug killed a person. Dramatic, but there are some eerie parallels to how the manufacturer of that machine justified the decision to use software control of the system as cost-cutting, and the current situation where we are trying to use software to write software, with the aim of increasing developer productivity, reducing time to market, and reducing onboarding costs.
 
Piled on top of those traditional bugs, we now have new limitations introduced when using AI. These are limitations that are hard to understand and largely unfixable by the average developer. Studies have shown developers with access to AI tools write less secure code
I know we as developers understand the responsibility to have a person with application-specific knowledge and domain-specific knowledge evaluate the results. I am less confident in our ability to avoid bias and stay vigilant when we get to the point where AI code mostly works.
Digression over. 
 
I've experienced this. When I asked the model for code to verify a SB+ user name and password, the machine's first choice was to attempt to decrypt the hashed password. 
 
When I pointed out this wasn't ideal, the next suggestion tried to read the user name and password from a hallucinated file.
 
The next suggestion was to EXECUTE "SB.LOGIN" CAPTURING RESULTS and parse that.
 
The fourth attempt hallucinated an "ENCRYPT.PASSWORD" routine. You can imagine how this could go horribly wrong.
 
The fifth attempt said it was not possible. (It is possible; I wrote one.)
 
When I'm thinking about bridging the skills gap, the above isn't an approach I'm excited about.
 
To Hernando's point, I wrote a UniBasic library that creates native Excel files. (Python would be the obvious choice here, but I don't have the luxury of control of the environment.) When I asked the model to implement a string table in UniBasic suitable for Excel, the results included tags not in the spec, some invalid XML, and a misunderstanding of Excel's internal file structure. I'm not sure that being a niche market is hurting us all that much, if these are the results given a program with billions of users.
 
Another digression: I went to the Computer Museum in Mountain View two weeks ago. Lots of reminiscing, fun times. The exhibits shows technology constantly increasing in capability and usefulness. There's a Waymo in the lobby! They've got exhibits illustrating Moore's law. (They've also got the graphing calculator I used in grade 7 and the punch cards I colored on when I was a child.) You know what was completely absent? Any mention of ethics. No mention of the upsides v/s downsides of technology in general, or AI in particular. 
 
Do I trust it to write code? Not yet. But it does sometimes save a little typing. 
 
 
 
 



------------------------------
Elaine Litchfield
Elaine Litchfield Consulting
San Diego CA US
------------------------------

Interesting point you raised, Elaine, about the gap between "can" and "should"-especially in the context of AI writing code.

That twilight zone between functional and dangerously misleading is exactly where the risk lives.

The confidence with which AI outputs flawed logic makes it even trickier. 

Just because it runs doesn't mean it's right-or safe.



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Haha, Stefano, love the vibe of your post! 😄 I haven't heard about the "PICK" magic word, but that sounds like a neat trick. It's wild how quickly AI has become a coding partner, isn't it?

I've had my fair share of fun (and frustration) with AI-assisted coding, especially when it comes to CMI Level 8 Assignment Help. I once used an AI to generate an outline for a strategic leadership analysis-turned out to be surprisingly on-point. Of course, I had to tweak it a bit to add my personal insights and references, but the AI really helped me get the ball rolling!

Anyone else had AI throw a curveball your way with coding or assignments, only to surprise you with how useful it really was?

Enjoy the weekend, and here's to debugging without tears! 😎🍻

- [CMI Assignment helper]



------------------------------
cmi assignment helper
Looking for Reliable CMI Level 2 Assignment Help
Rocket Software Forum Member
------------------------------

While working on a project in Dubai earlier this year, I suddenly had to write JSON  (something I hadn't done before) for APIs, data interchange, and dashboards.

With the help of AI, I managed it!

It generated the initial code and even helped me debug its own output.

Between my logic and its knowledge, we got it working.

Total win. Great partnership-lovin' it!"



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hi Elkie and All,

My 2 cents ... (haha Elkie you're probably waiting for this)


We have always had code generators, 4GLs, application builders etc. for MultiValue. It's been a key area in reducing the workload and delivering applications rapidly and consistently. That's kind of in our blood and I've never understood why anyone would write code long-hand when it's so easy for MV to produce or to soft code using definitions. Screen runners, report writers, dictionary generators, templating and scripting languages etc. have been with us forever.

So what problem is AI code generation really solving? 

Your example of the Luhn function - by chance, one I also use in training - is a nicely compact and stand-alone piece of code. How often does that happen in real life? Developing for MV is about understanding the context, the application, the choice of languages, data structures, usually working with mature applications and the business decisions that underpin them: in fact the code itself is often the least important part and the simplest... and now of course we have Python on the U2 platforms with all the ecosystem of pre-built packages. (Yes, including multiple Luhn packages). 

One advantage of MV is that the language itself is simple and focused on the business case, certainly compared to more modern languages (think C#, Angular/Typescript etc.). Those have a lot of (unnecessary, perhaps - discuss) complexity to manage and AI, or at least various forms of intelligent reflection, can help to tame that. Even coding C# with the latest VS I find myself accepting the AI generated suggestions maybe 15 - 25% of the time. The rest is just distracting and more time taken to cancel them, so I'm not entirely convinced that's really helping my velocity overall.  

Having an AI model spit out MV code is of limited use unless we can train it in the whole business application that surrounds it, and we're not there yet. That's not to say I am anti-AI, but I don't think this is really a helpful use case. Perhaps integrating it at a higher level into the various application generators might be more fruitful and certainly using it for analytical insights.

As to the training question, no it won't help. Someone still has to understand, and critically review, the code it produces. Someone needs to be able to test it, in all aspects. And as we know, AI is dependent on the training model and that begs the question of the 'PICK' code to which it has been exposed. Let's be honest, there is a lot of poor, obsolete, badly constructed legacy MV code out there.

AI definitely has a place and we can't ignore it, but I don't think this is it.



------------------------------
Brian Leach
Director
Brian Leach Consulting
Chipping Norton GB
------------------------------

Where do you see the place of AI ?



------------------------------
Elkie Holland
MD / IT Recruiter
Prospectus It Recruitment
SHEPPERTON GB
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Hi,

We have ventured quite a bit into using AI with our code in various languages, PICK / MV Basic is definitely the greatest challenge... although we have found some early success in reading and understanding the code, building connections and generating some documentation which we do believe we can leverage.

The first step we had to grasp with AI was that MV Basic and our domain specific knowledge has not been trained into any Large Language Model (LLM) to the extent or at least like that of more recent languages which have troves of open-source information to learn on this fundamentally creates gaps and limitations.

Some of the examples above in my opinion are missing the key ingredients required for any success with Ai which is understanding the limits and the fundamental necessities of clear prompting, it's the guidance needed, and you must learn to un-google the way we talk to systems. 

AI is like a 5 year and if you leave any gaps in your request or instructions it will deliver unexpected outcomes like code but instead of an error generative Ai delivers information regardless of truth doing is best to complete the request.

So, if I can offer any cheap advice... Write your prompts in Markdown, XML is also better than JSON for data / schemas for AI Ingestion retaining context at least according to the latest OpenAI prompting standards and finally overshare your code, the files around it and any technical documentation including your domain / coding standards.

Model choice for me right now is Google Gemini PRO 2.5 and OpenAI 04-mini, Anthropic Claude 3.7 is also great for code.

If you are interested in any of the prompts I use, I'll share but never stop trying and if Ai doesn't work for your direct problem in mv basic get ai to create tools for you in python to help you do the mv basic easier.



------------------------------
Sean Redmond
Strategic Product Manager - Ai
Rocket Forum Shared Account
------------------------------

Hi,

We have ventured quite a bit into using AI with our code in various languages, PICK / MV Basic is definitely the greatest challenge... although we have found some early success in reading and understanding the code, building connections and generating some documentation which we do believe we can leverage.

The first step we had to grasp with AI was that MV Basic and our domain specific knowledge has not been trained into any Large Language Model (LLM) to the extent or at least like that of more recent languages which have troves of open-source information to learn on this fundamentally creates gaps and limitations.

Some of the examples above in my opinion are missing the key ingredients required for any success with Ai which is understanding the limits and the fundamental necessities of clear prompting, it's the guidance needed, and you must learn to un-google the way we talk to systems. 

AI is like a 5 year and if you leave any gaps in your request or instructions it will deliver unexpected outcomes like code but instead of an error generative Ai delivers information regardless of truth doing is best to complete the request.

So, if I can offer any cheap advice... Write your prompts in Markdown, XML is also better than JSON for data / schemas for AI Ingestion retaining context at least according to the latest OpenAI prompting standards and finally overshare your code, the files around it and any technical documentation including your domain / coding standards.

Model choice for me right now is Google Gemini PRO 2.5 and OpenAI 04-mini, Anthropic Claude 3.7 is also great for code.

If you are interested in any of the prompts I use, I'll share but never stop trying and if Ai doesn't work for your direct problem in mv basic get ai to create tools for you in python to help you do the mv basic easier.



------------------------------
Sean Redmond
Strategic Product Manager - Ai
Rocket Forum Shared Account
------------------------------

Hi @Sean Redmond, and thanks for that insight.

I would like to take you up on that offer to share your prompts (also favour Google Gemini) - so please provide them. Thanks

I'm also keen to see the examples you may have vis-à-vis Python, which I meddle with often and find the language great for string manipulation.



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

I've been using Copilot/Claude 3.5 in VSCode against mvBasic with good results.

Especially interesting is using it against existing code for finding bugs, suggesting improvements/refactoring "heritage" code and writing tests (post hoc TDD). 



------------------------------
Stuart Boydell
AU
------------------------------

Dears,

After following this interesting discussion about AI and PICK/MultiValue code, I would like to share an approach that I have developed which goes far beyond simply generating BASIC code with ChatGPT or Gemini. I want to clarify that this approach is specifically designed for analyzing information from D3 databases using natural language.

The MCP-Pick Revolution: Connecting Legacy Systems with Conversational AI

I have developed a bidirectional bridge between Rocket D3 systems and advanced AI models such as Claude and Gemini, using the Model Context Protocol (MCP). This technology allows our MultiValue systems to speak directly with AI agents through natural language, without the need for migration or rewriting.

How does my solution work?

 

Structured data exposure: I use standard AQL commands along with mvstoolkit to expose PICK files as HTTP endpoints that return structured JSON:

LIST INVOICE NAMEPROD NAMEBUSNIESS CODE CUSTOMER CODEPROD PRODQUANTITY PRODTOTAL DATEINVOICE

 

Orchestration with n8n: I implement automated workflows in n8n that invoke these endpoints and send the data to the MCP through Server-Sent Events (SSE).

Bidirectional communication: The AI agent (Claude/Gemini) processes this data and can respond to complex queries such as "What is the total billing by customer in April?" with contextualized analysis.

 

Tangible Results

The system I have implemented allows:

 

Natural language queries: Directly ask about data stored in Pick D3

Automated financial analysis: Calculations, monetary formats, and comparative analyses without additional programming

Modern interface generation: Complete dashboards in React/Tailwind automatically generated

 

Instant Analysis of MultiValue Data

The most revolutionary aspect of my approach is the ability to analyze Pick D3 data instantly and in any conceivable way. In my example, I work with a single billing file and a few fields (NAMEPROD, NAMEBUSNIESS, CODE, CUSTOMER, CODEPROD, PRODQUANTITY, PRODTOTAL), but this is just the tip of the iceberg.

The beauty of the system is that I don't need to predefine reports, dashboards, or specific analyses - I simply ask what I need to know in natural language. "Show me customer purchasing behavior by region," "Analyze the seasonality of our sales by product," or "Identify potential fraud patterns in the last 1000 transactions" - all of this is generated in a matter of minutes, without a single additional line of code. It just takes imagination and the AI handles the rest.

The most impactful example: with a single prompt ("Use MCP PICK to build an interactive financial dashboard in React + Tailwind CSS"), I obtained a complete website with graphs, tables, and risk analysis based directly on my MultiValue data.

Key Difference with Code Generation

Unlike asking AI to generate PICK code (with the limitations mentioned by several of you), my approach:

 

Leverages the best of both worlds: the stability and robustness of our legacy systems with the flexibility and capabilities of modern AIs

Does not require PICK programming knowledge to obtain modern interfaces and analyses

Allows real-time updating of dashboards and visualizations

 

This approach mitigates many risks, as the AI does not generate the code that executes critical operations - it only interprets, visualizes, and analyzes data already processed by proven systems.

You can see an example of the generated dashboard here: https://claude.ai/public/artifacts/5d41270f-e6af-4d30-8b08-ca79cc3c4992

 

I am available to answer questions about this implementation and share more technical details.

In my opinion, this is the true potential of AI. Best regards and I hope this implementation is useful and you can apply it in your applications.

I've attached a video showing how I interact in real-time with Claude desktop and the Pick D3 MCP to generate a portal in less than 5 minutes without writing a single line of code.

Best regards,

Fausto Paredes

https://faustoparedesia.com/



------------------------------
Fausto Paredes
GENERAL MANAGER
Admindysad Cia. Ltda.
Quito EC
------------------------------

Hi @Sean Redmond, and thanks for that insight.

I would like to take you up on that offer to share your prompts (also favour Google Gemini) - so please provide them. Thanks

I'm also keen to see the examples you may have vis-à-vis Python, which I meddle with often and find the language great for string manipulation.



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

Hey Stefano, 

have you tried asking the AI the best way to ask it questions?



------------------------------
Stuart Boydell
AU
------------------------------

Hey everyone,

Let he who is without sin cast the first... line of AI-generated code! 😜

So, I've stumbled upon a fun fact: Turns out, if you whisper the magic word "PICK" to Google Gemini, it'll cough up some code snippets. Forget I said D3, that was so last week and Gemini refers some other arb platform

Does anyone else have some hilarious or surprisingly useful AI-assisted coding stories to share?

Happy Friday, may your bugs be shallow and easily squashed! 🍻

Stefano



------------------------------
Stefano Gallotta
Managing Member
Simply Red Open Systems
Milnerton ZA
------------------------------

I'm currently using CHAT GPT (o4 mini high) pretty regularly in developing a Unidata (Windoze) db of insurer flat files. I've found it most helpful in debugging errors in my code or getting the skeletal logic of a program started.

When it comes to writing a full program, however, it's infuriatingly verbose and never seems to miss the opportunity to LOOP rather than FIND (as 1 example). When errors occur it will head down a rabbit hole of exploding code, always confidently guaranteeing that "this version will solve the problem". I'm certain it will improve over time, but I recently took 150+ lines of CHAT developed code and cut it down by more than 2/3rds...and I'm barely a talented amateur at Pick/Uni-Basic




------------------------------
Richard Lucibella
Director
Rocket Forum Shared Account
------------------------------