r/ChatGPTCoding • • May 04 '24

Question How can i develop using AI like chatGPT, claude, etc as a beginner with only basic knowledge in programming and improve my programming knowledge along the way?

Hello there, i want to start to develop using AI. i want to see how my ideas come to life. i know i am supposed to learn the programming language in depth, but i dont have time for that now because i am so busy with other things as well and i now find spending time watching the tutorials and reading the books about programming daunting. I get bored really quickly. i was experimenting with creating like discord and telegram bots using AI that you can chat with, and i found it to be amazing, and so i want to starting creating some compplex projects like creating apps or websites. but my knowledge is very limited, in some cases i dont know what sequence to go with when prompting the llm. for example when i want to create a football game. i might say to the llm, "create a java code for my football game" 😂, i know it sounds funny but i dont know the sub-processes which makes the entire program that i want to make like in our case football game. so you guys, can you enlighten me, all the processes that are required to prompt the llm when developing using it?
(honestly i dont know what i am asking, because i am unfamiliar)

8 Upvotes

50 comments sorted by

13

u/seoulsrvr May 04 '24

I started coding in the early 90's - literally been writing software half my life.
I really wish that I had had tools like Claude when I started out. It saves you a tremendous amount of frustration. My entire team use these tools now and our productivity has skyrocketed as a result.
Just remember to actually ask questions when you don't understand something - it isn't enough to just copy paste code; you will never learn anything that way.

2

u/360truth_hunter May 04 '24

okay, the good thing is that i am always curious, and want to understand things deep down yk. so yeah i will not just do copy pasta :)

1

u/ogaat May 04 '24

What tools are used by your team?

I prototyped on Github Pilot and was going to roll it out to my team but seeing comments about its inefficiencies.

5

u/Relevant-Draft-7780 May 04 '24

My answer to you and the best way to learn is to try making something that’s really important to you. Don’t follow a tutorial, or make another todo app. Try to build your own tool. You’ll make many mistakes along the way but you’ll get a better understanding of programming, the language you selected then just following along. Use gpt to help you and ask it to talk to you about it like an absolute beginner. I have no doubt that if you give it a go, you’ll pull this off but you need to be persistent and also be interested in what your doing. JavaScript is a terrible language as it’s so inconsistent but it’s still a great starting point as whatever you build you can also use in a browser. Otherwise go for Python. I’d avoid using any Microsoft related frameworks as they’re more likely to lock you in long term. So the question is what do you want to build? Discord bots or telegram bots then JavaScript is a good start. Want more structure use typescript

1

u/360truth_hunter May 04 '24

That's touches deeply, i totally agree with you. The key is motivation, right?

2

u/Relevant-Draft-7780 May 04 '24

Yup, I wasted years being forced to program at uni and not giving two shits. Then one day I wanted to start my own business. Made more progress in 6 months than 4 years at uni.

8

u/Domugraphic May 04 '24

mate if you cant program you're gonna spend more time trying and failing to prompt an LLM to do what you want than just knuckling down and learning the basic concepts of coding. if you don't know why there is or how to spot what is causing an error then you've literally wasted all your time up until that point. And if you get bored easily, then i doubt you'll stomach the inevitable back and forth trying to get it to fix its own mistake. Watch some tutorials on programming concepts, hell even learn a nice simple language like processing. SMH

1

u/360truth_hunter May 04 '24

at first yes i agree with you, just like when the beginner tries to understand a certain programming language. but i think i will get used to it. i tried to create the bots using the llms and i was failing a lot but it is not like when i do the things on my own. because when i fail i dont know even (sometimes) what cause the error, and even if i see i dont know how the error can be solved. but when i was using llms to create the bots with zero knowledge of api, i just knew that api are forming requests only that, and then i gone all the way to make my project work, yes i encountered lot of errors along the way but i made it. i dont say that it will apply to complex problems as well like creating an app. that is why i am here for advice. but no advice, i'm given will continue anyway until i understand

9

u/Severin_Suveren May 04 '24

