r/learnpython • u/jlew24asu • Dec 09 '22
I finally got over "the hump"
I hate to admit it, but after literally years of reading books and practicing, it finally hit me. I finally got that light bulb as I was coding.
how?
github co-pilot and chatGPT.
yes I know these are robots but its just so easy to understand now. I was struggling through a script like I always do, and finally decided to use co-pilot. it would literally tell me the code I need. and if I had a question...."this isnt printing all I need" or "print this full list but break it up into parts", just pop it into chatgpt and boom, its all there.
given my years of trying to learn, the answers came naturally after it was perfectly explained and shown.
this robot stuff is going to really change things.
11
u/Independent-Dealer21 Dec 10 '22
I feel like this chat thread was created by GPT
2
u/QultrosSanhattan Dec 10 '22
That tool is just too good, it's like VHS porn in the 90'.
As an objective measure. GPT is wrecking havoc at AoC's main leaderboard. Some challenges can be solved in seconds using it and people are complaining.
GPT is basically the Stockfish for Chess.
2
u/madhousechild Dec 10 '22
I've heard of co-pilot but not the other one. These are not free, are they?
10
u/jlew24asu Dec 10 '22
co-pilot is 60 day free trial. $10 a month after, which is nothing for the knowledge you gain.
chatGPT is free (openAI account). and only a few days old.
for perspective, my company paid for a 3 day global knowledge python course recently, which was like 3k. it was completely useless.
6
u/madhousechild Dec 10 '22
Three-day course for $3000!? Wow, I'm in the wrong business!
6
u/jlew24asu Dec 10 '22
I lied. $2500
4
u/madhousechild Dec 10 '22 edited Dec 10 '22
So was it useless because you already knew all this stuff or they didn't actually teach it properly? Because it sounds like a decent amount to cover in 3 days.
Create and run basic programs
Design and code modules and classes
Implement and run unit tests
Use benchmarks and profiling to speed up programs
Process XML and JSON
Manipulate arrays with NumPy
Get a grasp of the diversity of subpackages that make up SciPy
Use iPython notebooks for ad hoc calculations, plots, and what-if?
Manipulate images with PIL
Solve equations with SymPy
I just finished a university extension course whose description listed 9 topics on data analytics. The last 5 were never even mentioned.
(Holy moly adding this: I just looked at the expanded list of topics for your course, and it's like 5 college courses! How the hell do they do that in
34 days?! This is one section alone:SciPy subpackages
Clustering
Physical and mathematical Constants
FFTs
Integral and differential solvers
Interpolation and smoothing
Input and Output
Linear Algebra
Image Processing
Distance Regression
Root-finding
Signal Processing
Sparse Matrices
Spatial data and algorithms
Statistical distributions and functions
C/C++ Integration
4
u/jlew24asu Dec 10 '22
I exaggerated. not totally useless, but like you said, how much can you really cram into 3-4 days. you go over some examples, and then send you home with some documentation, that isnt necessarily exclusive or hard to find on your own.
and its definitely not something I would spend 2500 of my own money on.
1
u/madhousechild Dec 10 '22
Yeah, no way are they teaching principles. They must assume that students know what FFTs are, for example. I imagine a lot of it goes over people's heads or has nothing to do with their work, and that would make it seem useless.
1
u/madhousechild Dec 10 '22 edited Dec 10 '22
Still pretty good (for the instructor).
I asked my last company to a training program, I think it was one day for $900. My manager never thought they'd okay it, but that is the going rate and they didn't even blink.
1
3
u/33498fff Dec 10 '22
So you didn't get over the hump. You simply had a tool do the work for you?
-1
u/jlew24asu Dec 10 '22
same way books, stackoverflow, and google did for others. the tools I'm using just do it faster and more efficiently. you'll soon be that guy who says "back in my day we read automate the boring the stuff".
15
u/DeckardWS Dec 10 '22 edited Jun 24 '24
I love ice cream.
7
u/Kryt0s Dec 10 '22
You just talk to it, like you would to a normal tutor. "What's the best way to include list comprehension in this function I wrote?" then you post the function with the question and it will tell you.
If you got any questions concerning the answer, just ask.
49
u/PhysicistStacker Dec 10 '22
ChatGPT really is a game changer. It empowers us to work creatively, which is one of a humans primary advantages to computers, thus integrating our imagination with a computers logical syntax management, creates a symbiotic relationship where the interplay could revolutionize how our society functions.
28
u/IndyDrew85 Dec 09 '22
I'm in the same boat, have been going hard on these two tools this last week and it's such a game changer. My problem has always been syntax, not the logic. As someone who's self taught it's been a slog googling every solution, digging through forums and books, but that's all changed now. It just picks up on exactly what I'm trying to do and fills in the gaps of knowledge. It's basically acted as tutor answering every question I've had with correct answers. Not sure how I can ever go back, or how your average programmer will be competitive in the future. Times are changing
5
u/LongtopShortbottom Dec 10 '22
My opinion is that having a decent understanding of mathematical concepts, being able to understand business problems, and most importantly, the ability communicate to non-technical peers is what separates the good programmers from the bad. Knowing syntax is cool but that’s only 10% of what this is about anyway.
To me, copilot and ChatGPT are like cruise control on a car. You still need a competent driver.
6
u/Icelandicstorm Dec 10 '22
I share the same sentiments. I’ve been a 10 year hacker at Python, knowing how to do things, but never really becoming a master at the craft. Python is one tool of many for me to use so it’s understandable that I’m not at a professional developer level.
With ChatGPT and a lot of sweat equity I can see myself accelerating my skills in Python. What would be phenomenal is a version that allows you to input your code and it provides a line by line critique, with suggestions for improvement. Perhaps even a sliding scale for how much help to give.
If you could learn chess from Magnus Carlsson, wouldn’t you? Obviously you still wouldn’t be a master but you have a shot at being a lot better than you are today. This is how anyone masters a skill.
2
u/Oguinjr Dec 16 '22
You can do that currently to an extent. I’ve asked it to write comments for the code I asked it to review.
9
u/Subtotalpoet Dec 10 '22
2 months into learning from home and struggling. this is probably the game changer i need. thanks for sharing.
3
u/Electronic_Coffee927 Dec 10 '22
Bro thank you for mentioning chatGPT. It is actually crazy how it can solve all programming questions with explanation.
4
2
u/iggy555 Dec 10 '22
What is chat GPT?
1
u/Hindesite Dec 10 '22
An chat-based AI technology from OpenAI, the same group that created Dalle2.
Here's my first interaction with it just this morning:
Me: "Please explain the general scope of your capabilities."
AI: "As a language model trained by OpenAI, my primary function is to assist with generating human-like text based on the input that I receive. I can provide information on a wide range of topics, including general knowledge, but I'm not able to browse the web for information like a traditional search engine. My training data comes from a variety of sources, including online articles and books, so I can provide relatively comprehensive answers to many questions. However, my responses are based on the information that I was trained on, so I may not have access to the most up-to-date information on a given topic. Additionally, my abilities are limited to providing text-based answers, so I'm not able to perform tasks like conducting online searches or performing calculations."1
2
u/StrasJam Dec 10 '22
ChatGPT is just great for really digging deeper on stuff. On stackoverflow you can read an answer but often I have follow up questions like "why did you do X", "could you have also done Y", "what happens if I did Z". On SO, you can leave such a comment, but it's gonna be a while till you get an answer, if at all. With ChatGPT you get an answer right away and then you can keep digging and getting more answers. Really fantastic learning tool
2
2
u/PeacefullyFighting Dec 10 '22
Oh it feels so good doesn't it? Now you can pick up new languages faster too. I have a tech degree but focused on database. I feel like I'm messing up best practice but at a point I can typically make whatever I need to work.
2
u/MrSuspicious_ Dec 10 '22
Never used github copilot but chatgpt has been very helpful, not only have I had a lot of fun with it just telling it to code random things, but it's actually taught me a lot. Although I've been coding in python for 5 years there are certain tasks that will pop up that I feel that writing in bash is more appropriate. I understand most of the fundamentals of bash but I asked chatgpt to write me a tutorial and it very quickly clarified the parts I didn't understand. It isn't going to replace programmers, a great quote I saw somewhere on this subreddit was "chatgpt won't replace programmers just as excel didn't replace accountants" or something along those lines, and that rings true. It won't replace programmers but it's undeniably a useful tool
1
u/AriaMaryott Dec 10 '22
Is Co-Pilot the thing on VsCode? I think I saw a thing about it. You can type out in English what you need to do and it gives you the correct code needed to do that thing right? I would totally use it but I only use terminal due to using SSH all the time. Lol
3
u/scooter95653 Dec 10 '22
Is Co-Pilot the thing on VsCode?
Yes Copilot is available on VS Code as an extension in the marketplace. After installing, you will need to log into your Github account and enable Copilot with a button in the bottom right corner.
You can type out in English what you need to do and it gives you the correct code needed to do that thing right?
With Copilot enabled, you can type a comment, press CTRL+Enter, and a window will pop up with some potential solutions to the comment that you wrote.
1
u/jordanar189 Dec 10 '22
What I’ve found is that if you can figure out the right way to ask questions to ChatGPT, it may not always give you exactly what you need but it will always put you on the correct path. Whereas, with google you’ll find 3 different ways to do the same thing but only one of them is going to work with your code
1
u/Round_Log_2319 Dec 10 '22
This new generation won’t be asking if they can use Google in a interview, they’re going to be asking to use chatGPT now.
1
u/Steppenbar Dec 10 '22
I've been away for a while but your thread caught my attention. Are these things I need to access on GitHub or can they be added as extensions on VScode?
-1
-5
u/here_walks_the_yeti Dec 09 '22
Another chatGPT
I recommend automate the boring stuff
10
u/jlew24asu Dec 09 '22
read it cover to cover and looked back on it countless times.. doesnt hold a candle to the power of chatgpt.
5
u/colexian Dec 10 '22
This may be anecdotal but I've already read automate the boring stuff 'cover to cover' (pdf) several times, and ChatGPT recommended async for my discord chatbot and immediately fixed an issue I've been stuck on for weeks. Improved performance dramatically, and it took the damn bot 7 seconds to recommend, explain, then detail how to implement it.
5
u/Cycling_All_The_Time Dec 10 '22
Curious to know what question you asked it.
3
u/colexian Dec 10 '22 edited Dec 10 '22
I asked it how I could improve the performance of my discord bot with python. It told me to use async and how to implement it. I knew about it in passing but didn't think to use it in this context.
EDIT: Just tested it again "How can I improve the performance of my discord bot written in python?" the 2nd suggestion is asyncio. Then asked it how to impliment asyncio with my code and it told me exactly how to use it, and how to hook it in with the async reddit API library
1
u/spmccann Dec 10 '22
I wonder though if you haven't a basic knowledge from automate the boring stuff would you have enough knowledge to ask the right questions , same as google search. Although chatgpt does look pretty cool , might take it for a spin over Christmas.
0
Dec 10 '22
[deleted]
6
u/Shadecraze Dec 10 '22 edited Dec 18 '22
not op but,
In the past (and still today) I feel like it's just beyond me; that I simply don't have the mind to program.
I have a bachelors in a program called mathematical engineering, and i feel this way all the time. It stopped me from actively wanting to learn python. Just came across this thread on my main page. I just work with sql and stuff now. BUT I have a lot of acquaintances that are not very close to math, and still trained themselves on python with various types of education.
To me, if your hearts not in it, your brain is definitely not gonna be in it, and if your heart's in it, its gonna force your brain to also be in it. I dont knoew how much it has been since you last started learning python again, but i'd say give it time, pick an achievable yet hard milestone for yourself, and if after that milestone you feel like your mind's getting better at it, why not continue
5
Dec 10 '22
[removed] — view removed comment
3
u/Andrew_the_giant Dec 10 '22
Answer? Yes. You've gotta think about your question first. Once you grt the answer you learn.
If someone just tells you a fact that youre not wanting to know will you learn it or forget it?
0
3
u/systematico Dec 10 '22
I studied physics in two different countries.
In country A, most courses would have 'problem classes' were the professor would solve problems for us, and occasionally ask us to solve them on the board. Then we'd have unmarked problem sets to do in our own time to prepare us for the exam.
In country B, there were 'problem classes', but the students, us, were supposed to 'talk to each other, solve the problems ourselves, <<modern education theory sentence that barely makes sense to human beings>>, etc', and then we'd have take-home assessed problems. The professors would only solve the simplest of examples in class, mostly to drive the explanations forward. I did not learn much in country B, and the students who had studied there from the start were at a very low level in math - they simply hadn't seen a professor solving real problems 'well'.
My conclusion was always that... you shouldn't reinvent the wheel. It's OK and good to see solutions while you learn...
And if the AI changes the world, you will go without a job unless you get suggestions from an AI! (-:
2
u/Kryt0s Dec 10 '22
You need to ask questions to get answers. How do you come up with questions? By thinking about a problem. How do you learn? By thinking about a problem and applying solutions and seeing what works.
0
Dec 10 '22
[deleted]
1
u/WhackAMoleE Dec 11 '22
Yeah yeah that's what they said about Common Business-Oriented Language, or COBOL. Once the sales reps can write code, you won't need those pesky programmers anymore.
94
u/outceptionator Newbie Dec 10 '22
ChatGPT replaces stackoverflow and google for me. There's quite a bit it makes mistakes on so good to break the problem down as much as possible and then ask. Amazing tool still.