Use ChatGPT to learn to code - the right way

Поделиться
HTML-код
  • Опубликовано: 8 июл 2024
  • Visit brilliant.org/PythonProgrammer/ to get started for free and get 20% off your annual subscription.
    Thanks to Brilliant for sponsoring this video :-)
    ChatGPT with the GPT-4 model makes a very good coding mentor.
    Chapters
    00:00 Introduction
    00:33 You need a mentor
    01:00 Prompting ChatGPT to create a python course
    02:03 A more specific prompt on decorators
    02:40 Tic Tac Toe advice from GPT-4
    03:33 GPT-4 explaining code
    04:40 GPT-4 makes Tic Tac Toe
    05:55 Thanks Brilliant!
    Learn Data Science (affiliate)
    🎓 Data Quest - bit.ly/3yClqbZ
    Learn Python with Giles
    🎓 Exploratory Data Analysis with Python and Pandas - bit.ly/2QXMpxJ
    🎓 Complete Python Programmer Bootcamp - bit.ly/2OwUA09
    📚 My favourite python books for beginners (affiliate links)
    📗 Python Crash Course 2nd Edition amzn.to/33tATAE
    📘 Automate the Boring Stuff with Python amzn.to/3qM1DFl
    📙 Python Basics - A Practical Introduction to Python 3 amzn.to/3fHRMdb
    📕 Python Programming An Introduction to Computer Science amzn.to/33VeQCr
    📗 Invent Your Own Computer Games with Python amzn.to/3FM3H4b
    🆓 Free Python Resource
    python-programming.quantecon....
    (This is a great introduction to python)
    ⚙ My Gear
    💡 BenQ Screen Bar Desk Light - amzn.to/3tH6ysL
    🎧 Sony Noise Cancelling Headphones - amzn.to/3tLl82G
    📱 Social Media
    / gilesmcmullen
    / gilesmcmullen
    👌 SUBSCRIBE to ME!👌
    / @gilesmcmullen
    #chatgpt #learnpython #chatgptcoding
  • НаукаНаука