Yeah the guy above you is dead wrong. Might be has a different perspective with some validity, but still, he is wrong.

What's great about coding with LLMs is that you can give them simple instructions, then they convert those instructions into complex actions. Then when you need help deciphering whatever error or response you get from those complex actions, the LLM will then do the opposite operation it did earlier, and convert the complex information back into an intuitive explanation by the LLM.

Effectively LLMs, if they're good enough, then becomes highly effective 2-way complexity translators. As a consequence of this, it allows the user to code things that are beyond their abilities, and allows the user to simply hold an overview perspective of the project, while delegating tasks to the LLM, all the way until completion of the project.

To give an example of the basic process, here's what you could do if you wanted to create a basic LLM chatbot:

Initial prompt - Define the structure***:***

I want to create a Python application for running LLM inference, with added functionality for keeping chat history and for managing and applying prompt templates.

I'm thinking we use FastAPI for the implementation of the backend and frontend, The database library for async SQL operations and lastly the Transformers library for the running of models.

Please output to me the names of all the Python classes and functions we'd need to create such an application. Fill all the functions with placeholder comments, accurately describing each distinct action we will have to make in the functions.

I also want the names of all the SQL tables and columns we'll need. I want these in the form of SQL TABLE CREATE statements.

LLM Response:

...

  1. FastAPI Setup and Route Handlers

     from fastapi import FastAPI, HTTPException
     from models import PromptTemplate, ChatHistory
     from inference import run_inference
     from database import get_db_session
     
     app = FastAPI()
     
     @app.post("/inference/")
     async def inference(prompt: str):
         """
         Receive a prompt, run inference, and return the generated response.
         """
         response = run_inference(prompt)
         return {"response": response}
     
     @app.get("/history/")
     async def get_history():
         """
         Retrieve and return chat history from the database.
         """
         async with get_db_session() as session:
             history = await session.get_history()
             return {"history": history}
     
     ...

Follow-up prompts - Build content***:***

Context:

[ Memory prompt consisting of: ( app description + all code outputed by LLM so far ) ]

Instructions:

Please output to me the function (function_name) in its entirety. I don't want any other code, just this one function and any other code changes you will need to make when implementing this function.

...

Repeat the process until you've iterated through and implemented all of the functions, then:

  1. Run the script
  2. 100% certain it will fail, so copy any error message back to the LLM
  3. Implement fix
  4. Run the script

4.a If script fails, repeat from Step 2

4.b When script eventually runs, go through each function of the script and test them. Report any deviations from the original instructions back to the LLM for fixing

1

u/360truth_hunter May 04 '24

that's great bro

1

u/Severin_Suveren May 04 '24

yw, and good luck on your travels! :)

3

u/Domugraphic May 04 '24

really, learn the basics, variables, loops, functions, classes, how to import libraries etc. itll save you a shit tonne of time

5

u/NickoBicko May 04 '24

How can I build a car engine from scratch when I have 0 mechanical or engineering experience?

4

u/360truth_hunter May 04 '24

i think your analogy is doesnt match with what i said. Maybe if you add this;
using a robot with almost all knowledge which is required to build the car engine, but lack a good reasoning ability of how to use what it knows to bring a meaningful output. in this case i can somehow try if i am good at reasoning about the facts the robot might tell on building the engine, then i can build the engine.

2

u/[deleted] May 04 '24

In this analogy, you have 0 welding skills, 0 electric skills. Building a car from a guide is theoretically possible but not at all realistic

2

u/360truth_hunter May 04 '24

not just a "guide" i think it's more. maybe if i was referring to the book or tutorial. Also, i don't have "0" knowledge, because that would mean i would fail at all in knowing even what to ask. or how to reason behind on how to use it. as i said i have some basic knowledge of Programming. and am kinda good at it. so still your analogy don't apply here.

0

u/[deleted] May 04 '24

Well you seem to have it all figured out based on your replies. Have fun!

2

u/360truth_hunter May 04 '24

Bro are you a philosopher or sth 😅😅

1

