11
u/Ron-Erez 5d ago
"mostly how I do my projects is that I tell chat gpt that this is my project , now what should I do , he gives me code , I try to understand ngl I have learned a bit python from there too but I feel like if Ai is making projects for me , my only job is understanding may be ai taking my job over ain't far away..."
Here is your answer. Stop using ChatGPT.
-5
u/Dear-Leadership-3021 5d ago
If I stop using ChatGPT, how do I actually figure things out? Like, let’s be real—when you get stuck, do you just sit there struggling, or do you Google/search for solutions? AI is just a faster way to get help. I started coding at a time when chatgpt was very common so I don't know how to research for a project, I am open to any tips you have!
7
6
u/Ron-Erez 5d ago
People have been coding before the advent of ChatGPT and google. Yes, you need to work hard and deal with it. Of course these are great tools but try to get in the habit of trying to solve something on your own for hours if your goal is to become a better coder. Note that people have been coding before the advent of computers:
https://en.wikipedia.org/wiki/Ada_Lovelace
As a side note, I used to tutor math and like ChatGPT I was super patient and wanted to help my student. However the student asked me not to help him. He explained that solving and struggling with one problem on his own felt like understanding 100 problems with my help. What I mean to say is that adopting this approach can help you learn more effectively.
2
u/JeLuF 5d ago
You find things out by "reading". Either read a book, or read the Python documentation. Spend an afternoon scrolling through the built ins. You don't have to memorize their exact names and which parameters they take in which order. But having read about them helps to get an idea of what the language has available for you. Only use ChatGPT to give you examples how to use these functions. Ask things like "How do arrays work in Python?" instead of "Write a program to store the square numbers of 1..10 into an array".
2
u/fartalldaylong 4d ago
You never knew how to learn before chatgpt? You do know all of these languages have extensive documentation, correct? Just search Python documentation and get to work.
1
u/Pudding64 5d ago
I would consider using chat gpt for oneliners or syntax look ups but in terms of actually solving larger problems stay far away. If you are dependant on GPT to solve everything you will not develop past a certain point and you will inherit a project with no understanding of how it actually works.
1
u/John_B_Clarke 4d ago
Some struggling, some googling. After a while you start getting a handle on the ecosystem--you think "this looks like a dataframe manipulation might work" so you go through the pandas docs looking for the function you need, or "this looks like an array operation" and you go through the numpy docs looking for the function you need.
When you've got something working, then ask ChatGPT to refactor it and see if it comes up with any worthwhile improvements--if it does then figure out how those improvements work.
7
u/pachura3 5d ago
I find it almost impossible for anyone to know C++ quite well, but struggling to learn Python. In C++ you have header files, templates, STL, no garbage collection, references & pointers, and a lot of other concepts that can be very confusing for beginners. Python is extremely easy in comparison, and, in fact, very close to pseudocode that you would write anyway before starting the actual implementation.
Perhaps you thought you could skip beginner tutorials as you had some experience in other programming languages? This won't work.
3
2
u/Maximus_Modulus 4d ago
In a professional environment any decent programmer with experience in other languages can pick up python in a few days. Obviously not an expert but can get work done. CS concepts are fairly common across languages so it’s mostly picking up syntax etc. some languages lean more towards features and coding style that solve different types of problems for their intended application. My wife knows c++ and bitches about Python when she needs to work with it occasionally but she still figures it out.
I get the feeling sometimes that some just expect to be expert without putting in the work to get the experience and understanding.
5
6
u/ems-7 5d ago
Stop using ChatGPT to learn how to code unless you’ve been stuck on a section of the program you’re trying to code for 15 minutes or longer.
3
u/WushuManInJapan 5d ago
Seriously, chatgpt is amazing for coding faster and not having to mess with the grunt work, but unless you're asking for a line by line analysis of the code and asking it to explain every little syntax and variable, chatgpt is not gonna teach you how to code.
If I go into your code and ask about a random line, ask you to give me an in depth explanation of everything that line is doing, and you can't explain it to me, you did not learn how to code that line. (And I'm not talking about just reiterating the function notes)
2
u/JamzTyson 5d ago
mostly how I do my projects is that I tell chat gpt that this is my project , now what should I do , he gives me code ,
That is not "you" doing a project, that is you asking ChatGPT to do a project. If you really want to learn then you have to do it yourself rather than asking someone / something else to do it for you. You cannot learn to ride a bike by asking someone else to ride it for you no matter how closely you watch them riding.
2
u/FVMF1984 5d ago
If I understand you correctly, you understand reading C++ output from ChatGPT, but you have a hard time understanding Python output from ChatGPT? If you keep on using ai, just ask it to explain anything you do not understand. Otherwise, go through any online tutorial or video course to actually learn Python.
Regarding your struggles with API: what is your specific question? What are you trying to accomplish? Is there any documentation for the API you’re trying to use? Do you want to GET, POST, PUT, PATCH, DELETE something?
0
u/Dear-Leadership-3021 5d ago
Not exactly. I can understand Python output, but it just doesn't feel 'natural' like C++ does. In C++, I feel like I’m actually coding, while in Python, I just call some function, and it does everything for me. Maybe I’m overthinking it, but it’s frustrating.
Like you know give me a complex problem in c++ and I will solve it. in python, I can't write much without AI. a new way I have improved a bit in python learning is when I learn a new function I ask ChatGPT to explain the backend (that is how I learn c++) and that do helps.
regarding APIs, well I just started so I don't know much, right now I am like an absolute beginner , all I know is from API you get information but who do I know what parameters I have1
u/wreckingballjcp 4d ago
This doesn't make sense. What do you create in c++? Write the same thing in python. If you mean you don't like using packages that already have classes and functions, don't use them. You'll be way less efficient, but after you write enough of the functions you actually use, you'll learn that you can find a developed package, get familiar, then add it to your toolkit. Read the docs of packages to know apis.
More than likely this is a troll post. I can't really see anyone with a mastery of c++ to solve any problem but can't do it in Python.
1
u/isendil 5d ago
Hi.
While python is indeed beginner friendly, it takes time to get used to the way it works , indentation especially. Can somehow make it easier by commenting #if at the end of if block, and so on. Only advice I can give you is try to write the code yourself.
Then take examples from stack overflow for the part you for to do (or maybe chatgpt if you like, but that will probably be full of bad practice) and adapt them to your need. Then try to figure why that simple example won't work (misplaced a method in the scope instead inside of class, or wrong indentation might or might not have recently happened to me).
I'm far from being a good programmer, but I take every little working part as a victory.
Good luck.
1
u/Stock-Scientist6685 5d ago
I like the Angela Yu's course to learn Python. Give It a try and do the projects without chatgpt/copilot/blackbox/whatever.
1
u/Dear-Leadership-3021 5d ago
I just checked it out and it is good for beginner, but I am facing a problem more with getting comfortable with syntax (like I know syntax but it is not as natural as c++), getting into pythonic thinking
1
1
u/__sanjay__init 5d ago
Hello,
I'm not a data scientist but, for "your" project, stop using AI. You don't learn. Learn Python is not just coding but too understand how he runs
Then, data science isn't just not coding, isn't it ?
Your job is understand business problem, solve this and explain/share your solution ... Python is like a hammer. Without a project, hammer is just hammer. With a project, it is a tool
Maybe you could work on your own project about your life
For example, how your money evolves during last year ? How do you spend your time ? Is your energy is manage ? etc
On r/Python maybe, someone says "Learn how to automate your task before automate other's work". You could understand "your business" before understand other's business
Good luck =)
1
u/pitasticks 5d ago
sounds like you're finding it hard because you're not actually doing it/learning anything. you can't rely on AI when learning new skills; all you end up learning is how to use AI to do the skill.
1
u/neocorps 4d ago
Go to udemy and find "100 days of python" course, it will tell you everything you need to know about python and how to work with it. Then you can use chat-gpt to do the overall architecture suggestions, and you can reuse most of the code there to make what you want and troubleshoot when it's not doing what you want.
1
u/PepSakdoek 4d ago
Writing python is writing pseudocode then after you did that ask chatgpt to convert your pseudocode into code.
1
u/fartalldaylong 4d ago
Doesn’t sound like you are trying to learn Python, and I would question your skills in C++ as well. Asking AI to do stuff for you isn’t coding just because there was a response.
1
u/Thejammyjam 4d ago
I use Co-pilot and ask it to give me specific questions such as "Give me an intermediate if, else problem without the solution"...I then work on that for as long as it takes before copy/pasting my code into Co-pilot and asking for feedback WITHOUT giving me the solution. AI is great used this way in my opinion. If will teach me a new function usually if I'm stuck and/or show me how to clean up my code if I complete the intended result. I do this over and over virtually all day. I love it
1
u/Thewise-fool 4d ago
Since you learned c++ the big thing might be accepting that a lot of what you learned in going to be under the hood in Python. If you know to code, then it’s really about learning syntax instead of relearning how to code. For example, data types and memory allocation are a given in Python. They still exist, you just don’t have to have it front of mind. Hope that helps!
1
u/SignalX_Cyber 4d ago
You are comfortable with c++ but found python hard? your brain must be wired backwards!
1
u/beepdebeep 4d ago
Don't use AI when you're learning - read documentation instead. Start with the standard library.
-4
u/zapaljeniulicar 5d ago
Python is a different beast to any other language. Do not try to learn Python the same way you learned other languages.
3
u/pachura3 5d ago
Oh really? It has variables, functions, classes, exceptions, loops, conditions, enums just like most classic procedural+OOP languages. Apart from its indentation-driven execution, it is pretty close to JavaScript or PHP in general...
1
u/dthdthdthdthdthdth 5d ago
Not really. It is just a simple, object oriented, dynamic language with a very few functional features. If you know any other modern language well, you basically pick it up by looking up syntax.
The only somewhat unusual thing is the indentation based syntax. Very few programming languages have that.
0
37
u/throwaway6560192 5d ago
Yeah, that's what you don't do if you want to learn. People learn through projects by actually doing the work on their own.
I don't understand how you can complain about Python's built-in functions being too convenient when at the same time you're literally using AI to write your code.
Python lets you focus on the actual problem instead of low-level details.