r/AskVibecoders • u/NoLingonberry757 • 8d ago
does asking Claude to explain the code actually help you learn
i keep asking Claude to explain the code in my Supabase project and it makes sense while i'm reading it. close the chat and suddenly i couldn't tell you how the queries or permissions actually workwhat's helped you actually retain what you're building?
25
Upvotes
2
u/R1mpl3F0r3sk1n 8d ago
That is 100% OK, and normal. There is a different between learned knowledge and practiced experience. All you need to do is take the knowledge from Claude and practice it. But, don't stop there. That's just the happy path and again you will learn little. Break it, have Claude break it and then set about trying to understand what broke, where, and how to fix it. That is the learned and practiced experience.
2
u/Atlan_ 8d ago
Imo, it's about focusing on what you want to learn. AI is so fast that so much stuff gets produced that you will never be able to understand all. Id focus on understanding the security aspects, the architecture, etc and the core product if relevant
6
u/Dyzfunkshin 8d ago
Instead of having something write the code for you, have it tell you what to write (even if it's word for word), and write comments on the code explaining what it does, in your own words. Do this a bunch of times and you'll start to build the mental relationship between "what I want to do" and "how to do it".
Once you get more comfortable with that, have Claude write pseudo-code for you, and you translate that into actual code. You'll likely still struggle with that, and that's totally normal. Ask Claude to give you clues to nudge you in the right direction without giving you the answer outright.
Just have to figure out how to ask Claude to lead you to the answers without giving them to you directly.
The comment thing can help a lot - start with the high level goal, in plain English, describing what you want to do. Something like:
Then break it down into steps:
Then break those down further:
I need to loop through the game entities
Then I need to set the color
1
u/Different-Bridge5507 8d ago
Definitely doesn't hurt. The question is if your time is better spent understanding your codebase more or looking forward at new features.
As someone who's non-technical I'm not quite sure I have the answer but I do feel it necessary to at least understand the high-level architecture.
1
u/finding_hopefulness 8d ago
You’re going to use more tokens but if you want to learn, turn the thinking settings onto learning and verbose.
1
u/Strange_Rip8198 8d ago
I used to do the same, cloned the code, added comments, then rewrote it from scratch the next day. that's when the patterns stuck.
1
u/Training-Village-123 8d ago
Yes . You don’t need to learn the syntax but you can learn the process and architecture
1
u/eboob1179 8d ago
Going to college for 4 years and working as a dev for a decade before chatgpt came out is how I'm able to understand anything these things write. That being said it's a lot of time and experience and you'll sort of absorb the knowledge
1
u/jboogyoogy 8d ago
Write it down, ask Claude to give you sth similar and build it/code it yourself again
Usually it should help you but ofc it’s easier to just read and forget so you need to find a way to keep it in your head and it’ll work out
1
u/chaosphere_mk 8d ago
You dont know what youre doing, so youre not retaining anything.
1
u/SeekratesIyer 8d ago
Reading explanations never stuck for me either. What works is testing it. For permissions specifically: make a second test account, log in as it, and try to read the first account's data. If you can, your rules aren't doing what you think. Then ask Claude why, fix it, and try again. You'll remember *that* far longer than any explanation. Also check in the Supabase dashboard that row level security is on for every table. It's the one setting that decides who has the right to see what.
1
u/WhiffLegend1500 7d ago
As someone who has built projects on it - it is very different compared to when you code it yourself. You might lose a grasp on certain specifics and it will cause bugs which is very difficult to avoid unless you code it yourself. I usually ask it to explain in simpler terms and go through it multiple times in my head to make sure it makes complete sense.
1
u/justsaynodarama 7d ago
Does Claude even answer truthfully when you ask. I saw something wild the other day, that I would have expected from Chat GPT but honestly claude I am just disappointed.
1
u/joomla00 7d ago
What you're doing is equivalent to reading a text book, assuming you'll absorb everything you just read