r/ChatGPTCoding • • 1d ago

Question What's one problem ur ai coding assistant couldn't solve, n how did u finally fixed it.

Can any one answer please

0 Upvotes

12 comments sorted by

1

u/spring_1124 7h ago

Thanks for the info. Looking forward for information from viewers

3

u/Uncontrollably_Happy 1d ago

Timezones.

My app was pulling dates from multiple sources. They all came in different time zones. The agent had difficulty managing the time zones. The agent kept miscalculating the times.

I resolved it by verbosely naming the variables so it was obvious to the agent what the times represented and how the times should be handled.

3

u/Difficult_Duty2198 1d ago

mine kept breaking a date parser with weird input formats. what finally worked was pasting 5 real examples with the expected output instead of describing the rule, it stopped guessing after that.

3

u/AsyncVibes 1d ago

Multiple agent handling of files and applications. Solved it with a leasing relay where my AIs need to take a lease per application for an allotted time. Prevent overwrites and added human in the middle as well since I can see the exact program and modifications they make.

3

u/Ornery-Advisor-6599 1d ago

I think the longest thing for me to make was an Xbox control for my phone. I probably could have just used the off the shelf version but I spent a day building a test thing to suss out the connection. For me as a gardener I felt this was a real win.

2

u/_private_member 1d ago

It fails all the time, mostly by writing overly complicated code and poorly designed tests. I fix it by reviewing what it writes often so I can catch it when it starts doing this and tell it to re-read the document I have about coding styles and how to write good tests. Both are really short, I don't want it to take up too much context.

The unit testing document is basically the three chapters in Software Engineering at Google boiled down to 50 lines. The software design one is pretty small as well. Both tell the AI what to do; I avoid telling the AI what not to do as much as possible. I find it works better that way.

2

u/Successful-Tax1306 1d ago

For me it was a bug that only showed up on a real phone. The assistant kept adding more fixes and each one made it a bit worse, so I stopped the chat and built the smallest possible test with just the one screen. Once I could see it fail on its own, the cause was obvious and the next question I asked was a much better one. Now I do that first whenever the first fix does not work on the device.

2

u/OGKnightsky 1d ago

Programming shared battle states for party battles, the server saved state intermittently to save progress in real time to handle users loosing connection and not loosing progress because of a crash/connection drop/extc. The shared battle state kept players turns in battle during a crash/connection drop/extc when logging back in it was supposed to pull them back into the battle which conflicted with the save state on the server. No tests showed it, no visible bugs in the game aside from not being returned to battle and nothing in our debug logs. Solved with intuition and experience that the two states were conflicting and the server remained authoritative over the battle state (as it was designed to) and both pieces of code worked individually.

1

u/QuarkOfTheMatter 1d ago

It couldnt plug in a flash drive into the computer to copy the executable to. I fixed it by doing it myself. /s

3

u/[deleted] 1d ago

[removed] — view removed comment

2

u/Special_Mud_6888 1d ago

have you tried swapping 'no mistakes' for 'production ready' or does that just make it apologize harder when the code fails?