How to learn to code FAST using ChatGPT (it's a game changer seriously)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this video is sponsored by brilliant so recently I decided to build a JavaScript app for my company and honestly I was kind of dreading it because I never really properly learned JavaScript so I was anticipating that I'll be going through a lot of tutorials a lot of stack Overflow you know the usual when you're trying to learn a new programming language but instead of doing my usual thing I decided to give chat GPT a go um to help me learn because a lot of my coding friends were saying how amazing it was and oh my God it was a game changer like seriously what should have taken me around like five to six hours to figure out I've managed to figure it out within 20 minutes using chat GPT so in this video I want to talk about how to use chat TBT in order to learn how to code so much faster and so much better I've been playing around for a while now and there is an art and a science to it at the end of the day it is a tool it is a very powerful tool if you know how to harness it properly with great power great responsibility for those who don't know me hello my name is Tina I have a computer science degree and I used to be a data scientist at meta this is what I want to talk about specifically in this video so the first is I want to introduce a framework for how to ask chat GPT to design a custom study plan for you that suits your learning style as well as your lifestyle doing projects is hands down the best way to learn and that has not changed at all but I know that people do struggle figuring out what projects to do so I'm going to show you guys how to use chat gbt to help you come up with project ideas I'll also show you guys how to ask Chachi BT to be like an expert tutor and teach you Concepts step by step finally I'll give you guys some tips on how to get the most out of chat GPT by going to the basics of prompt engineering okay so one more thing before I get started I just want to make a plug for my newsletter called boops keyboard it's about coding it's about learning I always talk about books and you can sign up over here also link to description it is free alright let's get started first of all is a natural language processing tool developed by open Ai and it allows you to hold a conversation with it you can talk to it you can ask it questions you can think of it like talking to a very knowledgeable person that knows all the things of the internet know that I say very knowledgeable but not very smart what this means is that even though it knows all the things of the internet it still sometimes can give you the wrong answers to things or it doesn't understand what it is that you're asking and it gives you vague answers unfortunately it's still not as good as a human understanding what your intent is behind questions which is why later on we're also going to talk about prompt engineering which is how to like frame things how to prompt the AI to give you better answers but yes for now just know that it is a very powerful tool in the right hands in my opinion in next couple years Chachi BT is going to fundamentally change the way that we think we work we learn and the way that we interact with each other so if you're watching this video I think you're way ahead of the curve because this is like what Google was in the early 2000s so be one of the first people to really harness that power and supercharge your learning in this case is how to code okay so let's talk about how to use Chachi BT to help you design a custom study plan for you so for this specific example we're going to ask you to design a study plan for how to learn coding in Python for data science although you can use the same structure for any other coding languages or really like any other technical skills okay so let's start with the basics okay so your first instinct when you open chat GPT is that you're probably type something basic like give me a study plan to Learn Python for data science enter okay let it do its thing okay so it's honestly pretty decent you can see it gives you different sections like learn introduction to python learn numpy and pandas data visualization machine learning build and practice projects tend some online courses or joining community so it's pretty good you know and then for each of these steps it tells you like oh you should learn things like variables data types operators loops and here's some of the resources like code academy data camper Coursera so that's quite nice but as you can probably tell it's not the best it's not the most actionable study plan because it's kind of like okay great like I kind of know what I should do like vaguely but it's not like I'm not sure like what resources should I be using like what are these things I imagine if I didn't know what variables data types or operators or Loops are just I don't know what that means so we can do better we can do better okay so the next thing that you might do in order to get a good study plan um let's do another one say give me a study plan to learn python for data science with resources and a timeline all right it's doing its thing okay great so we have something here we have the same um things over here but it's nice because it splits it into different weeks for us and then also links resources like code academy W3 schools hacker rank things like that data structures and functions that's good it was missing that previously okay so this is looking pretty good right like we have this nice split of what to do for each week and it also lists out the different resources that you should be Consulting but can we do better yes we can that was a rhetorical question it's still not the best study plan because it's pretty much just like linking a bunch of these resources which are mostly like tutorials kind of like python data structures you should just look at these things right like it's giving you like kind of it's a little bit disjointed that's how I would say like it's a little bit disjointed um and like the different resources also not tailored towards what you might prefer like maybe you prefer learning from video courses and these are mostly just like written texts um so we can do better we can do better okay so I'm going to show you guys now a framework that you can get a better study plan from chachib I adopted this from like the general 5w framework which is who what when where what who is what role do you want chat GPT to play in giving you a study plan what is what exactly do you want to learn when is what's your timeline like when do you want to learn these things where do you want to learn it do you have preferences for online courses do you have preferences for free things uh do you like text-based courses and why is what's their goal in for learning python by giving it more context you're able to get it to give you a more tailored response so let me show you an example okay so here is the prompt act as a coding tutor that creates study plans to help people learn to code you'll be provided with the goal of the student through time commitment and resource preferences you'll create a study plan with timelines and links to resources only include relevant resources because time is limited by first request I want to become a data scientist but I do not know how to code I can study 10 hours per week and only want video resources I want to learn to code in Python create a study plan for me okay so the who over here you wanted to act as a coding tutor that specializes in creating study plans that help people learn to code what you want to learn is python for data science for the one you said you can commit 10 hours per week for where you said you wanted video resources and also you only want the relevant ones because time is limited then for why your goal is to become a data scientist so create a plan for me and this is the response sure here's a study plan to help you get started with learning to code in Python for data science this is so much better see it has weeks one to two in terms of python Basics weeks three to four data manipulation over here five to six is visualization 7 to 8 is machine learning fundamentals and then deep learning fundamentals okay so what I think is really nice here is that it tells you what you need to learn so introduction to Python and programming you need to learn about data types variables and expressions control structures functions exception handling and then it also links to resources for you and it links code academies Python 3 course which is a free version as well as Cory Shoppers python tutorials on YouTube so because I'm in this field I also know that these are actually really good resources um to be learning these things so it's looking very promising um for data manipulation it does the same thing using numpy pandas data frames data cleaning data camps pandas fundamentals Keith galley's pandas tutorials on YouTube shout out to Keith hello if you ever watched this video um he's my friend yes he has a great tutorial series of this as well so this is really good yeah and it does the same thing for the other the other few weeks as well in terms of timeline wise honestly I feel like the machine learning part in the Deep learning is a little bit aggressive especially Andrew ning's deep learning specialization and Coursera that you are not going to be doing that in two weeks nah you're not going to be doing that in two weeks maybe like a month so yeah I do think it's a little bit aggressive but generally I'm pretty impressed this is a pretty decent study plan it really is so yes this is the study plan that chatgpt generated and the framework the five W's um highly recommend that you use that in order to give it more context so you can have more tailored results and something that's a little bit more specific as well it's not perfect but I really do think it's pretty good especially as a beginner this study plan that it's able to give you in such a short period of time is going to be much better than probably what you can come up with yourself after spending a really long time like trying to figure out what to learn so pretty impressive okay so this study plan is not yet complete this is where having domain knowledge and understanding about technical fields and technical things is really really useful and this is something that you wouldn't know unless you have experience in this field so I'ma tell you so from my experience coding and learning technical things um and just like working as a data scientist the way in which you approach doing the study plan is just as important as the study plan itself so this is a great study plan but it doesn't give you information about how to use this study plan most optimally so let me explain this is a framework that I developed first introduced it in this video over here which is I think about a year ago um how to approach learning technical things and it centers around the idea of breath First Learning what this means is that you approach learning in terms of layers so for example right like you learned python Basics you do the introduction to Python and programming data types in Python exception handling etc etc so after you learn that subject instead of like jumping into the next topic and then trying to learn more of other things what you should instead do is that you apply to things that you learn and create a project outfit this is really going to solidify your learning and I think a really big trap that people fall into oftentimes with a learning coding is that they would just like keep learning and learning and learning more things but they never actually use the things they learn so because technical stuff is so applied like coding is so applied if you never apply it you never actually learn it properly so this is why you should focus a lot of your time on your doing projects and then after you do projects you can start iterating on this then you learn something else like you learn data manipulation and then oh great now you know how to use pandas and numpy things like that so now you do a project that centers around the things that you learned before and then also centering around these numpy arrays and like pandas data frames and things like that I hope that makes sense so it's like this iterative learning cycle that is very focused on projects so this was the missing piece that chap GPT was not able to provide you but since you know that one of the things that chat topt can help you with is actually coming up with great project ideas so let's talk about that next how to use chat CPT to generate project ideas say you've now learned exploratory data analysis you went through them courses and now you want to do a project on it yay so you don't know what to do what kind of project should you do you have no idea okay okay say like you have some idea okay so you're like I really like Naruto because who doesn't like Naruto Naruto is amazing I want to do a project about Naruto but I don't exactly know what and I wanted to be about exploratory data dialysis because that's what I just learned so here is a potential prompt act as an expert data scientist and create an exploratory data analysis python data science project at about Naruto the anime so sure here's the example of exploratory data analysis Eda project about Naruto the anime it's called exploring the Naruto anime with python makes sense to perform an exploratory data analysis the Naruto anime using Python and gain insights into Show's popularity characters and story lines interesting so data data for this project was obtained from the Naruto wiki website okay it contains information about the Naruto anime including episode titles character names and plot summaries the data was screwed from the website using beautiful soup library in Python okay so it's saying that you should get the data and then you should do some data cleaning um you should clean it here's some things that you should do remove any duplicate episodes fix the name is spell character names remove any special characters or symbols that may cause issues during analysis then you have the data analysis portion and gives you some questions some very nice questions very interesting questions what are the most popular episodes of Naruto to answer this question we can group these episodes by their ratings and create a bar chart of their top 10 episodes with the highest ratings it's nice it kind of like gives you a guide as to how it is to answer the question which characters appear most frequently in Naruto okay so it does all of that and then it gives you a project conclusion that tells you if we found that the most popular episode of Naruto is the fourth Hokage that the character with the most appearances is Naruto that makes sense and the most common themes in the show related to ninja bad was and personal growth interesting personal growth maybe that's why I like Naruto so much before I even knew it I was into personal growth interesting facts about the show such as the fact that some of the episodes have multiple titles and some of the characters have multiple names or nicknames overall this project demonstrates the power of data analysis gaining insights into popular media entertainment very well done project very solid project here so this is awesome so see how it gives you um kind of what to do for the project and then it tells you like the steps it's pretty detailed as well so this is a very solid project to work on for anybody that is interested in such a project do let me know in the comments if you actually do this project and share the code if you do okay so this is how you can get the project so what if we now asked Chachi PT to actually write the code for this project interesting so here's the code for explored her data analysis create the data from the Naruto wiki website find all the episodes clean the data I mean this looks like very legitimate code here create a pandas data frame all right all right extract character names which are the most popular episodes of Naruto which characters appear most frequently it looks like it would work does anybody want to make a bet write in the comments right now do you think this code will work I'm mostly skeptical about depart the scraping the data part although that's me cheating a little bit because I was playing around with um with Chachi BT before and it seemed like it's not very good at interfacing with external things so I'm gonna bet that it doesn't work the scraping part but it does look very legitimate so why don't I actually try it out let's try it out I'm gonna copy it over here and then let's try running it and we get a bunch of Errors okay it's basically trying to read a file called Naruto ratings that does not exist because it create it somewhere it never creates the Naruto ratings CSV file so it just like the size I was going to read it so there you go superficially it seems like a very legit code don't actually work so chat GPT project creation rating three out of five great project just doesn't work I'll link this particular project in the descriptions and then also the starter code that Chachi BT generated let me know if you actually do this project also let me know in the comments if there's any other projects that chat gbt made for you that you think is pretty cool all right so next up I want to talk about another use case I think is very very helpful which is asking chat to BT to explain Concepts to you like a tutor say you're merely doing your coding right you're like Yay let me let me like learn about such coding Concepts and then you come across something called inheritance versus polymorphisms it is rather confusing and you don't exactly understand so you consult the almighty Chachi BT this is a really good explanation of the difference between heretism polymorphism two fundamental things inheritance is a mechanism of object-oriented programming that allows one has to inherit properties and behaviors from another class here's an illustration of inheritance and it gives you a nice explanation about it and polymorphism on the other hand is a concept that refers to the ability of objects of different classes to be used interchangeably it allows us to write code that can work with objects of multiple classes without needing to know the specific class of each object really good example as well yeah so um and it gives you a nice little summary at the end too this can be really helpful as you're working through your study plan you come across like specific Concepts that don't make that much sense where you're not sure about it you can ask it to act as an expert tutor and explain things to you with examples there are so many other things that Chachi Beauty can help you with it's pretty good at helping you with specific functions or like specific things that you need it to do it can write code for that not as good as you can see like if you tell it to write like large chunks of code it's not that good but like specific things is really good at doing um explaining stuff it's also good at commenting your code it's also good at like checking through your code and things like that I can go like on and on about all the other things that it can be useful for so maybe that can be another video like tips for how to use chat TPT when coding but I think I did Cover like the fundamentals about how to use chat gbt to learn so I want to end with some like tips as you go through the study plan as you're learning coding that could be pretty helpful and this is touching on the basics of prompt engineering which is I don't think I gave you guys an explanation so pump engineering is the art and the science of Designing prompts to be inputted to artificial intelligence to get it to give you better responses and help you solve problems so this in itself has actually become a job like the starting salaries are between like 200 and 350k right now and there's postings of companies who are looking for prompt Engineers specifically interfacing with um natural language process models like Chachi BT potential other career path for people if you're interested um but yeah knowing like kind of how to do some of these specific tricks can be really helpful in getting good responses from chat gbt so one of the things that I've already shown you guys is the idea of asking you to play a certain role asking chat to Beauty to be assigned a specific role usually it makes the answers a lot more specific it's also able to provide a lot more detail I realized so I would recommend that you usually append um asking it to play a certain role to your questions to your problem problems unless it's something like super General if you ask Chachi BT a question it just kind of like pops out an answer and it's not it doesn't like give you that much detail about it what you can ask it to do is say um let's take this step by step this is really helpful because it asks Chachi Beauty to specify the logic it took in order to reach the conclusion that it finally draws this is another tip that we already used which is the idea of asking it to generate starter code so as you can see the code doesn't always work but it can be very helpful to ask you to generate some code that you can kind of like take Inspirations from and to base base your actual code with and finally one other little small Hack That I Found really useful is sometimes I chat gpk just hangs like you're having a conversation with it and then it generates a response for you and then it kind of like stops part way so what you can do instead of retyping it because sometimes that causes it to kind of give you an answer that was not related to the previous answer you can say did you time out and then it would usually apologize I'm sorry timed out and then it will continue and just regenerate the thing that it was generating originally so before I end this video I also wanted to talk a little bit about the limitations of Chachi BT we already saw Here that it could generate code that doesn't work and also it's not able to provide all of the information all of the knowledge you need to come up with Optimal Solutions like creating a the study plan like for example you kind of needed the external knowledge of knowing that the best way of learning technical things is by supplementing it with projects it also sometimes gives you results that are very wrong like it's very confident of itself but it's very wrong so this is something to be very careful about right if especially if you don't know that area you might just take it as like the truth even though you'd be very misled if you if you just took that so this is why it's important for you to also validate and double check whatever it is that chat EBT tells you so for learning coding and for learning things in general I still think that Chachi PT is not there in which you can ask it completely to just like substitute other resources and teach you everything directly it's not capable yet of doing that so this is why my preference for the study plan is to instead of asking you to teach you directly things but by linking resources that are created by real humans because that information is validated one of these resources is brilliant who is the sponsor of today's video brilliant is a stem learning platform that specializes in interactive Hands-On learning it has lots of different courses in the stem subjects and one that is particularly relevant here is a course on python what makes the courses on brilliant so effective is that it's specifically designed for stem subjects it's very focused on the interactive Hands-On aspects which is the best way of learning stem Concepts it's the same idea as to why I keep emphasizing project-based learning I first started using brilliant a couple years back when I was interviewing for meta and the reason I found out about brilliant was because meta recruiters themselves actually recommended using brilliant to brush up on the stats and the math portions that they interview specifically so this just goes to show how good the courses are like actual Recruiters in companies are recommending their candidates to practice using brilliant so now I don't really do any more interviews but I still use brilliant to brush up on certain aspects of Concepts I've forgotten in the past and also new topics that are coming out especially in the field of artificial intelligence brilliant has Timeless course offerings like math and stats programming with python as well as new course offerings to explore different topics like artificial intelligence and neural networks and Quantum Computing to try everything brilliant has to offer for free for a full 30 days you can visit brilliant.org Tina Hall the first 200 of you who go through this link will also get 20 off Brilliance annual premium subscription now back to the video that's all I have for you guys today I hope this was a helpful video for you um Chachi PT has really fundamentally changed my own workflow and I think it's just gonna keep changing it's just gonna like I'm gonna learn how to use it better over time and it's gonna play a bigger and bigger role in my life and I think that's something that y'all should also explore because I genuinely do think that this is the future so yeah um I'll see you guys in the next video or live stream
Info
Channel: Tina Huang
Views: 1,289,156
Rating: undefined out of 5
Keywords:
Id: VznoKyh6AXs
Channel Id: undefined
Length: 22min 0sec (1320 seconds)
Published: Thu Mar 02 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.