I recently had a friend reach out to me based on another entry from this month, the Pixel Art entry. He said it helped push him over the line from it being something he thought about, to something that he’s finally getting started doing something with. And I’m not even in sure in this case that it was the technical information in the entry so much as simply hearing it, and having someone remind you that you have access to everything that you need to do this. Someone pointing out a few basic ways to not shoot yourself in the foot, now go have fun, may be enough.
I think sometimes we forget that in 2012 the resources available to us are absolutely enormous. If it was 50 years ago, and there was something you wanted to learn about, you would have to travel out somewhere, you would have to find a book, you would have no way of finding out what other people thought of the book, whether it was worthwhile or a waste of time. But now, with a lot of these skills, a lot of this material, it is literally all over the web. Especially for technical things. If what’re trying to learn is a programming skill or a computer software skill those are the same people who are crawling the web desperately spelling out everything that they know, recording video tutorials and screencasts, offering insight, responding to questions. So I started thinking recently: maybe the limiting factor here isn’t a lack of, oh no one has written a good tutorial on that yet (though that’s probably still the case in a few blind spots for us), so much as, no one is really taking the time to articulate “Here is why this is a path worth taking. Here are the benefits that will be afforded to you if you’ll pick this programming language to start with, or if you’ll just get started down this road of learning this technology, that it’s really not as hard as it might sound, and it’s within your capabilities.”
Certainly if there are other things that you’re taking on we can compare them to it, and say, this is actually less challenging than that, you just haven’t tried it yet. You’ve got this idea that it’s something you can’t do. Really you’re probably a few evenings of tinkering from being pretty proficient at doing the basics with it, and in a matter of weeks or months from being able to do much of what anybody else can do.
There’s two subjects, I’m dividing these up between these two entries. For the Special Topics entry–which I’ve always left kind of vague whether it’s Beginner, Intermediate, or Advanced, the whole idea right is that it’s sort of a miscellaneous–I want to focus on Processing as a way to get people into programming who are totally alien to programming, who have never started it in any sort of language. Then for the Advanced entry, I’ll be discussing the basics of web development, in particular the benefits of PHP, CSS, and MySQL – what these technologies are, what they do for us, and why as videogame developers (even hobbyists) we should care. What do they let us do that we can’t do without them? How are they unlike other technologies that we know?
If you’re totally new to programming, here’s why I’m going to recommend Processing as a starting point. You’ll hear some counterarguments to this, either that Processing isn’t as low-level as some other languages, so that C might be a better place to start. And I will say that if your long-term goal is to be a commercially hired programmer, C is probably a good point to start as well, for different reasons. The benefit with Processing is that out of the whole family of programming languages out there, a lot of them are structured differently from one another, different advantages, and different quirks that you kind of have to fight your way around to make them work. Processing is designed in a way that minimizes the language-specific quirks that you have to fight around.
Processing was designed at MIT, it’s website is processing.org, where you can download the development environment. It works fine in Mac, and in Windows, and I assume in Linux (though I can’t say I’ve tried it).
One of the common barriers for programmers is the problem of imports and includes. What that is, is that a programming language actually has very few core functions built into it in terms of what it can do and how it does it. There’s a few keywords, maybe a couple of dozen words which are special to the programming language, and otherwise for doing nearly anything like drawing graphics to the screen, loading sound files, even displaying text (especially with fonts) you would need to figure out which of the available libraries, that in some cases come with the code, you need to specifically import in order to say have access to drawing on the screen, or to loading certain image formats, or to performing network operations.
Processing assumes many of the most common ones for you. This way you don’t have to wonder when your code doesn’t work whether it’s because you forgot to import the right library or include the right functionality, or if it’s the code you wrote. It can narrow it down the code you wrote. Meanwhile you still need your semicolons in the right places, you still need to manage your scope, you’ll still be fighting with compiler errors.
Something I want to point out that I think Processing is good for getting people to think about is that compilation errors are a part of programming. They’re not a sign that you’re doing something wrong, they’re not a sign that you’re bad at it. Very experienced programmers, myself and my peers, still get compiler errors from the work that we’re doing. When I was working on some php this morning for some professors, there’s no compiler in the php process, but still maybe one in three times when I would refresh to check changes I was making I would be staring at a blank website, which was my sign that I made an error.
Processing also abstracts away the compilation process. Typically when you write code, you type out the characters on your keyboard to spell out the way you want the logic to proceed, the way you want memory to be used, and so on. In Processing instead of having to separately add a step to go from that typed code to a separate program and then running that program externally, there is just a play button which in one fell swoop translates the text you’ve written into code that’s ready to run and runs it.
I hope I’ve made a decent and somewhat concise case for getting started on programming with Processing if you’re totally new to programming. I will be providing some clearer examples to start from in the weeks ahead specifically in Processing. They’ll actually be based on the old Volume 5 entry, in which I discuss ideas like white space, for loops, imports, if conditionals, while loops, and so on, these very common structures like arrays, objects/classes. I’ll be presenting those in a context of Processing in a way that resembles core videogame-like functionality simply as a way to ground what we’re doing.
Download Processing, install it, muck around with it, you might surprise yourself with how far you’re able to get just fooling around with some example code and browsing the resources at processing.org.
Learn and practice team game development with Gamkedo Club.
Membership worldwide. Professional support. Proven process.
Subscribe by e-mail to receive weekly updates with Gamkedo.Community interviews and YouTube training videos for game developers!