How to Use ChatGPT as a Powerful Tool for Programming

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ •

  • @coreyms
    @coreyms  Рік тому +291

    Hey everybody. I'm trying something new and would like your feedback after the video is uploaded. I get a LOT of comments each day on older videos and it's impossible for me to answer them all. So today, I'm going to try uploading a UA-cam premiere for the first time. The only big difference between a premiere and a regular upload is that I'll be able to hop into a live chat with you all during the launch of the video and do my best to answer questions that way (as long as they're not coming in too quickly). I'll never schedule these premieres far in advance because personally, as a person who watches a lot of UA-cam myself, I hate waiting once the premiere is announced. So I'll always schedule these just a few hours before the video is live so that the wait isn't too long. I do this with regular uploads as well because I like to make sure the video is fully processed and that there are no issues. Sooo long story short, I would love your feedback after the video launches today and to let me know if you enjoyed it better than a normal upload, if you were indifferent, or if you weren't a fan of the premiere style.

    • @astrobiological7058
      @astrobiological7058 Рік тому +4

      Love this format, makes you more "reachable". Is there a chance on asynchronous python? Thanks a lot, love your stuff man.

    • @dnamcknight
      @dnamcknight Рік тому +2

      Welcome back King.

    • @silkogelman
      @silkogelman Рік тому +1

      Planning premieres a bit more in advance has the benefit that people can plan it into their schedule so that you’ll get more questions during that moment vs afterwards.
      I often see premieres as something I look forward to, but I get your feelings regarding the wait time too.
      “I want it all and I want it now.” 🎶
      I like both regular publishing as well as premieres. Premieres feel a bit more connected sometimes (but not when chat is super busy) and interaction through comments can feel personal (and not). 😅

    • @SairMack
      @SairMack Рік тому +2

      Super-cool you are back Corey 👊

    • @trespasserontheloose
      @trespasserontheloose Рік тому +1

      Welcome back @Corey Schafer

  • @geshoow1288
    @geshoow1288 Рік тому +37

    What an absolute flex having ChatGPT recommend you as the top UA-cam Python resource. It ain't wrong!

  • @736939
    @736939 Рік тому +282

    I can't believe, you're back. 😭

  • @stephenriedinger7809
    @stephenriedinger7809 Рік тому +129

    It's great to have you back, Corey!!! The reason that you're at the top of that list is because the information you provide is clear, concise, accurate, and complete. You not only state what to do, but WHY to do it and give examples of what happens when you DON'T do it. One thing that I would enjoy seeing is how you and other developers use documentation. It's a subject that isn't covered well (at least I haven't seen it covered) other than to say check the docs. As an amateur, I will tell you that "the docs" are usually confusing, and so far above my level that they're not helpful.

  • @MLexploring
    @MLexploring Рік тому +146

    ''it's not gonna be AI replacing programmers, it's gonna programmer who use AI replacing programmers who don't use AI'', Perfectly Said.

    • @coreyms
      @coreyms  Рік тому +29

      If anyone knows who originally said that, I would love to give them credit. I just can’t remember where I heard it

    • @mustafakose757
      @mustafakose757 Рік тому +4

      ​@@coreyms I don't think there's a specific person who said it. If you're active on LinkedIn you'll likely come across to this statement in almost every AI-related post.

    • @fursan7525
      @fursan7525 Рік тому +1

      which programmer won't use AI?

    • @zt.5677
      @zt.5677 Рік тому +1

      @@coreyms And AI will not replace junior level programmers either?

    • @amateruss
      @amateruss Рік тому +3

      @@zt.5677 For now... it's not powerful enough... yet.

  • @nothingnewatall
    @nothingnewatall Рік тому +13

    It just took me straight 5 years back when I heard
    “Hey there, how’s it going everybody”
    such a nostalgic moment!
    Super Excited to have you back Corey!

  • @wartem
    @wartem Рік тому +45

    Key points from the video include:
    1. Writing Code from Scratch: ChatGPT can generate Python code based on user prompts.
    2. Optimizing Existing Code: The AI can suggest improvements for existing code.
    3. Explaining Code: ChatGPT can provide detailed explanations of complex code snippets.
    4. Converting Code Between Languages: The AI can convert code from one language to another.
    5. Writing Unit Tests: ChatGPT can generate unit tests for existing code.
    6. Adding Comments and Documentation: The AI can add comments and documentation to existing code.
    7. Starting New Projects: ChatGPT can help start new projects by generating initial code.
    8. Concerns About AI Replacing Developers: The presenter argues that AI tools will not replace developers, but will be a tool that enhances their productivity.
    9. Best Resources for Learning Python: The AI provides a list of resources for learning Python on UA-cam.
    (Generation of time stamps failed, using VoxScript)

  • @subhransu91
    @subhransu91 Рік тому +4

    Hey Corey, I virtually learnt Python and about virtual environments going through your tutorials. You have no idea how much I religiously have watched and asked my teammates and friends to watch your tutorials to learn about Python. I could be an advanced Python programmer thanks to you and your tutorials. You have my gratitude forever.

  • @advaithhl
    @advaithhl Рік тому +31

    Corey, you have no idea how I missed your videos! I've referred your channel to so many people now that I've kinda lost count. The clear and precise method by which you teach things is unparalleled not just on UA-cam, but even in other MOOC platforms. Great to have you back!

  • @Nickle314
    @Nickle314 Рік тому +51

    One thing I periodically do, is to give ChatGPT a class. It then replies with what the class does. Now ask it to critique the class and make suggestions. You can then review them to see if you've missed anything, or if it has any good ideas.
    For a solo programmer, you can use it as a form of code review.
    If you are a team programmer, you can go into a code review prepared.

    • @gustavojuantorena
      @gustavojuantorena Рік тому +1

      Nice use case

    • @brothercaleb
      @brothercaleb Рік тому

      Yeah… great idea there

    • @GBM0311
      @GBM0311 Рік тому +4

      Unless your organization has an api instance, be careful about inputting proprietary information. OpenAI may use the data you submit as training data. Your organization may have policies against that.

    • @Phasma6969
      @Phasma6969 Рік тому +1

      @@GBM0311 Not with the API. Any professional should be using the API, or to opt out of all training in data controls in settings. If your organisation is large enough, I believe OpenAI may provide private instances for GPT.

    • @gJonii
      @gJonii Рік тому +1

      I found GPT-4 is fairly bad when it comes to giving constructive criticism. It can explain what a class does but critique it offers tends to be very soft and vague. With humans, you can expect some personal views, "I like this because of X but I don't like Y", but in essence, ChatGPT only says "I don't like Y" if everyone in the world agrees Y is bad, meaning, it only gives the shallowest and most obvious criticism and anything even slightly opinionated, it just won't touch.
      I haven't found any ways to prompt engineer my way around this either. Even if you feed GPT a criticism as an example of how to critique thingr, GPT-4 just repeats your example and says "otherwise, everything is fine". GPT-4 just won't critique things.

  • @donner7708
    @donner7708 Рік тому +15

    This is exactly how I used ChatGPT to ramp up in my job. The issue I was having is needing to learn NSIS, which is really old with no good resources available other than the documentation, which is extremely confusing considering this was my first low level language that I had to really delve into. Having something that can explain to me what does what, and break down the code I give it to teach me what it does exactly is extremely powerful.

  • @sophiophile
    @sophiophile Рік тому +7

    When it comes to things like:
    * really complicated, multi-level list/dictionary comprehension
    * refactoring inefficient embedded loops to use stacks/queues
    * example cases for packages/modules that I haven't used yet but have really poor documentation
    I usually just hop on ChatGPT and it saves a lot of time.

  • @michealnd969
    @michealnd969 Рік тому +12

    Corey is back, my favourite UA-cam tutor.
    God bless you Man

  • @mike-harvey
    @mike-harvey 2 місяці тому

    The way you are explaining, voice, intonation, and knowledge all together made you a phenomenon.

  • @lamski3286
    @lamski3286 Рік тому +2

    The guy who started my coding journey, welcome back Corey!

  • @TheCouncellor7
    @TheCouncellor7 Рік тому +35

    Normal or Premium it's just good to have you back Corey, man Python is not the same without your tutorial, welcome back kind sir, awesome tutorial by the way, I use ChatGPT to save on research and stackflow etc, a huge time saver

  • @edwin6939
    @edwin6939 5 місяців тому

    Those who say chatGPT is not a tool for programming are wrong. I work at a warehouse and managed to code an application in python that simply allows users to modify invoicies with a simple GUI to interact with and different extraction-modules. All this with zero-minimal programming experience. Along the process I’ve also learned a lot about the structure of code and gotten familiar with different libraries.

  • @alaudet
    @alaudet Рік тому +2

    What an amazing presentation on how a professional coder would interact with ai. You're still the GOAT!

  • @brianevans4
    @brianevans4 Рік тому +6

    Very nice. As a developer, I've found it's helped me to understand unix scripts written by colleagues. It's great at explaining what all the random flags mean

  • @GG-uz8us
    @GG-uz8us Рік тому +2

    You are wrong, Corey. I just asked chatGPT 4 with web browsing the same question, you are still on top of the list :)

  • @subhranilsarkar2605
    @subhranilsarkar2605 Рік тому +1

    Ohhhh! Such a beautiful moment! Corey Schafer, from whom I learned Python, uploaded a video after a decade!!

  • @pkn8707
    @pkn8707 Рік тому +48

    @Corey Schafer, the only thing I can say is I'm excited for your premiere even more than Mission Impossible and Fast X. Have been waiting for your video for so long. Great to have you back. And the way you share knowledge with so high quality videos, is really commendable. Your git videos had helped me a lot, man. God bless you!!

    • @tanned_cosines_
      @tanned_cosines_ Рік тому

      more than MI? hmmm maybe because 7th installment was anticipated.

  • @pietraderdetective8953
    @pietraderdetective8953 Рік тому +2

    This video was posted 17hours ago and there are 18k views already?
    You rock Sir! I'm happy you're back!

  • @niclasbs
    @niclasbs Рік тому +2

    It's great to see you back! You could find thousands of tutorials but nothing even close to yours. Thanks god Corey!

  • @MrDaniel739
    @MrDaniel739 Рік тому +1

    I was led to your channel directly by ChatGPT.

  • @revanshraman
    @revanshraman Рік тому +1

    My friend is back. I can't say how much happy i am to see you active again.

  • @michaelsilberg9059
    @michaelsilberg9059 Рік тому +9

    Thank you Corey. I've been stalling on starting programming for years and this topic lit a fire under me.

    • @coreyms
      @coreyms  Рік тому +7

      Glad to hear that! It's a great tool for learning! I wish it were available when I started. So much potential

  • @salemsuissi5616
    @salemsuissi5616 Рік тому

    the fact that ChatGPT send me to you when i ask "give me tuto to learn programing " it's just wonderful

  • @louisjones8381
    @louisjones8381 Рік тому

    Just starting out in programming. Been stuck on an exercise that was given to me for ages. Couldnt find the solution. Saw your video mate, made an account and ChatGPT solved it in 2 seconds. Amazing AI system!!

  • @narasimhanmb4703
    @narasimhanmb4703 Рік тому

    You might not believe me but trust me, I recently asked chatGPT about your tutorial on Flask and it recommeded to go with your tutorial.
    Though it said, there might be new updates with flask.
    Thank a lot for your service and I always keep praying for people like you. You make the world a mych better place to live in.
    In short, you're not just absolutely awesome, you're kind, humble and very very loveable.

  • @madhubabukencha5037
    @madhubabukencha5037 Рік тому

    Your voice has a special place in my heart brother !!! Your videos have a good number of fans in India.

  • @SandeepYadav93
    @SandeepYadav93 Рік тому +1

    Even chatgpt knows you are the best, we love you corey❤

  • @yorkshireplumbing
    @yorkshireplumbing Рік тому +1

    It has helped me about 50% of the time. Asking it to produce something more specialised like a docker compose for a specific image and environment, it's not very good at, or once I asked it how to remove a 'mailed by' email header with PHPMailer script, it gave the correct code, but missed a very important space which I had to track down, and the code was useless without it. But in that case, it sort of did play the role of a co-worker, where together we eventually solved the problem.

  • @rdhunkins
    @rdhunkins Рік тому

    I have used ChatGPT to help me make some applications to help me at work. One thing I discovered is that if the code gets too long or complex that it will start rewriting perfectly good code, or even go off the rails. So keeping things small and short helps a lot.

  • @eervin123
    @eervin123 Рік тому +2

    It’s so great to have you back, Cory 🎉❤😊

  • @ulfgj
    @ulfgj Рік тому +1

    @28:26 - pure gold, pure gold!

  • @yuvrajmetrani227
    @yuvrajmetrani227 Рік тому +2

    Ah!!!! There it is! Thank you Corey!! I was checking on Friday if you have this video on your channel, and today (Monday) I see it posted! Timing!
    I keep coming back to your channel for revisiting bits of code lessons frequently. Thank you for doing what you do!

  • @golodiassaid4879
    @golodiassaid4879 Рік тому +2

    Where have you been man! I am super glad that you are back, I hope you know how talented teacher you are!

  • @mfatihaydogdu7
    @mfatihaydogdu7 Рік тому +1

    Awesome answer to the last question by ChatGPT to conclude this video.

  • @aparna1498
    @aparna1498 Рік тому +3

    this is cool, it's like an interactive stackoverflow

  • @filipirigui
    @filipirigui Рік тому +1

    It is good to have you back @Corey! Thank you!

  • @renerivera8115
    @renerivera8115 Рік тому +1

    That was awesome. I don't remember how long ago when I learned OOP in Python watching your videos, but it feels like a decade ago. Much appreciated.

  • @oscarmartinezbeltran
    @oscarmartinezbeltran Рік тому +1

    You are back to life, Corey!!!! Welcome!!, just, the world has change so, so much since you were gone!! Now the machines are about to take over the world of programming. Machines now do the job we used to do. Reality is that very soon we are not going to be needed any more. Good to see you, by

  • @mirazking7694
    @mirazking7694 Рік тому +2

    ChatGPT Know Which Channel is best.❤️❤️

  • @snehusne
    @snehusne Рік тому +1

    Hi this is sneka from India... really want to thank you so much from the bottom of my heart...im from non coding BG but I have a intereste in learning python...your vedios are very awesome to learn for beginners..soon will become a developer and announce ‼️🤝

  • @hardlight8743
    @hardlight8743 Рік тому +2

    ChatGPT isn't mistaken , your videos are my favourite , super glad you're back ^^

  • @klamentyne5991
    @klamentyne5991 Рік тому +3

    Thank you for doing this Corey, I'm just very happy that you're making content again and intend to be more regular on UA-cam...I'm grateful you're with us :)

  • @nameismike1801
    @nameismike1801 Рік тому +2

    Nice touch at the end of the video. It is great to see you get back on your feet. Cant wait to see more of your projects to come, Mr. Corey.

  • @mingp7247
    @mingp7247 Рік тому +4

    I love the ending part! 😂 Corey Schafer is the best python teacher!

  • @mikhails2883
    @mikhails2883 Рік тому +9

    As always, concise and highly informative! Thank you, Corey!

  • @elghark
    @elghark Рік тому

    I've been preparing my first youtube channel and I'm really scared about this. I'm not a "fortune-seeker", just happy if able to do something useful for me and others. Just for giving me a bit of hope considering my life situation.
    I did almost everything (codes,projects,studied Davinci Resolve for editing etc.) but what scares me the most is showing my life to others. It seems that "a face" is the most necessary step for getting views,subscribers etc etc. Even now, in the middle of the "A.I no-face videos" trend.
    But everytime I'm overhelmed by this, I remember Corey and his channel: my very first "mentor", the one and only guy I come back to everytime and I feel much better.
    You mate, you are the proof that a straight,clear,competent approach and job pays much more than any other "fancy" stuff.
    I know that there will always be ONE Corey "case" but that's enough for me.
    Thanks for everything you did so far Corey!

  • @xbz24
    @xbz24 Рік тому +1

    so humble omg I started following you for your py tutorials, def one of the best python channels with neuralnine

  • @zohersa
    @zohersa Рік тому

    My favourite UA-cam : Corey is back

  • @sivaeswar7266
    @sivaeswar7266 Рік тому

    Welcome back Corey.
    Respect from India 🇮🇳

  • @baconsledge
    @baconsledge Рік тому +1

    Glad to see you are still around and doing new stuff!

  • @SwingingInTheHood
    @SwingingInTheHood Рік тому

    You mentioned that ChatGPT *could* replace StackOverflow at 31:07. You say we're almost there. Well, I'm here to tell you that I have been there for over 3 months now. Not having to deal with the rude and condescending moderators at StackOverflow and Drupal Answers anymore? Priceless.

  • @ElChe-Ko
    @ElChe-Ko Рік тому +1

    Your videos are pure gold man

  • @feministuz
    @feministuz Рік тому +1

    Corey, you're my virtual mentor|master!❤

  • @senaps
    @senaps Рік тому +1

    it's always good to see a video from you.
    I used these prompts to get a code that would validate a string as email:
    write a python code that matches email address
    add tests using pytest for it
    add docstring and annotations to the code
    the end code looks pretty much useable in a potential production environment! :) so good stuff...

    • @senaps
      @senaps Рік тому +1

      I asked it to add logging and metrics to the code, and good stuff was added there too

  • @jakingsarchly6433
    @jakingsarchly6433 Рік тому +1

    I believe the last answer Sir. Youre truly the best!

  • @20.suriyam11
    @20.suriyam11 Рік тому

    I learnt python
    Django
    Pandas and many more
    Thank you. Great that you're back 🎉

  • @benjaminodriscoll6605
    @benjaminodriscoll6605 Рік тому +2

    So good to hear those dulcet tones again. Corey you are a coding hero, I have my first role as dev thanks to you.

  • @gabrielleboudreau1370
    @gabrielleboudreau1370 Рік тому +1

    Hey Corey,
    First off, big fan of your channel! Your tutorials have been incredibly helpful in my programming journey. 😄
    I wanted to toss an idea into the ring - have you ever considered creating a video series on machine learning with Python? Given your knack for explaining complex topics in an approachable way, I believe a series like this could be a game-changer for so many of us trying to dive into the world of machine learning.
    Your ability to break down concepts and guide us through practical examples is something that's truly unique. Covering topics like data cleaning, supervised learning, neural networks, and model evaluation in your signature style would be amazing!
    I know your schedule is packed, but I truly think a machine learning series on your channel would be a huge hit. Regardless, keep up the fantastic work - your content has been a real asset to the community.
    Looking forward to your future videos!

  • @thangmy6556
    @thangmy6556 Рік тому +2

    I love the last question! truely fantastic! thanks!

  • @RemyDelaCruz
    @RemyDelaCruz Рік тому +2

    I did some research on it for a college paper, and exactly 100% I encountered the same points to be valid! Great work and glad you got it out to the masses!

  • @kelvinkipkogei8290
    @kelvinkipkogei8290 Рік тому

    Corey so good to see you back mate

  • @MartinAaberge
    @MartinAaberge Рік тому +5

    Man, it's good to have you back. You are my favorite Python UA-camr. Keep it coming! Interesting to see how programmers react to ChatGPT :D

  • @denis_MXMV
    @denis_MXMV Рік тому +1

    HE’S BACK
    Corey, your videos were very important at some point in my career. Thank you very much(btw, I’m from AI myself)

  • @sumit180288
    @sumit180288 Рік тому +5

    Good to see you back after long time.
    I learnt a lot of Python from your videos. Please continue uploading more Python videos on new topics like AsyncIO.

  • @markk981
    @markk981 Рік тому +1

    I have been watching your videos for more than 4 years now, and i was absolutely coming from different background than programming.. you have no idea how fun and useful your videos are, and still enjoy watching them again from time to time.. i just remembered to say that when AI ranked you at the first place at the end, you really deserve that. THANK YOU❤

  • @washoecreative595
    @washoecreative595 Рік тому +2

    By chance I started using ChatGPT in the last two weeks to help get started on a PHP MariaDB project (I'm a complete noob) and also to write a few useful file system utilities in Python. I find it a pretty effective learning tool.

  • @smbat6828
    @smbat6828 Рік тому +1

    Corey you are amazing! Your videos saved me in grad school!

  • @vamsi-sk4ew
    @vamsi-sk4ew Рік тому +1

    Corey, you are amazing buddy. I see a lot of videos but you're the one who explained to me everything that is in my mind.
    Merci!

  • @wilhelmngoma9009
    @wilhelmngoma9009 Рік тому +1

    Hey Corey, really happy see your videos popping up , and know you're good.

  • @djollimore
    @djollimore Рік тому +1

    Welcome back Corey....great to see you are playing with chatgpt to help us out.... Great videos!!!!

  • @yannhk
    @yannhk Рік тому +1

    Hello Corey!!! So hyped you are back!!! I learnt how to use Pandas from you, it opened my door to coding! I am so happy to see your new video! Thank you for coming back!!

  • @sunlight5473
    @sunlight5473 Рік тому +1

    Great to hear from you again. The unit test part was especially interesting for me.

  • @ssigitas69
    @ssigitas69 Рік тому +1

    I agree with Chat GPT. You probably best of all teachers. Maybe for beginners, like me who is learning just for fun, better Programming with Mosh he is more beginner friendly, you are more for advanced learners. But like I said, you on top . Thanks so much for your videos

  • @faridalijani1578
    @faridalijani1578 Рік тому +1

    Thanks dude, it’s extremely powerful 😯it’s blowing my mind

  • @shivthedev
    @shivthedev Рік тому

    Its been so long since you been here! So happy you are here 😀

  • @diogennesthesinope61
    @diogennesthesinope61 Рік тому +1

    Great to have you back, Corey. Great work.

  • @rehmanarshad1848
    @rehmanarshad1848 Рік тому +1

    Ayyyyyyyyy the legend is back!
    I would never fall in love with Python and Flask if it wasn't for you!

  • @ArtemKabylinskiy
    @ArtemKabylinskiy Рік тому +2

    Thanks for the great video! Glad you came back, Corey.
    Btw ChatGPT obviously gave the right list answering your last question ;D
    Wish we will see more of your tutorials soon

  • @AyoubSaab7
    @AyoubSaab7 Рік тому +1

    Talk about a legendary finish to the video!

  • @streamdr1499
    @streamdr1499 Рік тому +1

    Great to have you back, Corey. No feedback as I haven't watched it yet...just sending out some good vibes to you before watching this (probably tomorrow now, as it's late over here)

  • @catonalake
    @catonalake 10 місяців тому

    So happy to see you back! Your videos have helped me so much and just recently decided to go poke around and see if you've returned and voila here you are!
    I pray that you are doing well and I look forward to Future videos! Keep them coming you are a great instructor

  • @0x656e
    @0x656e Рік тому +1

    Welcome Back, I am so glad you are back

  • @ec-jw2026
    @ec-jw2026 Рік тому +1

    I see Corey, I press like.

  • @richardcasey4439
    @richardcasey4439 Рік тому

    Very nice explanation of GPT4. I’m using it to write CUDA code. Game changer

  • @bapi6060
    @bapi6060 Рік тому +1

    Nice to have you back!

  • @sameer5671
    @sameer5671 Рік тому +1

    A video from Corey!? Damn! Missed you man.

  • @prodbykelvin7508
    @prodbykelvin7508 Рік тому +1

    Welcome back Coreyyyyy

  • @djangodeveloper07
    @djangodeveloper07 Рік тому +1

    i was going to unsubscribe, i thought you left the youtube. good to see you again. Welcome Back

  • @63montywilliams50
    @63montywilliams50 Рік тому +2

    Loved the flask series tutorial!

  • @jamesdeen1210
    @jamesdeen1210 Рік тому +2

    Aside form the amazing video. You have reminded me of a LoL API project I have been putting off for the same reason. what a small world lol

  • @niranjanrao1592
    @niranjanrao1592 Рік тому +1

    Hey Corey, welcome back big man! Great to see you again. Obviously we've never met but I feel like I know you already after watching years of your Python/Django content!

  • @debidattaray6646
    @debidattaray6646 Рік тому +1

    Corey is back 😎, I missed your videos! , I got job at IBM python developer your video helped me a lot

  • @clivebird5729
    @clivebird5729 Рік тому +1

    Awesome humour at the clip's end. :-) . Thank you, you are spot on with your content.

  • @brian76541
    @brian76541 Рік тому

    Just starting to learn about Python and I know you’ll be the go to guy 🐐

  • @d.developer
    @d.developer Рік тому +3

    Hello Sir, i think you should publish video more often. You are such a great developer that more people are willing to your video like me. you shared a lot of great tutorial about python and some of my python knowledge came from watching your video. If you have time, please make more video about python and the ai in future.