u/[deleted] May 04 '24

Indubitably. Perchance amiss, but alas

2

u/Reason_He_Wins_Again May 04 '24

By asking them to make tutorials for you

Not being flippant...but thats literally the best way now imo.

1

u/360truth_hunter May 04 '24

Ok that's great

1

u/[deleted] May 04 '24

[removed] — view removed comment

1

u/AutoModerator May 04 '24

Sorry, your submission has been removed due to inadequate account karma.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Witty_Syllabub_1722 May 04 '24

I am also doing the same thing. One thing that I tried was first getting chatgpt to ask me questions about programming, then I go to perplexity and provide them the question, and get it to explain the answer to me.

Usually I don't understand, so I ask for an analogy. Based on the analogy, I tried to rephrase and answer to chatgpt.

Then chatgpt will let me know if my answer is right or almost right. Based on that it will ask me more and more questions.

Once I think I can answer most of the questions based on not asking perplexity, I think I understand the concept.

Once doing that, then I can start learning about file structure and code. Try to do the simplest thing first, then learn about clean architect etc so that your app can be scalable.

1

u/Stock_Complaint4723 May 04 '24

Have you searched on YouTube for a few videos that demonstrate how others have gone about this? You could even ask the LLM to suggest keywords to use in searching YouTube.

1

u/360truth_hunter May 04 '24

i haven't, lately i found myself to have trouvle concentrating on youtube videos. but i will try harder thanks

1

u/Stock_Complaint4723 May 04 '24

Yes there are YouTubers who are hard to watch but others who are easy and fun to listen to. You have to shop around some. 🤷‍♂️

1

u/360truth_hunter May 04 '24

okay i will try i guess

1

u/Stock_Complaint4723 May 04 '24

“There is no try. Only do or do not” - some little green guy

1

u/360truth_hunter May 04 '24

ok some.....guy 😅

1

u/eightysixmonkeys May 04 '24

You need to learn the fundamentals yourself, first. Take MITs online programming class or something

2

u/360truth_hunter May 04 '24

but you know some tutorials are boring, i just use them for reference and what to ask the llm but i can't watch them and finish them, at least nowadays where my attention is really low

1

u/eightysixmonkeys May 04 '24

Yeah but treat it like you’re learning a new spoken language. You have to get used to the vernacular of programming. Like oh, I know I should use a for loop here because I need to iterate over this container, or I should use a while loop because I have a Boolean stop condition, etc etc

It’s all about practice at the end of the day

1

u/360truth_hunter May 04 '24

okay, i will try my best!

1

u/79cent May 04 '24

You can do it!

1

u/geepytee May 08 '24

Ok boomer

1

u/eightysixmonkeys May 08 '24

I’m 12 years old working at Microsoft as a softwear engineer. Not a boomer sorry 🙂

1

u/geepytee May 08 '24

No chance, vibe is giving boomer. Suggesting to take an MIT online programming class is what gave it away, a true Gen Z-er would be like "go watch some tiktoks"

2

u/devilmaydance May 04 '24 edited May 06 '24

“Help me create a {your app idea here}, step by step. I am a beginner to programming, so explain concepts to me as we go along.” Then ask questions about each bit of code it generates or concepts you don’t understand. Be sure to Google any new terms or concepts just to make sure it’s not giving you bad info.

1

u/CodebuddyGuy May 04 '24 edited May 04 '24

I wrote something on this very topic, let me know if it does help you or if it leaves you with more questions. I'd love to improve on it: https://codebuddy.ca/blog/learn-with-codebuddy

1

u/[deleted] May 04 '24

[removed] — view removed comment

1

u/AutoModerator May 04 '24

Sorry, your submission has been removed due to inadequate account karma.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] Nov 04 '24

[removed] — view removed comment

1

u/AutoModerator Nov 04 '24

Sorry, your submission has been removed due to inadequate account karma.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] Jun 16 '26

[removed] — view removed comment

1

u/AutoModerator Jun 16 '26

Sorry, your submission has been removed for manual review due to account karma.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.