in reply to Re: OK, OK. AI is a handy tool.
in thread OK, OK. AI is a handy tool.
You're quite right -- yes, it fixed some of my errors. In using P:FM, in the child process I had a loop where I was evaluating child SKUs, and initially had next (to go on to the next kid) when I discovered I didn't need to deal with this child SKU. When reviewing this code, I changed that to a $pfm->finish call, exiting the child process after the first child SKU. The AI caught this, and reminded me I should be using next there -- just like I'd had originally.
I'd also collected some anomalous information in the child process, but not passed it back with the finish method. The AI caught that as well, and suggested code (commented, even) to fix that omission.
AI is bad for a lot of things, but as a second set of eyes, it's quite useful
|
|---|