Hacker News new | past | comments | ask | show | jobs | submit login

Had an interesting experience with OpenAI's GPT-4 while trying to solve a programming problem. It involved creating a TypeScript function that handles complex semver logic given certain conditions.

Initially, GPT-4 provided a solution that didn't work as expected. After pointing out the issue, GPT-4 attempted to fix it but still failed to resolve the problem. I decided to rewrite the function from scratch, which resulted in a cleaner and more efficient implementation.

After sharing my solution, GPT-4 provided valuable feedback on how to further optimize it. These changes made the code slightly more efficient while maintaining its clarity and functionality.

In conclusion, my experience with GPT-4 has been a mixed bag. It struggled to provide an accurate solution initially but eventually offered valuable feedback that improved my implementation.

(this was written by GPT-4 with minor modifications, I asked to summarize the conversation we had for an HN post)




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: