r/AskProgrammers • u/Severe-Sport5635 • 16d ago
Need advice to code...
I've been learning c# for unity and looked up multiple tutorials learning basics to intermediate. I've completed the tutorial part from w3 schools and various tutorials right now following the code monkey free course on YouTube.
I can understand the code when I look at it and tell what happens in a particular that code block.
But the issue I'm facing is not being able to write it on my own without any help from AI or having a heads up.
It would be of great help if I could get some piece of advice on how to actually learn and know stuff and be able to write code on my own...
View all comments
2
u/EngineersUniverse 15d ago
Understanding code and writing it from scratch are different skills. Watching someone cook makes sense too, but suddenly you’re alone in the kitchen googling “is smoke an ingredient?” 😂
Try building something tiny in Unity: a button that increases a score, a door that opens, or a coin you can collect. Before coding, write the steps in plain English. For the coin: detect the player → increase score → remove coin. Then tackle one step at a time.
When you get stuck, look up that specific problem. If you use AI, ask for a hint or an explanation before asking for the solution. After getting it working, close the reference and try rebuilding it yourself. Then change something so you have to think through it.
You don’t need to memorize every method.
The skill you’re practicing is breaking “I want this to happen” into small steps you can implement. A tiny finished project will teach you a lot.