Udjuni.com

udjuni.com search:




Introduction to Programming


What exactly is programming?


Programming can be defined as the art of telling a computer to do whatever you want it to. If you are reading this posting you probably started off with switching the computer on and then opened the browser that got you to this page.
Every computer has a program that is called the Operating System These are among the first programs to be run in preparation for the platform that a human can understand and interact with. There are a number of them out there, common ones are Linux, Unix, Microsoft DOS and Microsoft Windows. These platforms contain clear instructions telling the computer to perform functions in a certain sequential order.
Here is an example of instructions given to a computer to add two numbers:
In human language it is as simple as 9 + 1 =
Giving this instructions to a computer would take the following shape:
1. Take a number 9
2. Take a number 1
3. Add the two numbers
4. Return the result

There are many programming languages out there that you can use to instruct the computer to do what you want. These languages include PHP, C#, C++, C, Java, JavaScript, etc. Some are easier to learn, runs faster and less resource intensive than others.
To do this in PHP for example, you would issue the following instructions:
   <? 
$answer = 9 + 1;
echo $answer;
?>

if you wanted to use the numbers somewhere else in your program without having to be repetitive, you could do the following:
 <? 
$firstnumber = 9;
$secondnumber = 1;

$answer = $firstnumber + $secondnumber;
echo $answer;
?>

These two pieces of code produce the same results. The command echo in PHP tells the computer to display the answer on the screen. If you omitted that line, the computer would still do the calculations but nothing would be displayed.


RELATED ARTICLES:


Introduction to Java programming
Computer program as we learned in the posting Introduction to Programming

Starting to program in Java
Most java developers would describe it as an innovative programming language that enables a developer to write what is called "Applets" or pieces of java code that can be embedded in web pages. In addition to this benefit, compiled java code can be run on a variety of

Compiling and executing a java program
Java source code is always stored in a file with a .java file extension. Once you have created your source code, you simply save it with a .java extension and it is ready to be compiled. To compile your java code, you use the f

Starting to Program in PHP
As defined in the posting “Introduction to programming”, is the art of giving step-by-step instructions to a computer telling it to do whatever you want. There are many programming languages ranging from what is termed first generation languages which are represented in strings of binary digits (zer

Introduction to Accounting


Introduction to Operations Management
Operations management encompasses the process of how businesses produce goods and/or services. This involves responsibilities, activities and decisions of those tasked with managing production processes. Almost everything we use, eat or wear is made somewhere, possibly a manufacturing plant or simil

Introduction to HTML
HTML is a computer language used to create websites. The fact that you are looking at this page, means you are also looking at the outcome of html code. It is relatively easy to learn, with the majority of what you really need to know being readily available and for free on the internet.

Introduction to SQL
The term SQL stands for structure query language. It consists of a set of command that humans use to instruct a computer to store, modify and retrieve information. This posting and a few more to come will discuss the commands used to create/allocate storage space, how data is stored,

Introduction to Geometry
By definition geometry is considered to be the study of space, shapes and their configurations. Almost every one of us use geometry on a daily basis ranging from computer scientist, to engineers to less sophisticated and ordina

Introduction to Accounting
Accounting can be defined as "a means of communication among all segments of the business". It provides reliable or at least relevant financial information useful for making business decisions. Main users of accounting information are external users such as investors and owners, cre

Did not find it? Try udjuni.com search:







© 2009 UdjunI LLC. All rights reserved | Privacy policy | Tutorial Index | RSS Feed