Комментарии • 66

  • @gilesmcmullen
    @gilesmcmullen  Год назад +5

    Visit brilliant.org/PythonProgrammer/ to get started for free and get 20% off your annual subscription.
    Thanks to Brilliant for sponsoring this video :-)

    • @user-pv3gl1sc3h
      @user-pv3gl1sc3h Год назад

      @gilesmcmullen, you did not answer the main question, why is learning Python programming at all today if GPT-4 programs faster and more competently?

  • @consortiumideiasconsultori2457
    @consortiumideiasconsultori2457 Год назад +25

    I like the idea of having a mentor with infinite patience for your mistakes, and guidance out of them.

  • @krzemian
    @krzemian Год назад +54

    One other idea: give ChatGPT some good code (or have it generate it) but ask it to comment out some of the key logic, leaving text explanation of the logic instead, so that you can fill in the blanks yourself and hence get some active recall (akin to how Benjamin Franklin learned to write so well, by cutting out words from high quality essays).

    • @davidcmpeterson
      @davidcmpeterson Год назад +2

      That's a genius idea! Nice analogy with Ben Franklin too.

    • @SWINDISA
      @SWINDISA 4 месяца назад

      Great idea. Whar would the prompt look like?

  • @Anduwaithe
    @Anduwaithe Год назад +5

    Thanks for the video! I haven't done any coding since the '00s, but I got back into doing it as a hobby this past weekend because I realized that I could use Bing Chat as my coding mentor. And it was this renewed interest in Python that led me to subscribe to your channel a couple of days ago, haha.

  • @fraac
    @fraac Год назад +8

    i've been learning python (coming from perl) by asking chatgpt to code things and then asking it to explain things i don't understand. i think this approach should scale to large projects, while i arguably never _know python_ in the conventional sense. this is probably the near future of coding, and what we consider coding will be seen as like writing in assembly language. that big an evolution, overnight

  • @ergohash2517
    @ergohash2517 Год назад +3

    tried it today for the first time and my mind is blown. I am most impressed how you can tell it in plain language what you want to change and it will give you an updated version of the code. Rinse and repeat till you get something working. I had no practise or knowledge on how to use Html canvas and was just asking it to make me simple animations, game, etc, react to events, display a counter in the corner of the canvas that counts my clicks on the bouncing circle, etc. its really impressive and kind of depressing at the same time

    • @buak809
      @buak809 Год назад

      How can you try it out exactly? YOu gotta pay first? Be "chosen one"?

  • @chrismcgowan5180
    @chrismcgowan5180 Год назад +2

    Got very excited with your first video on GPT and making exams and curriculum etc.
    But for Medicine, it is quite bad

  • @faridparvez
    @faridparvez Год назад

    Gr8 info vid.
    Please make a vid on roadmap to learning python specifically for stock chart analysis , getting trade signals using chart and statistical analysis of stocks.
    I mean make a vid on course tailored cut for only stocks analysis.
    Regards
    Farid

  • @amandamate9117
    @amandamate9117 Год назад +4

    even better if you use GPT-4 together with Bings chat feature because it has access to the internet

    • @jamestakac8951
      @jamestakac8951 Год назад

      Don't forget that bing chat is using gpt 4. Been using that as well as well as a number of the alternatives.Each has its strengths and weaknesses imho. Up to you to decide which is best for you.

  • @KerishaStewart
    @KerishaStewart Год назад

    Ran the same prompt you did for the graphical tic tac toe. It gave this `Creating a full graphical Tic Tac Toe game in Python requires quite a bit of code. I'll provide you with a basic outline of how to do this using the Pygame library.`
    It gave an outline with no logic....
    Using GPT-4

  • @bomapdich
    @bomapdich Год назад

    the only problem I had is when we start a new chat, it doesn't retain the information from the previous chats. And I don't want an infinite long script of information that can be pretty hard to navigate. Anybody has some suggestion for this issue

  • @samaeltartaro
    @samaeltartaro Год назад

    How are you using GTP-4? I looked about paying plus and even doing that I wouldn't be able to use CHAT GPT-4.

  • @CallMeMilenko
    @CallMeMilenko 6 месяцев назад

    Another thing you can do is ask chatgpt what parameters does it require. If you don't really know how to be specific then let it ask you the specifics.

  • @captainofthewhitetower
    @captainofthewhitetower Год назад

    Hey, idk if you would ever see this, but here it goes. So I finished a bootcamp and udemy course on python. I still feel highly not confident. I got accepted to an internship which I use chatgpt a lot. Literally I cleverly use it and manage to fix issues etc. How can I improve my skilss in python when there is chatgpt? Should I solve a hackerrank problem daily? I mean i dont want to be a chtgpt coder.

  • @jamestakac8951
    @jamestakac8951 Год назад

    Been doing this since gpt 3 for about a month. And I only found out about it during all that hype. Maybe a quick learner to start with?

  • @KristofferEngstrom
    @KristofferEngstrom Год назад

    "It can solve the fine structure constant, and that was pretty good" 😆

  • @techtalk6365
    @techtalk6365 Год назад

    man you are really cool always like your video and pure british accent , love from Bangladesh

  • @bradhenry9395
    @bradhenry9395 Год назад

    Hi Giles, being a huge fan of Tkinter, could you please make a video focusing on ChatGPT and python GUIs. I have tried a few prompts and would love to see you insights.

    • @jamestakac8951
      @jamestakac8951 Год назад +1

      There's no reason you can't apply what's shown in this video and substitute tkinter to make gui programs. It's much the same but you change the subject/prompt to reflect what you want

    • @bradhenry9395
      @bradhenry9395 Год назад

      @@jamestakac8951 Yeah the tkinter is going well with some tweaking in what i ask for, getting some good responses. Looking forward to trying GPT4 as GPT3 seems to be running out of characters before my code is complete.

  • @daverei1211
    @daverei1211 Год назад

    I’ve found ChatGPT 3.5 not as good writing code as GPT 4

  • @2ru2pacFan
    @2ru2pacFan Год назад +2

    Is there any point learning to code now if it does it all for us? 🤔

    • @Howard2k79
      @Howard2k79 Год назад +7

      It doesn’t. It can do simple things. It helps with that and I use it every day. But to create complex software which does exactly what you want it to do, it would require a enormous amount of input for it to create something even remotely close to what you want it to be.
      As I see and use it, is using my own knowledge to break down complex programs and algorithms to a point which is easily communicateable (is that a word?) to ChatGPT. Using the resulting output in my program painting the big picture. And that’s it’s strength. It doesn’t make us programmers useless, it makes us orchestrate it and putting the software together as needed and as we please.
      ChatGPT doesn’t replace you, it makes you better and faster programmer.

    • @HessSR
      @HessSR Год назад +1

      I guess it’s good to learn so you can understand the code it gives you and test it and see if it works properly

    • @juanmacias5922
      @juanmacias5922 Год назад +2

      A different you-tuber talked about how it might make some Junior Developers obsolete at first, while Seniors have these chat bots create boiler plate code. I feel that until it is actually artificial intelligence, there will still need to be someone baby sitting the code, not to mention startups, I don't foresee many of them not hiring developers.

    • @jamestakac8951
      @jamestakac8951 Год назад

      @@Howard2k79 It's also good at creating boilerplate code. But keep in mind that it makes mistakes. I'd highly advise having a reasonable grasp of the programming language(s) you wish to ask it to help you with before using it for that purpose. Why? Cuz when it gives you incorrect code (and it does here and there), you won't know what to do with it or how to get gpt to fix it

    • @jamestakac8951
      @jamestakac8951 Год назад +1

      @@juanmacias5922 Very astute observation imho

  • @TRUELiGHTERS
    @TRUELiGHTERS Год назад +1

    my version of chatGPT is not GPT 4 , how to make it version 4

    • @proxy1374
      @proxy1374 10 месяцев назад

      Buy the version 4 subscription

  • @Gutenmorgenside
    @Gutenmorgenside Год назад

    It's noughts and crosses ! Tic tac toe indeed 😀

  • @InimitaPaul
    @InimitaPaul Год назад +2

    Judging by what I’ve been reading the only jobs for the very few coders that will remain employed within the next ten years is to check code rather than write it and it will be a very monotonous task. If you enjoy it or want to hack then fair enough.

    • @markgreen2170
      @markgreen2170 Год назад +1

      @@innocentiuslacrim2290 yes, remember the 'paperless office' lol, I think more paper was consumed with computers than ever with typewriters! And there are still billions of lines of cobol in play, I suspect we may see a 'boom' in coding projects...

  • @taeyangbigbang
    @taeyangbigbang Год назад

    HOW TO ACCESS GPT4? DO YOU NEED TO UPGRADE?

  • @volodyslove
    @volodyslove Год назад

    What do you think about our future? Will AI replace us as programmers?😢

  • @pointcodding
    @pointcodding Год назад +4

    Bro first comment 👍👍

  • @oan9402
    @oan9402 Год назад

    Lol, teachers mad sweating rn

  • @jetsethero7978
    @jetsethero7978 Год назад

    Id pay money to hear and watch this dude scream "FUCK" as loud as he can! 😂😂😙😙

  • @jwoods9659
    @jwoods9659 10 месяцев назад

    Its good a tool, your not going to know what to type for eveything. So use it to guide you making small project. Your learning concepts that way, it is only a tool to save you time. Talk to it like a person.

  • @justkaz16
    @justkaz16 Год назад

    441

  • @ilkelfonksiyon
    @ilkelfonksiyon Год назад

    Bruh it has 25 cap for 3 hours and you r recording a video like that. Are you good?

  • @SomeKidFromBritain
    @SomeKidFromBritain Год назад +1

    Weak

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

  • @itzhexen0
    @itzhexen0 Год назад

    People are just going to realize they can do all of this themselves even if they didn't know how to before and decide they don't need you even if it takes some effort.

  • @StupidInternetPeople
    @StupidInternetPeople Год назад

    Stupid out of context thumbnail faces are unnecessary 😢

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python

    • @jamestakac8951
      @jamestakac8951 Год назад

      You can use the exact same ideas presented in the video for that purpose

  • @ashishsinvh6235
    @ashishsinvh6235 Год назад

    Please make video on review Fluent Python