What Is Computer Programming Anyway

The Manufacturing Software Guide

Home | Article List | Submit An Article


What Is Computer Programming Anyway

Shamsul

Computer programming in plain language, is giving instructions to a computer to do something. Technically it is actually giving instructions to the microprocessor - the brain of a computer.

If the instructions are only for the microprocessor, why a computer is so complicated with numerous types of hardware accessories?

All the other hardware are to support the function of feeding the instructions to the microprocessor, and conveying the result from the microprocessor to its user - which can be a human or another computer or hardware.

Every time you want a computer to do something you have to give the instructions. Luckily people are smart enough to figure out that since we might want the computer to repeat the same process over and over again, we better store the instructions into a permanent storage - hard disk, CD, flash memory etc.

The stored instructions are called COMPUTER PROGRAM or computer software and the act of arranging the instructions is called COMPUTER PROGRAMMING and the person that is responsible to arrange the instructions is called .....COMPUTER PROGRAMMER ...do you see the pattern here?

On the lowest level, a microprocessor only understands a limited set of instructions. To a microprocessor the instruction sets and data are read in "binary” form.

Binary means 2 states – such as in on and off, high and low, left and right. To make it easier mathematically, binary normally is represented by 1 and 0. Electrically, 1 represents high voltage and 0 represents low voltage.

On the hard disk, program instructions look just like a stream of 1s and 0s. But a microprocessor reads in the stream one chunk at a time. Among normal chunk sizes are 8, 16, and 32. Chunk size is normally referred to as instruction size.

One binary data (that can be a 1 or a 0) is called a "bit”. For example a data "1001” is a 4 bit data. Where first bit is 1, second bit is 0, third bit is another 0 and the fourth bit is 1.

Bit is the computer terminology for "chunk”.

How instructions can be represented by bits?

One bit data can only represent 1 out of 2 possible states – either 1 or 0. Which in real world can be used to represent things such as on or off, high or low, black or white – any 2 states condition?

If we increase the instruction size to 2 bits, then we can represent 4 instructions – 00, or 01, or 10 or 11. If we increase the size to 3 bits then we can represent 8 possible instructions – 000, 001, 010, 011, 100, 101, 110 and 111

If you notice the trend from the above examples is that maximum possible number of instructions is the power of 2 of the bit size. That is 2 bits can represent maximum of 2^2 (which is 4) instructions, and 3 bits can represent maximum of 2^3 (which is 2x2x2 = 8) instructions.

So 8 bits data can represent maximum of 2^8 (2x2x2x2x2x2x2x2 = 256) instructions (or states) and 32 bits data can represent 2^32 (4,294,967,296) instructions.

You can actually read a program stream contents using certain editor – normally called HEX editor. Using these special text editors you can look at the instructions in binary, hexadecimal, octal, and decimal format.

I'll cover the details of what each of the above format (hex, oct and dec) means in other article.

Permission is granted for this article to forward, reprint or distribute, use for ezine, website, offer as free bonus or part of a product for sales as long as no changes are made and the byline, copyright and the resource box is included.

About the Author

Resource Box: Copyright © Shamsul Anuar of Bouncingcube.com newsletter. To learn more about computer programming and software development visit http://www.bouncingcube.com and subscribe to the free newsletter

 

Full List of Articles


Latest Manufacturing Software News:

Sony cut PS3 manufacturing costs by 35% (Geek.com)
According to market intelligence company iSuppli Sony are getting much closer to break even on the cost of manufacturing the PlayStation 3. On initial release the PS3 was thought to be costing Sony US$690.23 per console to manufacture. The latest figure shows a 35% reduction in cost to US$448.73 per machine, which means the Japanese [...]



ActiveStrategy Announces New Release of ActiveStrategy Enterprise v7.2 Balanced Scorecard Software (Centre Daily Times)
ActiveStrategy, Inc. ( www.activestrategy.com ) today announced the release of version 7.2 of its acclaimed and widely deployed ActiveStrategy Enterprise (ASE) software application. ActiveStrategy Enterprise is the leading Software-as-a-Service (SaaS) application suite for automating strategic performance management by leveraging a Balanced Scorecard or strategic Dashboard management ...



Microsoft applauds Chinese counterfeit software prison sentences (Computer Weekly)
Microsoft welcomes news that Shenzhen court has locked up ringleaders of the world's largest software counterfeiting syndicate.



Search Tool facilitates access to manufacturing information. (ThomasNet)
Accessed from user desktop shortcut or Smart Page application interface, Smart Search offers full-text, index-based searching that lets users access data within EnterpriseIQ system. Results are displayed, based on user-specified security rights, in search engine format and linked to corresponding record. Along with flexibility for fuzzy searching, software delivers functionality to scan results ...



ActiveStrategy Announces New Release of ActiveStrategy Enterprise v7.2 Balanced Scorecard Software (Business Wire via Yahoo! Finance)
EAST NORRITON, Pa.----ActiveStrategy, Inc. today announced the release of version 7.2 of its acclaimed and widely deployed ActiveStrategy Enterprise software application. ActiveStrategy Enterprise is the leading Software-as-a-Service application suite for automating strategic performance management by leveraging a Balanced Scorecard or strategic Dashboard management framework.



11 in China sentenced for software piracy (ARNnet)
Eleven members of a Chinese software piracy syndicate are sentenced to prison.



GKN to unveil plans for Airbus (BBC News)
Aeropsace company GKN is expected to reveal later its plans for the Airbus manufacturing site near Bristol.



Sony boss ready to combat old guard (Australian IT)
Sony is on the brink of a major upheaval that could include job cuts and sweeping changes to management and manufacturing processes.



Aplicor Presented Product of the Year Award by CIS Magazine (CRM Today)
Aplicor, Inc., a global software provider of on-demand CRM (Customer Relationship Management) and ERP (Enterprise Resource Planning) software as a service (SaaS) business solutions, was presented the Product of the Year Award from Technology Marketing Corporation's Customer Interaction Solutions magazine, the leading publication covering CRM since 1982.



Manufacturing Software

What Is Computer Programming Anyway