r/learnpython • • Jun 21 '23

Using ChatGPT (4) for Python programming is getting worse, alternatives?

Hello!
New to python development in 2023. Ive been using the paid version of chatgpt for quite some time now but as of late its getting quite bad with debugging and coding as its forgetting simple items such as calling out api's even though it had mentioned it seconds before.

Wondering what else the community is using? e.g. copilot

0 Upvotes

33 comments sorted by

33

u/teerre Jun 21 '23

This is a fascinating question. An year ago this would be literal nonsense. Now there are people who shop for ai models to write their code. Wild.

Or maybe this is something AstroTurfing.

5

u/luvs2spwge107 Jun 21 '23

I’ve seen an uptick of accounts saying this exact thing. Now, maybe there’s some truth to it, but normally if I see that I tend to think shadow PR smear campaign (probably not what it’s called but this is a real thing).

I used GPT daily and there hasn’t been a considering difference for me… I mean the way people make it sound it seems like there’s a 50% difference. I use it for all sorts of things and I can’t tell a difference. Not to mention the way I use GPT I’m not inputting the same prompt over and over trying to see a difference. How many users are really using it enough to analyze a huge difference? And how are they coming to that conclusion if, presumably, they’re outputting for different tasks? Just lots of weird stuff here

1

u/Slight_Chicken4130 Jul 31 '25

je confirme c'est incroyable la nullité de cette ia en codage comparée a OPUS 4 GROK 4 et GEMINI 2.5 PRO pourtant O4 excelle dans plusieurs domaines

34

u/Username_RANDINT def get_random_int(): return "RANDINT" # TODO Jun 21 '23

The docs.

6

u/This-Gene1183 Jun 21 '23

This isn't the advice the OP is looking for but have an upvote.

1

u/[deleted] Jun 22 '23

AKSHULLAY....you can cut paste the docs into chatgpt and go from there.

3

u/CosmicClamJamz Jun 21 '23

Not answering your question, just chiming in since some of the comments are harsh and not helpful. I think most of the community here does not use ChatGPT to write their code, or at most they use it for assistance on small problems but don't have it write all of the code. AI should get you 90% of the way to a working solution, and that will be true of co-pilot or any of the alternatives. But just like any art or practice, you need to be better than your assistant, so you can guide it. If you recognize that it messed up forgetting to call an API, you can tell it that it messed up and ask it to fix it, or write that line in yourself. So long as it saved you more time than writing it from scratch, I'd call it a success. But if you don't know Python and are asking ChatGPT to write you a bunch of working code...you're gonna get what you get and it might not be great

3

u/surim0n Jun 21 '23

great reply. thanks. ive started learning python earlier this year but its one of those, am i even doing this right? ive picked up a small freelancing gig and want to ensure im doing the best i can!

1

u/[deleted] Jun 25 '23

Also learn to use GPT. For best and consistent results, you need to use the API, pre-write a bunch of messages (instruction part of the conversation) and then your question. There are so many ways and purposes to write code that it can not possible guess what you want accurately from your short input. Also it is helpful to ask what it needs to form optimum answer for you. Then you realise how bad your inputs actually are.

Also you need to keep the questions short enough, as its contextual memory is very short and it has no logic basically.

For same reason, you can’t ask for unique solutions, as it has no creativity. So try having separate chats for architecture and higher detail questions, you can’t get both.

This all said, I think you need to learn both, chat GPT and Python, for optimum results

2

u/[deleted] Jun 21 '23 edited Jun 22 '23

they use it for assistance

*raises hand*

Yep, sounds like me as long as the assistance is for trivial matters. If I forget the syntax of the css animation property, a quick in-IDE chat question is more convenient than looking it up and the question is dead simple enough to feel assured the answer is correct. But I'm not going to have the AI write core logic and project structure.

46

u/Bitwise_Gamgee Jun 21 '23

Learn to write the code yourself?

-25

u/ApplicationCreepy987 Jun 21 '23

Also stop using a calculator, stable defusion, car, Google and for God's sake don't use stackoverflow. /s

10

u/Emergency-Prune-9110 Jun 21 '23

Not sure why your getting down voted. I use chat to help me learn code. Its not perfect, but its helps explain code in a way thats easier to understand. Use it for statistic concepts all the time too.

Point is, its a tool, and one thats gonna be as common as the cell phone really soon.

3

u/ApplicationCreepy987 Jun 22 '23

I knew I would. Luddites abound and I purposely tempted them out.

-27

u/bosstrasized Jun 21 '23

Or don't?

1

u/Hot-Shine8245 Feb 01 '25

its complete garbage, absolute horrid

1

u/surim0n Feb 01 '25

are you a bot

1

u/[deleted] Dec 01 '23

