How to Get Started With Computer Programming

Add to iTunes | Add to YouTube | Add to Google | RSS Feed

Programming is NOT as scary of a task as you might imagine. I know some people who shudder at the thought of learning any programming language. However, take a read through these tips, and find out for yourself how to get started.

  • Save your coding often! Everybody knows the feeling of having worked for several hours on the same thing and you lose it for various reasons (the computer goes down, program crash, power out). I usually save every five minute or every time I have written a line.
  • Backup your code! Kind of for the same reason as tip 1. When working on a mac it is really easy to back up with Time Machine. I do this every night before I go to bed.
  • Write proper comments everywhere. Comments are very important. Even though you might not find it useful at the time you write the code, imagine how it is if you do not look at the code for a year. It will take you up to several hours to figure out how the program runs if you have to read the code instead of the comments. It is also a requirement to use commenting if you are developing code as a team.
  • Keep your code clean. Linebreaks are free. Separate your code in chunks sorted by what it does. Make it easy to overcome. Combined with tip 3 you are good to go. It is also good to separate the code in files. Files for functions, common used files and so on.
  • Test your code often!!!! Whenever you have made a simple part of the code, test it. Writing 400 lines of code before testing is a nightmare. Do it as often as you can. Output your variables to see if they contain what they are supposed to. Also twist your mind to be predict every possability of program crashing and error reporting. E.g. If the end-user is supposed to input a variable. Check if it is a variable, if not, stop and tell the user. Not checking stuff can be fatal and is the main reason websites get hacked.

[rsslist:http://shop.tagjag.com/products/Computer+Programming]

Want to embed this video on your own site, blog, or forum? Use this code or download the video: