
Originally Posted by
orinthia
Take the time to plan your code first before writing it. Like in a notebook, write out your problem and how you think you might be able to solve it using pseudocode, in English, or whatever gets the point across. Write with a pen, use a single line through mistakes (like a font in strikethrough tags), and continue to write your thoughts on the problem as you stumble through to the solution. Write errors, thoughts, trials, and pictures if needed. You will make tons of errors, it's a given, so review your entries and keep through to a solution. Write comments in your code as well, like where you found a piece of code, what the code does if it's not obvious, or what you're doing with a large block of code (whats it do, inputs, outputs, etc).
There, you'll be more familiar with an Engineering Notebook and code commenting than most of your year's class It's a good idea to do this for most of your assignments if the solution is not obvious, even if you're not required (just use a regular ringed notebook, not a real one unless it's necessary). This way it's not such a shock or a pain to do the entries for a grade. Many of my courses required the commenting and notebook entries (had online page to make entries). The Planning, where you're trying to quantify the more important things your program is supposed to do, is similar to a Requirements Document, though a lot less formal. You'll also need to be familiar with these, as its purpose is to try and plain-English your project and outline its main aspects, what it does, what it uses, how, etc, and sometimes required in upper level courses. You'll learn more about both when you start your courses, but it's a good habit to form early (especially code commenting, nearly all languages have something for commenting inside source code).
Most programming languages you'll be using will probably have C-like syntax, so if you're familiar with Java, you'll be able to adapt quickly. You'll still be doing a lot of googling for sample code, but you'll get better as you take apart the code itself and understand how it's working. CS is very brainy and you'll see tons of people drop after the first semester lol, don't get discouraged.