Trying to get ChatGPT to fix Gemini1's code

1 points by guybedo ↗ HN
I've been trying unsuccessfully to get some Python code converted to Java.

My first try was with ChatGPT but i soon realized the thing didn't want to work.

It can do the work, it knows how to write rather good code for simple things, but it just won't do it. I tried to pimp my prompt, but nothing works.

50% of the output is

// Further processing...

// Additional methods like load, compute, etc.

// Define parameters needed

// Other fields and methods...

// Other fields follow the same pattern

// Continue with other fields

// Other fields...

So i gave Gemini 1 a try. It's a hard worker, i give him 700 lines of Python code, and it gives me back everything translated in a new language that isn't Python, it's not Java either, it's a mix...

Back to ChatGPT, i'm asking it to fix the code. Once again it's even lazier than i am.

It lectures me about the errors in the code, tells me i should do A, B and C. And proceeds to fix the code.

700 lines fixed with "// Further code adjustments needed here..." and "// Further methods (loadData, startTiming, stopTiming, etc.) need to be properly defined or adjusted."

I guess i'll have to do the work.

0 comments

[ 3.0 ms ] story [ 7.2 ms ] thread

No comments yet.