Saturday 21 February 2015

WHAT A NEW PROGRAMMER MUST KNOW

There are some programming concepts a new programmer must know before he start learning any programming language. These concepts are,

Variable:- You can think of a variable as a container for storing values. Variables are used in programming languages to store data, the data can be in form of characters, numbers or Boolean.

(     Control-Flow/Decision Making:- Decision making is the ability of a program to make a decision during its execution. Without this feature, creation of complex software will not be feasible. Decision Statements like IF, IF-ELSE, SWITCH are used in controlling the flow of program execution or make a decision. For example, your program has a form where user can enter his details, but if the user enter wrong details the program must make a decision on what to do next.

Loop:- Looping is like repeating something, most of the world programming languages have this feature. Looping is used when you want to do something repeatedly for a number of times. For example, if you want your program to print same lines of text let’s say one hundred times, it is a huge waste of time to write one hundred lines of code that print the same text. But you can put your one line that print the text in a loop and make the loop to execute one hundred times. However, you should know that too much loops can slow down your program.

No comments:

Post a Comment