- cross-posted to:
- planetdyne@fed.dyne.org
- cross-posted to:
- planetdyne@fed.dyne.org
cross-posted from: https://fed.dyne.org/post/43780
The trick is to split the code into smaller parts.
This is how I code using ChatGPT:
- Have it analyze how to structure the program and then give me the code for the outline with not yet implemented methods and functions.
- Have it implement the methods and functions one by one with tests for each one.
- I copy the code and test for each method and function before moving on to the next one So that I always have working code.
- Despair because my code is working and I have no idea how it works and I have become a machine that just copies code without an original thought of my own.
This works pretty well for me as long as I don’t work with obscure frameworks or in large codebases.
Actually, that’s the trick when writing code in general, and also how unit tests help coding an application.
This is exactly how you forget coding.
deleted by creator
To be fair, you’re also describing working with other people.
deleted by creator
As an ex webdesigner/dev, Squarespace, Weebly and the like killed my income well before ChatGPT did.
I never copy code from chatgpt. It’s not my code and it probably doesn’t work. However it is great at making suggestions on how to tackle a problem or how to improve your code. Use ChatGPT like Stack Overflow, with instant replies.
This. I always use that example, ChatGPT is stack overflow or a very eager intern. Review and make test cases
Plain copy paste without a critical view is not recommended, but it surely provides good pieces of code from time to time. Especially in obscure frameworks/languages, compared to what can be googled.
ChatGPT 4 is a really big difference with 3.5 though. What took me hours together with the 3.5, was fixed in a few minutes with 4.
Co-pilot can write some small very simple functions for me, sometimes saving me the need to look at documentation. It will still often fail at those, in my experience, and will consistently fail at anything more complex.
It will get better, but currently it’s only a small help.
it really helps with the boring parts and takss that require doing the same thing over and over;
for example, i use it to generate mapping functions (like in my (abandoned) gba emulator project, function that maps arm instruction type enum to function pointers was generated almost entirely by chatgpt)
I’ve been having a great time with copilot
Yeah, that’s the way to go. Copilot or similar to automate the simple stuff, while you still do all the architecting and check whatever it suggests.
deleted by creator
deleted by creator