hi, i'm currently using chatgpt 3.5 and i'm creating some complex projects as a beginner. chatgpt 3.5 will randomly remove code, randomly send code from like 45 minutes ago, it will hallucinate what you're asking for and add random changes... the trick is that you keep a file with the most active and working script... show the bot your script and say i don't want you to send me any code fixes i want to chat about the script, send me the entire process list for the script and the execution order... he will print it out in detail, make sure its perfect, if it's not ask the bot if he knows how you could change the execution process at .17 where it's doing this but i want it to do this, and the bot will say yes you could make xyz changes, then send the entire working script again and say append the changes to this document and send me back the entire script in full, and it will listen, then ask for the execution and process list again and make sure it's very detailed and ensure it matches what you've asked because like i said it's an idiot and hallucinates, then run your script....

get used to learning to read the code because most of the time now i don't need to run the code to know the bot has hallucinated or made a mistake in understanding me, so make sure when you're happy with somethign your'e copying it to the bot and saying, break down the logic of what is happening here and explain every single detail of the code to me in full and even re-write the script again yourself understanding it all as you go... anyway good luck

1

u/surim0n Dec 01 '23

thanks for replying. lots of development over the last 5 months!
I use cursor now and it has a gpt4 api integration which gives it pretty good results

6

u/[deleted] Jun 21 '23

ChatGPT is atrocious in writing Python code, the best course of action is to learn yourself.

3

u/carlhines Jun 22 '23

It helped me with a educational flask project though. I used it to optimize some database queries. I knew what I did was not very efficient, but I didn’t even know what to look for. ChatGPT helped me to phrase my question, so that I could find a solution.

1

u/ZuulRulesOk Aug 07 '23

Totally agree.

To use it best you have to understand python first.

Use it write small snippits of code,

check everything it writes,

If it continues to get something wrong 3 times, start again,

watch that it doesn't go in repair circles. by that I mean it continually trys to fix something till it starts repeating itself.

3

u/QuestionGeneral Jun 23 '23

There doesn't seem to be anything as good as what chatgpt4 was like in March/April. Anecdotally I've seen people mention that Bing search being better than the official openai version. It also uses chatgpt4, but presumably it runs on a different model through the api which isn't open to the public at the moment.

My hope is that they change whatever it was that they modified in the May update, but until then it's best to just write code yourself.

The May updates have significantly nerfed it's conversation recall ability (where it would remember certain commands for 20-30 messages, it will now forget the context within ~3 messages, making long form conversations impossible, it's also completely destroyed the ability to provide large Chunks of code in seperate messages for the AI to reference). It's reasoning is much weaker as well. Just check the official forums for examples.

Also, to people saying do it yourself, I was achieving about 4x more with it's aid. I could drop in very complex code up to about 400 lines at a time and it would provide whole new functions or help me optimise to reduce the size and complexity of my existing code in a few seconds.

Personally I just cancelled my payments as half way through may I realised I was actually loosing time due to correcting errors the AI introduced and wasting time trying to force the AI to understand my instructions.

4

u/POGtastic itertools evangelist Jun 21 '23

Wondering what else the community is using?

Documentation, a textbook or two.

4

u/Odd_Perception_283 Jun 21 '23

Bard has helped me a lot as I learn. I actually want to learn python so I am using it as a learning assistant. When code does something I didn’t expect I ask it why and it explains. I can ask it questions about what is going on inside the hardware. It’s amazing.

I feel really grateful to be learning at a time when this is even possible. It’s helped immensely.

3

u/hotlovergirl69 Jun 21 '23

I think the comments are too harsh. Yes you should first learn the basic concepts of Python. Yes you should firstly familiarize yourself with module docs. But I think chatgpt is a great resource for guided learning if you know what you are asking for.

4

u/ninhaomah Jun 21 '23 edited Jun 21 '23

Why too harsh ?

If I am in IT and I used chatgpt to get a side gig as a surgeon , suppose its allowed , then somehow the op went wrong and I go to r/surgeons to ask why chatgpt not too accurate in which organs to remove ..

What do you think the replies would be ?

And yes , chatgpt is not too bad if the person knows what he is asking and I myself use it to learn and use it as my partner ... but not as my Python brain ... but OT doesnt sounds as if he knows Python at all ? And doing gig ? Then blame chatgpt ?

Maybe that is why the skynet evolve and decide to terminate humankind ...

2

u/[deleted] Jun 21 '23

Worse ? It can’t even do a loop whitout error… just learn to code.

1

u/nidprez Jun 21 '23

I'm wondering if GPT4 is getting worse, or of it is just your python level and complexity of your problems that is increasing. Last one would be logical as GPT can extrapolate answers from a lot of beginner type questions, however less exists about the more complicated ones.

Anyways I use Google and stackoverflow

1

u/[deleted] Jun 23 '23

As a student, I use AI to explain to me in general, nothing specific, read a lot of documentation and google, by searching the web, you can access a lot of info, you learn a lot of details. A good use for chatGPT is to generate random data for you to process. Just my thoughts 😊🙏

-6

u/dubs_32 Jun 21 '23

Uh oh here come the anti-GPT purists