How to go about learning programming

Published October 26, 2020 by Galaxyraider9
Do you see issues with this article? Let us know.
Advertisement

As a person who has learned many different programming languages you would think i would have a steady strategy for learning programming languages and you are mostly right i have a strategy that i always follow to learn programming so here is that strategy.

SECTION 1 Starting out First thing first you need to have a goal you want to complete that is not ridiculous for a beginner like i want to make a script that creates a window in java. Assuming you know nothing about java you should google how to make a hello world script in java do not bother with trying to learn how java works, at first you just want to have some code that actually works. Okay so lets say you got your hello world script working know you should google how to make java open a window and test some of the code of tutorials and try to just get the basic window open.

At this point you should have 2 scripts 1 that prints hello world and one that opens a window that doesn't seem like much and it isn't but its a good start.

SECTION 2 The complex stuff So lets say you are still using java and you want to make a short pong game, the best way to go about this for any type of coding is get an ide so your not just typing code in to terminal. After you get your preferred ide you should watch some tutorials on how it works and experiment a little. Once you get to know the ide a little you should start just watching tutorials and trying any code you can to try to make your game at this point you should have about a couple sprites and some code to move them around. It can be very frustrating to find good code to do this but there are some good tutorials. At this point it is probably a few days in and you are extremely frustrated and nothing is going right at this point i would say take a break maybe watch some java tutorials well playing games for a few days.

SECTION 3 Understanding the code After you take a break for a few days you should be fresh and rejuvenated and have some more knowledge of your programming language the first thing you should do is just keep trying to finish just at least the simplest game like pong this will take a few days in most cases and be frustrating but once you finish you will feel very good and motivated. At this point you have been working for a week maybe two and you should probably take a break and watch all the tutorials you can find on your programming language and try to understand the tutorials and why the code works also play some games made with that programming language to see what possible. Now try to polish or remake the same game or a different one with your own code try to understand whats happening and do the code without a tutorial just trail and error.

SECTION 4 Final steps Now that you have completed all that you should move on to your own idea something small but not to small and try to come up with most of your own code or use other peoples code and put it together in different ways.

Thanks for reading! I hope this helped and good luck with your programming!

Cancel Save
0 Likes 4 Comments

Comments

Galaxyraider9

Sorry i wrote this very quickly and may of missed some stuff if you want me to make a full version just say but I hope you found this helpful!

October 26, 2020 08:14 PM
yababa1

Great article. I hope to see more post from you. Basic breakdown, yet some structured writhing would help.

November 08, 2020 08:30 PM
RichardNoblitt

spam removed

November 30, 2021 04:07 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!

Learning programming is very hard, but with some frustration you can learn programming, come up with a goal start coding reach that goal and much more steps to learn programming.

Advertisement

Other Tutorials by Galaxyraider9

Galaxyraider9 has not posted any other tutorials. Encourage them to write more!
Advertisement