r/ChatGPTCoding • • 14d ago

Question How to learn when AI coding?

I’ve been using Codex and Claude code to code 1 app, 1 website and 1 internal CRM system and I haven’t learnt a thing.

I’ve fallen into the habit of copying the prompts from the respective AI chatbot and pasting it for it to code and not learning what it’s saying and what it’s doing.

I have a system where it explains the changes but I feel like when the company gets off and running I won’t even know the product I even have.

This is hard for me as I am a person who learns easy and learns everything, but I can’t be a leader who doesn’t know the basics.

So my questions regardless this is:

  1. Has anyone dealt with this and what did they do to start getting better at taking control of the wheel instead of it driving for you?

  2. How have you learnt and what helped you learn to become more than an AI promoter and understand coding, building platforms and the system architecture in there.

Any books, courses, YouTube channels that helped you would be appreciated. I’ve tried Freecodecamp but I get bored as it doesn’t hit the spot for me.

Thanks.

8 Upvotes

36 comments sorted by

View all comments

12

u/norviking 14d ago
  1. Ask the llm to comment and explain all code extensively in the full repo. Tell it to assume your level of understanding. If you are a complete beginner, say Eli5 and explain all basics.

  2. You can then open the repo in vs code.

  3. Then read the files you want to understand.

  4. Ask the llm to explain the bits you dont understand.

  5. When you begin to understand a bit, try to implement some changes yourself and have the agent review them.

  6. You can also ask the LLM to draw a map or explain the structure in the project, so you have a visual image to connect the various files and parts to.

2

u/ThatGuyJord2020 14d ago

I like this! I currently get it to explain changes but not what and why its doing that its doing.

the problem I find is the AI at some point forgets and reverts to its old ways or doesn't follow the structure I set out for it.

4

u/norviking 14d ago edited 14d ago

Yeah. Instructions are skipped often unfortunately. 

If you ask claude/chat to write code comments it will look like this when you open it in vs code.

Vs code is good for reading all the code files in your repo.

Every line will be explained if you ask it. This is a simple example for python, but it will really help in complex systems. 

# A "comment" starts with a hashtag (#). The computer completely ignores it—it's just a sticky note for humans!

# 1. Create a "list" (inside square brackets [ ]) of item prices in a shopping cart.
cart_prices = [15, 30, 5]

# 2. Create a "variable" (a labeled storage box) starting at 0 to hold our final bill.
total_bill = 0

# 3. Start a "for loop": grab one price at a time from the list and temporarily nickname it "price".
for price in cart_prices:

    # 4. Notice the space on the left (indentation)! That means this line repeats for EVERY item.
    # Add the current item's price to our running total box.
    total_bill = total_bill + price

# 5. No more indentation means the loop is done! Print the final result to the screen once.
print(f"Your total is: ${total_bill}")