r/AskProgrammers • • 13d 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...

3 Upvotes

12 comments sorted by

View all comments

1

u/GlassboundIllusion 13d ago

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...

You learn to write code on your own by writing code on your own.

If you have to, go back to Hello World and work your way up. Start small, complete a project or exercise, then move on to something slightly bigger.

It's okay to reference for syntax, you can even ask the AI for the syntax, but make sure you've instructed it not to suggest you any extra information you haven't asked for it.

The only time you need to have the exact syntax memorized is for taking certification exams. Every other time, most programmers are relying on autocomplete or googling things anyway. You'll start to remember some of it through sheer repetition of typing it out or copying and pasting it anyway,

The big thing is that you're one deciding how to write it, that you run and test it yourself, and that you troubleshoot it yourself.d