Prompt Engineering for Web Devs - ChatGPT and Bard Tutorial

  Рет қаралды 105,711

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

This course will help you to code, learn, and get jobs faster than you ever have before! Try the interactive Scrimba version here: scrimba.com/learn/promptengin...
When it comes to leveraging AI language models, your output is often only as good as your input. In other words, it’s all about learning how best to communicate your desired results. Effective prompt engineering is the secret sauce for getting the most out of AI. To get the most value out of this course, you should know JavaScript and React.
Follow Scrimba on KZbin: / scrimba
Follow the teacher Treasure on LinkedIn: / treasureporth
⭐️ Contents ⭐️
(0:00:00) Introduction
(0:01:52) Welcome to the Course!
(0:05:42) Intro: What is Prompt Engineering?
(0:07:17) Prompt Engineering Basics, Part 1
(0:14:16) Prompt Engineering Basics, Part 2
(0:20:11) Quiz: Prompt Engineering Basics
(0:22:53) Control the length and format of GPT's responses
(0:31:40) Challenge: Haiku-ish Generator
(0:37:05) Break Tasks Into Smaller Steps
(0:44:25) Quiz: Break Tasks into Smaller Steps
(0:46:17) Prompt Iteratively: Prompt, Evaluate, Repeat
(0:50:16) Optimize prompts
(0:53:45) Challenge: Build a Simple Modal with an Optimized Prompt
(0:57:37) Role-based prompting
(1:04:00) Practice: Plan an App with Role-Based Prompting
(1:07:43) Prompt with Examples
(1:11:38) Challenge: Seltzer Flavor Generator
(1:14:05) Solution: Seltzer Flavor Generator
(1:19:53) Beware Hallucinating!
(1:24:20) Recap: Prompt Engineering
(1:25:10) Intro: AI Assisted Coding
(1:26:11) Generate code with pseudocode
(1:30:20) Generate code using a pseudo language
(1:35:42) Challenge: Generate a Form with Pseudo Language
(1:38:04) Generate Edge Cases
(1:43:22) Generate Test Cases
(1:48:06) Practice: Test a function and generate edge cases
(1:53:05) Debugging and Error Messages
(1:57:10) Convert Code
(1:59:45) Challenge: Convert Code
(2:01:44) Document Code
(2:05:30) Study Web Development via Prompt Engineering, Pt 1
(2:10:07) Study Web Development via Prompt Engineering, Pt 2
(2:14:22) Review and Practice: Study Web Development
(2:15:30) Explore APIs with Bard
(2:22:00) Get Help with Git and Github
(2:24:33) Get Help Deploying
(2:27:47) When to Step Back from AI
(2:30:13) Recap: AI-Assisted Coding
(2:30:55) Intro: Using AI Language Models for Job Search
(2:31:27) Generate, Learn and Practice DS/Algo Problems, Part 1
(2:39:25) Generate, Learn and Practice DS/Algo Problems, Part 2
(2:43:27) Challenge: Solving Classic FizzBuzz with ChatGPT
(2:46:38) Review and Analyze Code
(2:50:27) Practice: Review and Analyze a Code Solution
(2:53:30) Get Live Code Interview Advice and Practice
(2:58:31) Job Search - Get Help Writing Job Search Docs
(3:04:37) Practice Interview Questions
(3:12:12) Congrats, Prompt Engineers
🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Пікірлер: 138
@alexandrejorgedniestrowski6134
@alexandrejorgedniestrowski6134 6 ай бұрын
Great course! Some of the best practices I already identified "intuitively" but the "Please, Play Role of" with back and force interactions is a game changer and opens huge perspectives to leverage these tools in many areas of my activity - Kudos for Treasure 👋👋👋
@ShafiqNazrin
@ShafiqNazrin 6 ай бұрын
This was actually useful for me to make better prompts for my full stack work. I love this. Please make more if there's anything extra you left out.
@jopadjr
@jopadjr 7 ай бұрын
1k+... Thanks. Great to try on ! Hopefully there is a tutorial for Android devs in the future
@waynesdotdev
@waynesdotdev 6 ай бұрын
Amazing course, thanks
@ultrainstinct6715
@ultrainstinct6715 7 ай бұрын
Thank you so much for making this course
@VladdyHell
@VladdyHell 7 ай бұрын
One Piece better tho
@christerjohanzzon
@christerjohanzzon 7 ай бұрын
Thank you. I am now the AI Whisperer. Bow to my command! :D
@hamerhaai6274
@hamerhaai6274 7 ай бұрын
Fun course on Scrimba 👍👍
@abenjamin13
@abenjamin13 7 ай бұрын
Fantastic I appreciate this course thank you. The only thing that wasn't really covered was "bias" and ethics" but other than that GREAT course. HIGHLY recommend for anyone wanting to learn prompt engineering.
@FlintBits
@FlintBits 5 ай бұрын
Wild to think this is a real course.
@WiLDbEAsTGameSHere
@WiLDbEAsTGameSHere 7 ай бұрын
Well whatever people say people can't go back in time and use those old ways of doing things . One and only argument from my side to everyone here hating prompt engineering is :- using ai models to creat something might not make you a good programmer but id you are a good designer , you can access chat gpt like ai tools to help you creat something which was not possible to be done by a single person. And if you talk about people will not learn basics and essentials blah blah , then i have 2 things to tell you 1) if people will encounter errors this way , like always humanity has done, they will learn how to get past this problem and will learn a way to do error solving . 2) if you are sayibg that people will creat code without knowing how to , how will they learn , then you are missing the point that ,if ai is at that stage it doesn't needs help of people in making code and uf there is no need , for the sake of efficiency , we need to litrally stop doing that thing (there are many basic turtorials in fcc channel which just focus upon theory people can learn basics there and then apply that knowladge in making something valuable)
@sattineez
@sattineez 7 ай бұрын
Thank you once again 🙏❤❤
@wyndoellabridge6208
@wyndoellabridge6208 7 ай бұрын
Professional describer
@FrontendFLow811
@FrontendFLow811 7 ай бұрын
how do you read mind for web devs ? best one tho 💯
@ichiroutakashima4503
@ichiroutakashima4503 7 ай бұрын
8:32 this is definitely a meme now. "How do I center a div?" 😂
@kristianye562
@kristianye562 7 ай бұрын
Thanks a lot for the course, it is fun and useful.
@timestoryx
@timestoryx 7 ай бұрын
Great 🎉
@LoVe-iu9rd
@LoVe-iu9rd 7 ай бұрын
how to use META GPT?
@floraetteh1516
@floraetteh1516 7 ай бұрын
Thanks for this video
@BrutalStrike2
@BrutalStrike2 7 ай бұрын
2:12:11
@shamstabrez2986
@shamstabrez2986 7 ай бұрын
Do a complete course on chatgpt from beginner to advanced level
@edwardwhitehead8800
@edwardwhitehead8800 7 ай бұрын
you missed the initial boom. chat gpt is cringeworthinly dumb now. I got in just before they downgraded it. Even ToT prompts are useless now. The responses are repetitive and it even forgets prior entries in a session sometimes. i guess the powers that be saw chat-gpt has too much of an advantage "oh we cant let those peasants have all that ai goodness thats our orwellian weapon not theirs"
@princereshav9964
@princereshav9964 7 ай бұрын
I swear I was waiting for this course. 😍 thanks for this video.
@nahrulk
@nahrulk 7 ай бұрын
I mean why? If you understand what are you try to asking for, you will automatically ask AI the specific and detail of the answer you need, how many line, and other. So why?
@NLPprompter
@NLPprompter 6 ай бұрын
OH YEAH!
@YuutoGaming
@YuutoGaming 7 ай бұрын
The time has come
@BurhanAijaz
@BurhanAijaz 7 ай бұрын
0:23 Ayo Tanmay bhatt
@mohdabdulrahman6611
@mohdabdulrahman6611 7 ай бұрын
😂
@hemantagrawal1122
@hemantagrawal1122 7 ай бұрын
😂😂
@redbarn8481
@redbarn8481 Ай бұрын
Resume @13:00
@rajashekhar433
@rajashekhar433 7 ай бұрын
Looks so helpful but will it replace our jobs?
@_DavidHimself
@_DavidHimself 7 ай бұрын
Nah from experience, when you get more complex the code you are asking it to help debug with, the response it gives back is much, much worse and even gave me broken code on more than one occasion
@DanielCastro-kh5ix
@DanielCastro-kh5ix 7 ай бұрын
I thinkg most people are sleep behind the wheel. They don't really know this technology. By the time it becomes mainstream, you have already been learning it for a while. You will have a whole range of possibilities lying ahead. I wouldn't worry too much about it. But if you stop learning and want to do a repetitive job, while respectable, it would be hard to anybody to thrive under that condition.
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
No it won't.
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
​@@_DavidHimselfthis is my entire experience with CGPT 3 and 4. It gives me poorly optimised code fragments, at best.
@rajashekhar433
@rajashekhar433 7 ай бұрын
@@DanielCastro-kh5ix right now I'm doing front end development using ReactJs so will AI replace?
@funguy29
@funguy29 6 ай бұрын
🙏🙏
@aammssaamm
@aammssaamm 7 ай бұрын
Hey, teacher, leave them kids alone 😂
@feitan8745
@feitan8745 7 ай бұрын
Don't forget to be polite, a failsafe for when the AI takes over the world.
@ingoos
@ingoos 7 ай бұрын
Will be a useful skill to at least know about & try.... Even better: to have & master
@chuaedd
@chuaedd 4 ай бұрын
I saw her in Treehouse
@MichaTheLight
@MichaTheLight 2 ай бұрын
16:44 👍😁
@CODE7X
@CODE7X 7 ай бұрын
This is nonsense
@redfanush
@redfanush 7 ай бұрын
Why do you think it is a nonsense course?
@CODE7X
@CODE7X 7 ай бұрын
@@redfanush I don't think prompt engineering is hard enough to have it's own course
@CODE7X
@CODE7X 7 ай бұрын
@@redfanush the main key feature to have GPT LLM AI is to be able to take help from it regardless the similarity of problem , so you can get answers to your problems or help regardless if it was or has been asked before by someone else , this course about prompt engineering almost breaks the true meaning and use of developing AI of such kind (in my opinion) AI is built in first place to be able to personalise help and this course is going against it by generalising it
@ultrainstinct6715
@ultrainstinct6715 7 ай бұрын
Not because you can do it means everyone can
@redfanush
@redfanush 7 ай бұрын
@COD7X logical
@kalandipradhan2303
@kalandipradhan2303 7 ай бұрын
Love u sir
@catdog7497
@catdog7497 7 ай бұрын
ai replacing the one job sector i thought would always have a seat at the table for the future of job security
@sivaprasad905
@sivaprasad905 7 ай бұрын
Same here buddy. I switched from commerce field to programming because i find it more interesting and thought won't be replaced by AI. It seems like we will be the first one to be replaced atleast 75% in 5-7 years. SMH.
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
​@@sivaprasad905no it won't
@jgalvan09
@jgalvan09 7 ай бұрын
do you actually know how to code did you actually watch the video @@sivaprasad905
@WeylandLabs
@WeylandLabs 7 ай бұрын
@@sivaprasad905 Better get into Data Science before Programming and understand how to utilize these models.
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
@WeylandLabs enjoy wasting your time in a dead end product that is only viable because of the current buzz.
@Naoty_san
@Naoty_san 5 ай бұрын
14:16
@code_masla2659
@code_masla2659 Ай бұрын
All prompt engineers not a developers but all developers are prompt engineers.
@IvanRandomDude
@IvanRandomDude 7 ай бұрын
Everything is "engineering" nowadays. What's next, button styling engineering.
@jgalvan09
@jgalvan09 7 ай бұрын
go outside dude stop acting like a waste basket
@Ajay-pj2hv
@Ajay-pj2hv 7 ай бұрын
You need to Google the meaning of engineering, read it about five to ten times, maybe then you will understand.
@redgood5879
@redgood5879 7 ай бұрын
😂😂😂
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
@@Ajay-pj2hv "Engineering is the practice of using natural science, mathematics, and the engineering design process to solve technical problems" Writing sentences into an AI is not any of those things.
@sivaprasad905
@sivaprasad905 7 ай бұрын
Lol😂 these front end devs think they are doing serious engineering
@JC-jz6rx
@JC-jz6rx Ай бұрын
the view count speaks volumes to the denial state most of the software industry is in
@ramana747singh4
@ramana747singh4 7 ай бұрын
How are you sir ❤❤
@sadmagus
@sadmagus 7 ай бұрын
LOL
@mishaed-pm3xx
@mishaed-pm3xx 2 ай бұрын
Kinda sad when you think about it, we've got so dumb that we not only need AI to write a code. We now even need someone to teach us how to ask AI to write the code. If someone doesn't know how to formulate a question about how to center a div element using HTML and CSS .... I don't think that person should be coding in the first place.... Prompt engineers, ticktok coaching....we're doomed 😢😂
@joannot6706
@joannot6706 Ай бұрын
What is dumb is to pass on a tool to make you more productive. Learning new useful tools that becomes available to you is about the smartest thing that you can do. Whether it's a new programming language, a new framework or a new tool like AI.
@tawfiqkhalilieh888
@tawfiqkhalilieh888 7 ай бұрын
I support teaching prompt engineering but for this specific use it's nonsense... the learning journey should include a human that experienced with the technology he's teaching to track the learner progress. I would note that relying on LLMs or any AI model to write code for you especially as a junior who is still learning or even new developers that need to develop his skills.
@HanSDevX
@HanSDevX 7 ай бұрын
I thought prompt engineering was complete bullshit until I realized that a normie was getting horrid results compared to what I get.
@tawfiqkhalilieh888
@tawfiqkhalilieh888 7 ай бұрын
I don't agree with that, programming should be taught by a mentor or at least someone with experience!
@blancalexandre4438
@blancalexandre4438 3 ай бұрын
learning with chatgpt is the stupidest thing ever. Go read some books and ask specfic questions if you really wanna learn something. But the answer of chatgpt are not deterministic but probabilistic so chatgpt can't really be trusted. Lots of programmers are going to be really bad coders
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
FCC needs to stop endorsing this nonsense.
@ichigoat42
@ichigoat42 7 ай бұрын
Why?
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
​@@ichigoat42because 1. Chat gpt will tell you incorrect answers it thinks "sound" correct. 2. Learning to code via chat gpt takes away the process of learning to code yourself, its essentially a more incorrect version of copying from stack overflow. 3. "Prompt engineering" is not a valuable skill in relation to learning to code, its creative writing being fed into a black box. 4. iterating on a prompt isn't teaching you problem solving skills , its throwing new words at a LLM and hoping it solves it for you.
@MarcusHCrawford
@MarcusHCrawford 7 ай бұрын
FreeCodeCamp is about teaching beginners. Using AI is not beginner friendly. It robs beginners of many tools they should be learning on their own. It’s like walking onto a construction site with no experience and interpreting the blueprints for all of the workers. If you don’t know what’s right, you won’t know what’s wrong. Copying and pasting is not development, and prompt engineering isn’t a real thing. I’ve put broken English into chatGPT and got the same results as when I “engineered” my prompt. Learning how to write a properly structured sentence is basic English, not prompt engineering. What an insult to engineers everywhere.
@Ajay-pj2hv
@Ajay-pj2hv 7 ай бұрын
​@@BeepBoop2221you should understand that people who know how to code will know which answers are correct And rookies will most of the time choose wrong codes if they try to use it as shortcut(If they haven't taken time to strengthen the foundation). So learning how to code is essential regardless. 2. AI tools are not there to replace learning or process of learning. It is there too facilitate people who already have the skill of coding to increase their productivity and efficiency It is like when ready-made paints came to market, some people opposed it because it took away the process of making paint yourself. But a skilled artist will still know which colour to take and how much should he spread, thin, mix it to get desired result. Yet a rookie can't do anything even with readymade paint because his foundational knowledge is weak about art and colouring
@lalithrockz
@lalithrockz 7 ай бұрын
​@@BeepBoop2221 I think chatGpt will give so many wrong answers that they'll experiment more.
@nlmoin990
@nlmoin990 7 ай бұрын
"Engineer"
@watynecc3309
@watynecc3309 7 ай бұрын
What ? It's just explaining a child how to do x and y why need a course on this ?
@MemeConnoisseur
@MemeConnoisseur 7 ай бұрын
cringe
@lycan2494
@lycan2494 7 ай бұрын
ur mom
@charbelalam2648
@charbelalam2648 7 ай бұрын
Tf is this lmao
@rastapoile
@rastapoile 7 ай бұрын
Prompt engineer... even more useless than scrum master
@redgood5879
@redgood5879 7 ай бұрын
this thing is getting ridiculous
@floch666
@floch666 7 ай бұрын
This channel is dead everyone is a teacher now they done sold out
@user-fs7eb5jc8q
@user-fs7eb5jc8q 7 ай бұрын
wow, the course about nothing
@sivaprasad905
@sivaprasad905 5 ай бұрын
Prompt engineering 😂😂 bullshit lol. Front end devs calling themselves react engineer now this???
@WeylandLabs
@WeylandLabs 7 ай бұрын
I feel the funniest thing about PE's is over confident software engineers / devs / programmers are still utilizing the bare basics of LLM's while basic PE's are becoming GOD's ! Keep telling yourselves your code matters and PE's are a joke. This isn't a race its a marathon and my money is on PE's and them understanding NLP and machine learning vs your art of languages in code.🤣
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
PE?
@WeylandLabs
@WeylandLabs 7 ай бұрын
@@BeepBoop2221 Prompt Engineer
@firstVicar
@firstVicar 7 ай бұрын
This is definitely not the case, and in recent months people who are too lazy to invest the time in learning to code properly like to dish out this very phrase. Additionally, programming is about more than just spewing out code that works, working code can still be extremely flawed and prone to bugs/errors under certain conditions. If you are someone that uses LLMs to enhance your work flow - by all means, power to you! But pretending that this is somehow "God-tier" versus programming is a very shallow observation. Programming is deterministic, LLMs aren't - don't forget that.
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
I've yet to see anyone that uses a LLM as the basis of their "coding" be able to make their code more efficient.
@BeepBoop2221
@BeepBoop2221 7 ай бұрын
@@WeylandLabs what do you think NLP is?
@ovskihouse5278
@ovskihouse5278 7 ай бұрын
Thanks a lot for #FREECODECAMP Family
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 8 МЛН
Зу-зу Күлпәш. Тайм аут. (3-бөлім)
43:54
ASTANATV Movie
Рет қаралды 442 М.
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 108 МЛН
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Рет қаралды 9 МЛН
Prompt Engineering Tutorial - Master ChatGPT and LLM Responses
41:36
freeCodeCamp.org
Рет қаралды 1,2 МЛН
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Рет қаралды 2,7 МЛН
ChatGPT for Data Analytics: Full Course
3:35:30
Luke Barousse
Рет қаралды 149 М.
Make AI do your dirty work with Zapier and Chatgpt, step by step
10:45
Koala in a Lab
Рет қаралды 1,4 М.
How to Get a Developer Job - Even in This Economy [Full Course]
3:59:46
freeCodeCamp.org
Рет қаралды 2,1 МЛН
APIs for Beginners - How to use an API (Full Course / Tutorial)
2:19:33
freeCodeCamp.org
Рет қаралды 4,2 МЛН
Reinforcement Learning Course - Full Machine Learning Tutorial
3:55:27
freeCodeCamp.org
Рет қаралды 605 М.
JavaScript Course for Beginners 2024
3:35:38
freeCodeCamp.org
Рет қаралды 15 М.
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 8 МЛН