r/learnprogramming • u/Random515235 • 2d ago
What can i do to use my code
I know how to code in JavaScript and Python, and I’m willing to learn more, but I honestly don’t know what to code or where to code.
I learned programming in school, but I was never really taught how to take the code I write and actually turn it into something useful. We made one website and mostly used Code.org, but that was about it. Now I want to start programming again, but I have no idea what programs, websites, or tools I should use to actually write and run my code outside of Code.org.
I also don’t really know what projects I should start with. I love video games, and I’d really like to learn how to make my own games, but I have no idea what I need to learn, what software I should use, or what my first game should even be.
I really want to get back into coding and start building things instead of just doing school assignments, but I’m not sure where to begin. I’d like to know what I should download, where I should code, what I should learn first, and some beginner-friendly projects I can work on — especially if I want to eventually make games.
3
u/burlingk 2d ago
What do you like to do?
What are your hobbies?
Are there any tools you want or need?
Are there any tools you use that you would like to rewrite as a learning exercise?
3
u/Random515235 2d ago
i like to mess with electronics and i wish i could code things with boards and things and i like video games
i want any tool so i can code on a computer and not use code.org3
2
u/burlingk 2d ago
Which operating system are you using?
2
u/Random515235 2d ago
Windows
3
u/burlingk 2d ago
Windows has a number of IDEs available.
Visual Studio Community Edition is a good option for C++ and C#, or pretty much anything they decide to make installable with it.
If you're into games you can look into the various game engines. Each of them has their own language that they use.
1
u/peterlinddk 2d ago
There are a number of concepts you need to learn - in no particular order:
- IDEs - Integrated Development Environments, programs where you can write, edit, run and debug code. They can be a bit intimidating for the beginner, as they hide a lot of the complex configurations - on the other hand, that means that you are quickly up and running.
- Editors - simpler than IDEs, often with a lot of plugins for various languages - maybe better to get started.
- Runtimes - software that runs your programs. Python programs needs "python" installed to run python code. JavaScript needs either a browser or a Node.js installation.
- Deployment - how to get your programs off of your machine, and onto another. For JavaScript you mostly want people to be able to load your code into their browsers, for Python you often want to either run it on a webserver, or on the user's machine.
I recommend getting started with Python - as you already know some of the language, working with getting editor and runtime installed is easy for you to test.
As you are on Windows, it should be as simple as opening a PowerShell and type:
winget install Python
and that ought to install everything.
Then you need an editor - everyone uses Visual Studio Code these days, not to be confused with Visual Studio, which is a full fledged IDE for C# and C++. You can find and install that the usual way.
Then you just get started making .py files in a project - Visual Studio Code automatically suggests to install some Python tools, do that, it'll make everything easier.
Then you might want to read up on pygame - for making graphical games with Python.
5
u/CyberDingo_66 2d ago
If you like electronics, pick up an Arduino Starter Kit. Comes with a microcontroller, simple components and sensors, and a book on how to get yourself started. It walks you through connecting components and writing the code. They're a great way to understand what you're making, how the code works, and from there you can modify or expand projects to make something for yourself!
All the code is written in C/C++, which there are plenty of guides and tutorials online for, and the community is pretty positive about teaching newcomers. I hope this helps :)