Teaching Myself to Code: 1
So I started learning how to code for video games on my own because school is too expensive and I can’t get enough money from the government (go debt!)
Anyway, I’m not sure what to do with myself so I think I should write stuff about it, maybe my journey into the nonsense that is telling a computer to move pixels in a certain way that seem interesting.
So, here’s what I’ve learned so far, in a philosophical, sorta, advicy sorta way:
1) Don’t just steal someone else’s code for your code, you won’t learn what you are doing wrong this way. I started using a website that I can’t remember anymore that gamified coding for games, mostly working around creating a short algorithm somewhere between 10-50 lines (from what I got into so far) and I can’t honestly remember any of it because I just got angry and waited for the code hints to appear and I wouldn’t learn anything because I “understood the logic.” i wasted roughly 30 hours not learning a thing.
2) Set your sights low on the small targets when starting out. Currently I’m making a game and it’s a slow process that will likely never actually be finished until the next game I make. Starting with near-zero experience, it took me a lot of time to learn what to type and how to type it. Don’t start working on a game thinking about how you’re going to make the next RTS or Fire Emblem game and instead say to yourself “I’m going to learn how to make my player character interact with a singular object and figure out how to make that work ALL the time for everything.”
3) Keep it simple. Like, really.
4) Learn how to organize your code! So many errors occur when you type too fast and forget a “ “ “or a “)” or a “;” and by setting up a consistent programming style similar to what you’d see an actual professional use helps to find the errant lines faster so you can continue to make more mistakes later.
5) Don’t let your failures stop you. “Fail Faster.” I love this mentality because it means you’ll never be perfect. Your next failure is just a step away, and hopefully that failure is a lesson. With every failure you get closer to your hopes and dreams.