Warpslide wrote to Sean Dennis <=-
I find them especially helpful for the random PowerShell or Bash
commands when you need something in particular.
Gemini helped me with a PowerShell command that took my Multimail taglist
file, converted the line endings to CRLF, sort the file, and eliminate dupes...on its own. I was asking about doing it in cmd but it said, "Here's something that will be more efficient". I normally dislike PS--I think it's overly verbose--but in this case it worked.
I always try and do it myself first just to make sure I can, then I
paste what I've come up with into one of these chat bots and usually
come away amazed at how efficient the code it spits back is. What I
was doing in 8 or 10 lines it was able to do in 4.
e.g: Get all distribution lists from Exchange Online and then show all
the members of each in two columns as "Name" and "Email Address".
Copilot helped me write a MBSE-specific nodelist browser (MBSE uses its own structure for its master nodelist) and wrote it in Free Pascal for me. It
said that since it can see the entire MBSE source code tree, it was trivial
for it to do the heavy lifting. It also wrote a MBSE-specific twit filter also. I need to compile and test those utilities before I release them to
the world.
It also helped me rewrite my BBS doors for Linux in COBOL. LOL
I do have conversations with it but I have no illusions that I am
talking to a human; just "a program that understands what you say well" (quoting Copilot there).
I readily admit to using AI as a tool to help me program some things that
are complicated. Copilot is also good at optimizing code, which it has for
me, an example being my "SeanUnit" (my GP code unit I use in a lot of my non-door programs). If you look at it, you'll see where it tightened things up.
-- digi <8D~
... Is a computer language with GOTOs totally Wirth-less?
--- MultiMail/Win
* Origin: Outpost BBS * Johnson City, TN (618:618/1)