Day 5: So you want to be a developer
Yesterday, I said it was fine to start with copying and pasting someone else's code as long as you learned to read it. I also said that a second option for getting started was to code a simple application that interested you.
Before you start on that app, let's talk pseudo code
Pseudo code is one of two, not mutually exclusive, ways I get started if I'm writing something new. You simply write down what you are going to code in English (or whatever language you speak/ write.) Some people believe your pseudo code needs a structure but if you are writing it for yourself, there really are no rules.
Let me give you an example for the memory game application. Here is my pseudo code.
领英推荐
Your mileage may vary, but for me, I find starting any reasonably complicated program with pseudo code helps me see what the main features are versus the bells and whistles. For example, it would be nice if the cards made a sound like being flipped over, and I could add that later but it's not part of getting the game to work.
Also, for me, breaking large projects down into parts like this makes it seem not so overwhelming. As opposed to feeling as if I have made no progress because the damn thing STILL doesn't work, I can see that I have knocked off a third of what I set out to do.
And now, since I really did get a lot working today, and it's late, I'll save the drawing part for tomorrow. (Okay, that also turned out to be a lie because I decided I wanted to get into coding a little bit and talk about arrays. I'll get to flow charts and other pictures some other time.)