What is a good strategy in order to learn how to code?

so i’ve been basically trying to find a good strategy in order to improve at coding.

usually i use either 1 of 2 strategies.

strategy 1:

  1. pick something to code and start to code it. (eg: make an animated NPC constantly move to u, the player)

from here i would read through people’s scripts in a model from the toolbox or from the forum that have successfully done it so that i can achieve something similar if not the same

or

strategy 2:

  1. i would go through each class in the roblox engine API and code using only the events, methods and properties from that class until i become familiar with the whole class and move onto the next one.
    (by class i mean humanoid, mouse, players, runservice, etc)

what are all your workflows/strategies when it comes to learning? i hope ppl can learn from my strategies also!! :slight_smile:

5 Likes

Learn through practice and feedback. Instead of following tutorials, try to make something yourself. Whatever you try to make by writing code will most likely fail(due to lack of experience). There will be errors in the output, search in the web to understand them. Fix the errors, logic errors will appear(that don’t show errors in the output), search on the web again and steal other people code to fix those. Repeat over and over again until you form habits.

Another strategy is to get scripts of other people and modify them so they match your needs. At the start you only modify basic things(for example number variables), then entire segments of code(for example change if statements to add your own conditions), until you can write your very own scripts.

Whatever you do you must directly interact with code, just copying from a tutorial won’t do much.

In general I wouldn’t suggest learning things when you don’t need them(for example going through each class in documentation), because when our brains don’t consider a piece of information important, they tend to forget it quite easily. Instead try to search up those when you actually have to use them, so the brain creates a more clear and stable understanding of those topics.

7 Likes

hey Nyrion,
that answer couldn’t be better than that honestly.

you’re also right about tutorials. i would easily sit there after a 20 minute tutorial and not gain anything from it.

as for going through each class, datatypes and stuff the only reason why i do that is because just in case there may be a tool that would help me with my code; that i was unaware of its existence before. though you are right i would easily forget a lot of the info.

like today i used task.spawn for my first time and didnt know it existed until earlier today and its purpose, etc.

i suppose scanning the documentation wouldn’t be a terrible idea but not religiously following it like u said just in case there are certain properties, etc that may help u with ur projects and what not.

thanks so much for your help and feedback, i much appreciate it. have a great day!!! :slight_smile:

4 Likes

Commit your life to it, program even if you’re just messing around trying new things, do tutorials like mad and go to college and get a degree. Worked for me and I’ve enjoyed every moment.

5 Likes

ah i see,
code as much as you breathe kinda thing. thanks for your help Jay :+1:

5 Likes

I learned Roblox scripting mostly from YouTube tutorials on different topics, which can help you learn about the services and methods they have available on Roblox, and also from my existing JavaScript knowledge.

3 Likes

You really gain ground exponentially as you go and they have this wonderful thing in college where you can test out of a class. It’s hard to imagine a profession that has more of an advantage in being able to testing out.

2 Likes

Idk if this would apply to you but find someone to code with. Having a partner is probably the best way to learn especially if they’re more experienced. It’s also more fun when you code with someone else and you both will learn together :wink:

Sadly I had no one so I just watched YouTube tutorials and read the forum and reference as much as I could

2 Likes

absolutely. learning from one who is more experienced in a field than you are really shortens the time it takes for you to progress.

i also relate to this very well. thanks for your answer man!!!

1 Like

indeed it can mate. we all started out from youtube tutorials somewhat. youtube videos are a great and powerful resource but you shouldn’t rely wholeheartedly on them as watching videos doesn’t code for us unfortunately. we have to actively engage with it.

thanks for your answer mate! :+1:

3 Likes