Trying to get ChatGPT to fix Gemini1's code

https://news.ycombinator.com/item?id=39461866
by guybedo • 2 years ago
1 0 2 years ago

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.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com