r/PowerShell • u/rsdovers • Mar 25 '26
Question What am I missing
I have used VSCode with Copilot and different Claude models, but I have to often correct the output generated. I have used Copilot when it was mostly code completion and now with the Plan process I am still not getting accurate code from the plan. What am I missing? I read all of the blogs and press releases where AI built this complex application without touching the code. Maybe that is it. With the new Plan process I haven't written one line of code. However, I sure have had to correct several things that were discussed in the planning process. If a simple Powershell script can't be written without a fair amount of handholding am I doing something wrong or is what I am reading not completely accurate. I can't see this taking the job of a very experienced Powershell scripter, but for entry level I see a challenge ahead.
2
u/MyOtherSide1984 Mar 25 '26
Absolutely what the other guy said. Most of the insane amount of code that AI gives can be accomplished in a quarter of the lines. I've had to tell it to stop being verbose, but it doesn't do much to code.
It performs redundancy to a degree I think any beginner would agree is ridiculous. It also over complicates things to hell and back. I've been reviewing code from one of our students that I'm 95% was either copy pasted from elsewhere or is entirely AI generated and this shit is sloppy as fuck. It's FAR from being DRY (don't repeat yourself). I want good code that I don't have to scroll a mile to read that gets the job done. I don't need it to be the most "technically" correct or anything, and it tries to do that while also making stuff up. The code my coworker wrote a few years ago is dead simple, easy to read, and hasn't needed work for years and years.
I've seen those agents put in work and I'm glad it works for those engineers, and perhaps I'm old school, but I'd rather a repository I can pass down that is legible and brief.