NauticalGent
Ignore List Poster Boy
- Local time
- Today, 08:46
- Joined
- Apr 27, 2015
- Messages
- 6,598
I know how you feel.No, I'm not a patch on many of the experts here and in particular MajP..... A whole level, or more above me.
I spent HOURS with Chatty on a PowerShell script. She had suggested we add a logging/transcript feature since it had a lot of moving parts. Things were going great until something broke. I kept shareing the errors and results and she kept offering alternatives and at one point, we started losing ground.
I finally realized that I would have to stop relying on her and try give this a look. Didn't take long to realize that she had changed a variable on one of the functions $Messages vice $Message. Once I pointed that out, things went well.
The moral, ChatGPT is a great tool, but ultimately, it falls on then wielder of the tool to make sure it is used properly...
Edit: After I posted that, I asked Chatty if there was an equivalent to Option Explicit in PowerShell. Of course there was, which furthers my point. At the beginning when I shared the VB Script I wanted to convert to PS, I asked her to make the script as PS-centic as possible and employ best practices. At no point was strict variable declaration introduced, not even after it proved to be an issue.
Last edited: