Build Anything With ChatGPT, Here’s How
Вставка
- Опубліковано 3 лис 2023
- Get my Custom Instructions for free: value.davidondrej.com/video01
Please Subscribe.
If you're serious about AI, follow me here - x.com/DavidOndrej1
With ChatGPT and VS Code you can build anything
Even if you know nothing about programming or python
unfortunately a lot of people are still afraid to start any project that involves code
so my goal is to break those limiting beliefs with this video
And to show you that programming something with the help of ChatGPT is actually very easy and enjoyable
In fact I haven’t even chosen the project I’m going to do, I’m gonna leave that up to ChatGPT as well
A lot of people have asked for the Custom Instructions I used, so here they are: value.davidondrej.com/video01
Elon is that you? did Elon Musk build a time machine finally?
someone who dont know what a variable is couldn't code this xD but ure right chatgpt helps with learning if u use it right! Btw. next time just disable the autopilot xD
This is exactly my approach. I started a year ago and made myself a bunch of small tools. I learned so much about Python, PyQt, and programming in general. It's the greatest time to be alive!
This would be me in 1 year.
I love to hear that! :)
same thing here chatgpt is like my personal teacher
@@lan92034If you are asking me, no.
But I am not looking for a programming job, I am working in the gaming industry as a 3D Artist. I just always wanted to learn how to code.
Do you think, it can help you teach you everything about programming?
for all the ppl that want to get into coding as complete newbies: get at least the fundamentals down like variables, if else statements, loops etc before using this because AI is imperfect still and can make mistakes that you will have to catch and fix, this is where your basic knowledge of code will come to use
Nah.
even with having basics, it all comes down to what prompt they use and how smart they will be about using the responses it gives them. and oh boy it's going to hallucinate when they start to ask too complex questions xD
a great solution to the space problem you had was to set the ' ' = '/', so that every words gets separated by a slash. This makes it really clear and easy to read
I feel like you just gave me new inspiration & a path to take to grow my programming skills and hopefully build projects to break into tech. Thank you!
No, thank YOU for such a positive comment! You just gave me inspiration to make more videos like this and to hopefully help more people :)
You teach in a very inspiring and encouraging way - great job, keep going!
Great work explaining this and going out the box with it, love the passion and seeing past limitations!
Great video! I've been experimenting with Bing Chat. I asked him to write a .bat file (batch file). The task was: There is a folder with 100+ subfolders like 001_Love Under The Sun, 002_Eliza,003_Coming,... I asked Bing Chat for every subfolder to replace _ with 0_ in it's name. And I provided him a testing Folder at first. He wrote a program, but he screwed up twice. Every time I explained him the problem, and he made the program better. The third time was a charm, and I applied his code to a real folder. Batch file is convenient because you can ran it on windows right away with no extra software to download. Once again, test it first in a test area. He tried to weasel out, telling me that it's better to use something more specific, but I insisted to continue.
Thank you this will help with game design for sure, the future with Ai is removing the latency between mind & body actions
You are the exact guy I was searching for all this months 😂❤❤
I love the tutorial interweaved with the excitement about AI. I feel the same way.
This is awesome 😎 I’m studying for my A+ and also want to learn python and java for myself. Chat gpt is awesome the more I learn to utilize it. Great video! Thanks.
May i ask why A+?
I think you can easily let ChatGPT give you the code as well, just afterwards ask what every section does and how. And you can ask for different ways to do the same thing to get even more out of it. Depends on your motivation. If you're making a video, you have a bit more motivation than someone sitting at home and studying.
I’m sure you are motivated enough to conquer the world. Keep growing.
Bro thank you for expanding my mind on how to approach ai, communication is the future!!!
00:02 Programming with ChatGPT is easy and fulfilling
02:17 Creating custom instructions for a project
06:42 Build programs without programming knowledge using ChatGPT.
08:59 Creating a dictionary to map English characters to Morse characters.
13:35 Creating a basic empty function to handle text translation
15:55 Use AI to improve your skills and enhance yourself, not outsource everything to AI.
20:01 Using ChatGPT to generate mapping of English to Morse code.
22:18 Automate boring tasks with ChatGPT
28:11 Adding a mapping of a space in Morse code requires one space into three right.
30:12 The next step is to write a function to use the user input and print the result.
34:47 The video discusses how to convert text to Morse code by splitting it into characters.
37:26 Build reusable functions to avoid code repetition
41:27 For loop is preferred when the length of the loop is known
43:24 Updating the more string with the mor code for each character in the text
47:48 Handling the issue of adding extra space bars
50:27 Learn how to use the reserved keyboard in Python to make a function give back a new Morse string.
55:05 Handling spaces in Morse code conversion.
58:07 Improvement of the Morse code translator
1:03:40 Updating the dictionary to include colon and smiley face
1:06:26 Handle exceptions using try-except block for better error handling.
1:11:45 Removing extra characters and spaces in Morse code.
1:15:12 Building a Morse code character initialization in Python is a good option
1:20:53 You can build anything with ChatGPT without any prior programming knowledge.
1:22:46 Build anything with ChatGPT using custom instructions
I am a manual tester from last 15 years and stuck in a company with no opportunity outside for manual testing. I was thinking something like this and this video appeared in my timeline. This video gave me a hope. I want to move towards automation testing. Thanks for making this video.
I work in the same field & was thinking how do I use python & Chat GPT to do regression script testing for software
@@sicboy3749 The trouble is that this will change the competition. Anyone will be able to learn to create programs and test scripts. This has the ability to turn the whole industry on it's head.
Excellent video David, very informative, thank you very much.
One of the greatest benefits of open and free AI of such sorts is the educational - I, too, am self-learning programming with GPT and it's amazing
Great video, one improvement recommendation: You can include the „just give me hints“ instruction into the custom instructions so you won’t need to type it each and every time 🐻❤️
Awesome video and your focused mind. Thank you❤ Greetings from Poland 🇵🇱
Nice video man, thanks for the initiative.I think it would be very interesting trying to build something big with the help of chat gpt. It would be interesting to see how you would handle bad or maybe not so concise answers from caht GPT :D
This is insane. Thx David
I would say its good timing since tomorrow OpenAI will present a system on how to build anything with Chatgpt even better and faster ^^
nice video man, didnt know about custom instructions until now, thanks!
Glad I could help!
Yeah, I follow the same approach. I've improved a lot by combining solid foundation (mostly Arjan Codes videos, he covers software design basics which are easy to understand) together with chat gpt.
I know I am able to write anything chat gpt writes for me. But its so much easier. Especially big refactoring and such stuff, breeze
Just wanted to leave some constructive feedback [hopefully!] on this video (I use GPT4 quite a bit to generate Python and C# code). The title of the video is "Build Anything With ChatGPT, Here’s How", but then you use your own skills and knowledge of Python to start writing code by hand, and teaching the viewer about the code (like writing a function def, and the += operator). This seems to defeat the purpose of using GPT to build the app. You can just tell GPT:
"Write a complete Python script that prompts the user to input a string of English text, and then it translates that text into Morse Code and prints out the Morse Code representation of the input string."
And it generates a fully-functioning script that worked for me on first try. I then asked it:
"Add functionality so the script then prompts for Morse Code from the user, and it translates that back into English."
And it gave me a new version of the script, but that new version failed and gave an error. I told GPT and pasted it the full error, and GPT gave me a new version of the script with the error fixed. The whole script then worked properly, and it only took me about 5 minutes total to get it up and running. For a viewer with no programming/Python knowledge at all, this method seems more intuitive and efficient than using GPT for some of the code, and typing other code by hand.
Great video bro appreciate the work you do here
This is awesome bro, love your content. I have been learning by doing projects for my job (not programming or IT related), simple things really, but using chat gpt and other llm as a tool. up my skills like you said. great introduction to the tool set and always, thanks for showing how i can use it.
yeah i see the value of writing 80 lines of code in 1 hour 30 minutes ....
chatgpt is multiplicative tool that will take your skill and increase the speed and quality
but if you have no skill to begin you cant do much else with it
in other words build solid foundation
chatgpt using gpt 4 is great both as a coding assistant and teacher when using common languages, frameworks, and libraries. Less common environments and larger projects are it's downfall, but it's really come a long way.
Yes, as a firmware engineer who writes fully custom hard-real-time operating systems it is practically useless since it has no knowledge of my codebase. I use it a lot for when I'm writing Windows and Android applications though.
@@Chris-xo2rq which environment or language would you recommend to use together with Chat-GPT?
@@Chris-xo2rq would you ever even use AI generated code for that? Using AI for any mission-critical software seems really spooky.
@@noname-vw5qw A lot of what I use it for is boilerplate stuff that is just a lot of typing I want to avoid. I can feed it a collection of nested C++ classes for example and it can generate serialization and deserialization functions for them. Conceptually easy task that just takes a long time to do manually.
You are the exact guy I was searching for all this months
Wow, thank you Ryder for such a lovely comment! ♥
Thank you once again for a great video. Keep them coming.
Wow, you have no idea how much this means! ♥
@@DavidOndrej And you have no idea how much your video has helped me. Best of luck to you ✌
I created a program with gpt that sorts everything in a folder it is in. So it takes everything out of an existing folders, deletes empty folders, then sorts everything, and creates folders inside those to sort even further. For example, pictures folder contains years, and then year folder contains month. Ive sorted over one TB of hard drive in just a couple of minutes. I have never been coding, so this is just a magic show
Please share how. maybe a Git repository or anything like that?
You just ask what you want to make, any ideas to gpt, and it will creater script for you, you start to test it and making shure everything works how you wanted it, thats it. GPT is a blessing for those who has creative ideas, but no knolwlage in to coding. @@zukanyed8633
import os
import shutil
from datetime import datetime
def organize_files():
current_directory = os.getcwd()
script_path = os.path.abspath(__file__)
folders = ["Documents", "Images", "Videos", "Music", "Other"]
for folder in folders:
folder_path = os.path.join(current_directory, folder)
if not os.path.exists(folder_path):
os.makedirs(folder_path)
total_moved = 0
total_size = 0
folder_details = []
for file_name in os.listdir(current_directory):
file_path = os.path.join(current_directory, file_name)
if os.path.isfile(file_path) and file_path != script_path:
category = get_file_category(file_name)
if category:
destination_folder = os.path.join(current_directory, category)
moved, size = move_file(file_path, destination_folder)
total_moved += moved
total_size += size
print("
Summary:")
for folder in folders:
folder_path = os.path.join(current_directory, folder)
count = len(os.listdir(folder_path))
size = get_folder_size(folder_path)
folder_details.append({"folder": folder, "size": size, "count": count})
folder_details.sort(key=lambda x: x["size"]) # Sort by size in ascending order
print(f"
Total moved: {total_moved} files\t\tTotal size: {total_size:.2f} MB")
write_summary_to_file(folder_details, total_size, total_moved)
organize_by_date()
def organize_by_date():
current_directory = os.getcwd()
pictures_folder = os.path.join(current_directory, "Images")
videos_folder = os.path.join(current_directory, "Videos") # Add Videos folder
for media_folder in [pictures_folder, videos_folder]:
if not os.path.exists(media_folder):
continue
for file_name in os.listdir(media_folder):
file_path = os.path.join(media_folder, file_name)
if os.path.isfile(file_path):
modification_date = get_file_modification_date(file_path)
if modification_date:
year_folder = os.path.join(media_folder, str(modification_date.year))
month_folder = os.path.join(year_folder, modification_date.strftime("%B"))
for folder in [year_folder, month_folder]:
if not os.path.exists(folder):
os.makedirs(folder)
destination_folder = os.path.join(month_folder, file_name)
shutil.move(file_path, destination_folder)
print(f"Moved: {file_name} to {destination_folder}")
def get_file_modification_date(file_path):
try:
modification_time = os.path.getmtime(file_path)
return datetime.fromtimestamp(modification_time)
except Exception as e:
print(f"Error getting modification date for {file_path}: {e}")
return None
def get_file_category(file_name):
image_extensions = [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tif", ".arw", ".NEF"]
video_extensions = [".mp4", ".avi", ".mkv", ".mov"]
document_extensions = [".pdf", ".doc", ".docx", ".txt"]
music_extensions = [".mp3", ".wav", ".flac"]
file_extension = os.path.splitext(file_name)[1].lower()
if file_extension in image_extensions:
return "Images"
elif file_extension in video_extensions:
return "Videos"
elif file_extension in document_extensions:
return "Documents"
elif file_extension in music_extensions:
return "Music"
else:
return "Other"
def move_file(source_path, destination_folder):
destination_path = os.path.join(destination_folder, os.path.basename(source_path))
if not os.path.exists(destination_path):
shutil.move(source_path, destination_path)
print(f"Moved: {source_path} to {destination_path}")
return 1, os.path.getsize(destination_path) / (1024 * 1024)
else:
print(f"File {os.path.basename(source_path)} already exists in {destination_folder}. Skipped.")
return 0, 0
def get_folder_size(folder_path):
total_size = 0
for dirpath, dirnames, filenames in os.walk(folder_path):
for filename in filenames:
file_path = os.path.join(dirpath, filename)
total_size += os.path.getsize(file_path)
return total_size / (1024 * 1024)
def write_summary_to_file(folder_details, total_size, total_moved):
desktop_path = os.path.join(os.path.expanduser("~"), "Desktop")
file_name = f"Cleaner_{datetime.now().strftime('%Y%m%d_%H%M%S')}.txt"
file_path = os.path.join(desktop_path, file_name)
with open(file_path, 'w') as file:
file.write("Cleaner Summary
")
file.write("-" * 50 + "
")
file.write(f"{'Folder':
Just for clarification. Any application that is aiming to be sold has a very complex file structure to ensure safety of user data. This is programming on the very first level and chat gpt is not even close currently to actually create and change data structures for large scale applications. It’s a good help though if you understand the structure yourself
Could you talk to me more about it? or pointing me where can I learn about that? I was thinking using chat gpt to make an android app.
@@TTeaSett It would be best if you just codealong a couple of full stack apps. freecodecamp offers a lot of very recent SaaS (Software as a Service) tutorials, where you can learn everything about the data structures needed in such a project. In the beginning might be a lot of info to wrap your head around, so go step by step and you will have great results
yes gpt sucks at debugging and more complex tasks than to do list.
Copy paste from internet is not programming Misleading people
@@TTeaSett First learn how to code and get basic knowledge about the programming concepts.
I recommend Flutter as a good starting point to create Android Apps, the learning curve is low and u get good results with a minimum effort.
From there dig deeper and switch to Android Studio and Kotlin/Java for native Andrroid Application Development.
BTW Flutter is Crossplatform wich mean that u need only one code base to compile for Android, IOs, Web and Windows. Try it, it's really fun and a breeze to create Apps in a quite short amount of time.
If you maps space into two spaces instead of three, you can eliminate the need of using IF in your translation function
Wow! This is awesome thanks.👍🏼👍🏼
Very great for writing automation scripts that can do all kinds of stuff, CI/CD and environment syncing, kuberentes automations etc. Sadly its not as great at writing extensive code that relies on custom functions and classes in different files. Sure a useful tool, saved me hours while working on stuff I did not know anything about
Na to, že jsi čech, je tvoje angličtina šíleně dobrá
good job
this video was a blessing from the gods I have experience in python and this just made me like 50x more powerful tysm
This is probably one of the absolute best videos I have watched so far on this subject. Thanks a million! Also, I'm curious as to why you don't have the "Super thanks" enabled?
I didn't enable it because I didn't think anyone would like my videos that much! Because of your comment I went ahead and turned it on. If you do end up sending me a Super Thanks, then I will be honored :)
Awesome, thanks!
Great approach with ChatGPT. I love Ghact GPT the possibilibies of the language are endless. Please teach more reagding charp GPT
this is exactly what our programmers do
I build dayz servers and used chat GPT to help make me python scripts to convert and create mass quantities of code for types, traders etc
i got my co2 sensor , an arduino a few reley boards and made code to run it all in 30 minutes with chat gpt, with no prior coding knowlage, but some automation knowlage... easy as
When you don’t know what you are doing and go ahead and do it. Well best of luck my friend.
Hi David, I really like your set up with ChatGPT that I haven't seen on other tutorials, what extensions did you use in VS to get that?
Any possibility you could build a web scraper or a game in your next video? Wonderful video. Thanks for your assistance.
I already have both of these on my ideas list - so it's very possible that I'll make those videos! :)
Super video! Já ChatGPT používám nerad, protože dělá dost chyb a připadám si špatně a líný... 🤣
Excellent work
Thank you Muhammad! :)
I am a java tech lead . I also use chat gpt , perplexity etc on a daily basis .have you ever tried to generate a complex project like airline traffic control using chat gpt
So is possible to build usable app ideas to scale to various industries? Transportation/restaurants & such?
how your vs code knows what will you do? does it work with chat gpt? which extension did you use in vs code?
Thanks 💯
i just came across to your channel, its superb. and i totally agree with you, im doing a project right now building chatbot with chatgpt, can you help me out or make another content regard to it. thank you
Good guy, exactly what I looked for
are you Elon Musk's brother?
Deserves more likes honestly
Thank you! :)
My exact approach as well
thank you for this video
I learned a lot faster learning to code without using chat gpt. To be exact, chat gpt hindered my growth because it was always the easy way out, which is not a good way to build a solid understanding of the programming. Everyone learns differently, but I learned a lot more with trial and error without using chat gpt as a crutch.
Me too, and using ChatGPT also somehow took the fun out of it. Learning how to efficiently debug your code is such a rewarding experience.
For me, I accidentally used a colon : instead of an equals sign = for a variable. Already got angry that ChatGPT was telling me that I typed an assignment operator wrong :D but I wouldn't have noticed that so fast myself and maybe would have given up for that evening.
why did you type a colon lol @@prawtism
so clearly explained in perfectly enunciated English...
how do you do to get get code written by itself? with the Chat gpt upgrade is enough?thanks again
I'm using it and when the code in Laravel. Yeah, sometimes I'm lucky but sometimes the Ai can't even fix simple bootstrap issues!
thank you bro
Motivation to keep going is the hardest thing. You could build anything before CHATGPT.
very good ;thanks
great content!
Thank you👊
I appreciate your unedited video and your train of thought! 👍
I have extremely basic python knowledge and this year ive made two Power BI dashboards using gpt. The one I made for work had everyone impressed 😂
You can make power BI dashboard with Python?
Please make a video on making mobile apps using AI tools, thanks.
Please make a video of how to use ChatGPT to control the lights of the house and interact with Alexa.
I probably will make a video like that soon ;)
@@DavidOndrej omg! Please, do it. That video will go viral.
Please make a video how to create a backend and then show me the bills coming
I use it for help but always end up asking about technical things that will not help le but are interesting to know 😂
Can I create a website using GPT where I can upload my stories chapter by chapter for readers?
laughed out loud when the copilot just showed the full function :D
Did you heard about Cocaptain vscode extension?
great, thanks
Which programs i need to download for programming or to do this ? :)
I am a java tech lead . I also use chat gpt , perplexity etc on a daily basis .have you ever tried to generate a complex project like airline traffic control using chat gpt 😂😂😂
dekuju za video :)
Can it create for me a better version of blender 3d program and optimize it fully?
As a veteran IT guy all I can say is be very careful what you wish for in automated coding because you will have to maintain the spaghetti mess. I predict that the maintenance costs will far outweigh the benefits of generated and poorly commented code.
The problem with using ChatGPT as a beginner, is that it will spit out buggy and inefficient code. You still need to know what you are doing.
true but once you get past the bugs its pretty easy to navigate its capabilities
@@circulartext I agree, copilot and ChatGPT is perfect for boilerplate code.
@@jenot7164so do you use chat gpt for to learn programming? Do you give it multiple prompts?
which software do you use for screen recording?
OBS
Hey man!
I'm trying to create a web services client that will create soap requests. Soap requests will have three parameters. The first parameter is a static text. The second is a string which is unique for each request. The third is an encrypted string with a private key sha256.
I have tried with charges but I'm really struggling. Can you help;
you can really prompt gpt just about anything
3:53 it worked. I did subscribe ;)
I know 1% programming I understood about 45-50% of what was happening in this video minus the technical lingo back fire back forth in your workflow thoughtprocess. we are living in an age that blows my mind every single day.
As an Offensive security specialist I find the ethical censorship on chat gpt super annoying when it comes to writing reverse shell scripts, have you been able to find any work around with the custom instructions?
man doing this is like dope, I made a python program that worked like 90% of the time, it was a robot that clicks on the screen based on few images that I gave to the bot, I did this for PUBG mobile game, there is this achievement complete 200 games in wow mode, I just let the robot do it while i was asleep😴😴😴
can it install python on my machine so I can run whatever code it creates?
Sana all may co-pilot.
You could also ask for beginner, intermediate, and advanced projects.
lol I don't know about coding "literally anything"! chatgpt is super helpful but its completely stupid if you need to ask it something that it doesn't have piles of training data for. without the eyes of an experienced dev on nontrivial or novel tasks it writes code with major gaps in security, performance, etc. that is usually fundamentally broken.
Paradni tutorial! :)
3:52 Declare war on tradition ?
Thats something hahaha
#### Summary
David Ondrej discusses how to build various projects with ChatGPT and VS Code, emphasizing that programming with ChatGPT is easy and educational. He outlines the process of creating a Morse code translator project and provide insights into using custom instructions.
#### Highlights
- 🤖 David demonstrates how to create a Morse code translator project with ChatGPT and VS Code.
- 🧑💻 He emphasizes the simplicity of programming with ChatGPT, even for beginners.
- 📝 Custom instructions are used to guide the programming process effectively.
For anybody studying programming get in fast and learn quick 2 years from now if your not in the industry hood luck competing against college grads with 3 years of AI experience along side programing fundamentals
The problem with this is that you get a lot of code that usually runs poorly. Since Chatgpt got most of its data from pages like stackoverflow where problems and solutions are being explained so users understand whats going on. While that is helpful, it doesn't create the most efficient code.
David you’re not fully correct , yea its possible to create anything with GPT4 but for doing that you need to know atleast Basic debugging skills. Since gpt4 spits out buggy code as well. If your usecase is simple you can simply copy paste but a little bit advanced stuff would require manual intervention as well
Thanks
Plus gpt 4 is paid and many can't buy stuff
Can it not debug?
@@Sulayman.786 not quite from the get go. But actually there are mutliple projects out there already that utilize chatgpt and other llms to work with instances of each other. For example langchain can be used to create two python aware agents that are collaborating on the task you hand them. this leads to constellations where the agent that produces buggy code is being corrected by the other one and so on…
70 lines in 1.24h for program simple like that. That's crazy.
we want more on MERN stack(tailwind), please...this is actual what freelancer do ...
1:21 just up to this point you already have so much fault assumption to other people. Just to choose which one to start they have no idea Game Dev is way much harder and todo list is the easiest one