Sep 26, 2009

Programming Dilemma

A famous pizza man said one “Success is a horrible teacher”. You should know that pizza man because he ended up as one of the most infulencial guys in our modern history. Bill Gates.

Especially in programming, the best way to learn is when you commit, discover and correct mistakes as you go along.

In programming there are two kinds of errors that could happen.

Design Time (Compile Time) errors happens when you are simply writing the program in visual studio. Fortunatly these errors are highlighted automatically by underlining them using red and green line (read mean error and green mean warning)

Run Time errors occurs when the programming is running (the most commonly used term for this is bugs). All of us want to write programs that are bug free. However since we are humans we can not achieve this goal. the good news though is that with practice your are more likely to write near bug free programs. As somebody has said “programming is easy, it is finding all the problems that is hard”.

 

A recommended technique is simply “Write a little, Test a little”. Simply write your piece of code and make sure after testing it that it behaves as expected.

No comments: