Best Computer Advice header image
   
 

Introduction to Programming

Controlling Your Computer with a Programming Language

In a previous article, we introduced automating some tasks with MS-DOS batch files. In this article, we’re going to introduce programming and describe how it can be used to control the way your computer works. Normally, computer novices aren't interested in controlling the computer. New computer users are typically interested in learning more about how the thing works. However they may be surprised to learn that programming increases computer knowledge as a whole and it can help to diminish the fear associated with using a new computer.

 

Programming a computer is creating a sequence of instructions that enable the computer to do something.1 The people who program computers (called programmers) use a programming language to communicate with a computer. You might have heard of some of these languages in the past such as Visual Basic, C++, or Fortran. There are hundreds of other programming language and neither one is better than the other. Most of them are capable of performing the same tasks and achieving the same goals. A programmer chooses one language by a simple preference.

Each of these languages differ by the way they communicate with a computer however, and the commands that they follow are very specific. Not a single command of one language can be interchanged with the commands or language of another. But all of them can be used to control a computer.

Now it would be impossible to teach you how to program any language in a single article. But we can still introduce you to some of programming’s most basic concepts - starting with the commands we talked about earlier. Commands are the instructions that a computer follows to perform an action. 2 To make them work inside of a program, programmers assign commands to objects like buttons for example.

The commands in a program are pretty useless unless they have some data to act on so programmers either give the programs some data to work with (list of names or numbers for example) or they make the program generate it’s own data. Sometimes, the data comes from an outside source like the Internet or the computer that the program runs on. The data that a program receives is called input and data that the program generates is called output.

Other times, the data is unknown. If the program were working with a simple algebra equation like, "x + 5 = y," the variables "x" and "y" would be unknown pieces of data. Or if a program were to calculate a date "x" days from now, the variable "x" would be an unknown piece of data until we tell the program what "x" is. In programming, it’s sometimes required to work with unknown pieces of data.

That’s when conditions come in handy. Conditions allow a program to perform an action based on the outcome of a previous command.3 Using this type of instruction, we could instruct a program to do one thing if the "x" variable in our latter example turned out to be 7 days, and then do different thing if the variable turned out to be 3 days.

Commands, data, variables, and conditions help build the most simple programs and there are certainly many more components of any programming language. But when they’re typed into a programming language and compiled to create a an executable file (a file ending with the .exe extension), they turn into a software application.

As we mentioned earlier, you can use a programming language to control your computer. By using simple commands, you can program your computer to perform mathematical tasks, fill out web forms, compose an email message and send it off, or any number of other things. If you’re interested, you may find Visual Basic is one of the most easiest programming languages to learn. Visual Basic is an object-oriented programming language and it automatically codes much of a program the minute a programmer drags a button onto a screen.

PPPPP

Word count 664 1 Source: WordWeb Pro 4.51 2 Source: http://www.neobasic.biz/basics.htm 3 Source: http://www.neobasic.biz/basics.htm

Best Computer Advice Recommended Products
Best Computer Advice Videos

 

Click a thumbnail to watch a video
Loading...

ACLU files suit over laptop search policy - FierceCIO


New York Daily News

ACLU files suit over laptop search policy
FierceCIO
Since 2008, the US Customs and Border Patrol has been authorized to search travelers' laptops, smartphones and other electronic devices without any ...
Laptop searches at border crossings cross line, ACLU claimsNew York Daily News
ACLU Sues Over Laptop Border SearchesWired News
New lawsuit to challenge laptop searches at US borderWashington Post
Register -Montreal Gazette -ChannelWeb
all 76 news articles »

Read more...


Free Laptops - The Unbeatable offer with mobile phones - FPRD (press release) (blog)


OfficialWire (press release)

Free Laptops - The Unbeatable offer with mobile phones
FPRD (press release) (blog)
The best part of this deal is they offer you the free laptops with the mobile phones. This whole deal is known as Contract deal. This deal is very popular ...
Free Gifts With Mobile Phones - Increasing Temptations ManifoldsOfficialWire (press release)
Free Laptop With Mobile Phone Deals : Double Your JoysOfficialWire (press release)
Mobile Phone Deals- Better If Not The BestFPRD (press release) (blog)
FPRD (press release) (blog) -FPRD (press release) (blog)
all 299 news articles »

Read more...


Craigslist removes 'censored' bar from site - CNET (blog)


msnbc.com

Craigslist removes 'censored' bar from site
CNET (blog)
High performance business laptops, thin and light laptops with long battery life. by candy8112 September 8, 2010 11:35 PM PDT Why are they only blaming all ...
Is Craigslist bluffing over adult ads?CNET
Craigslist censored: Adult section removedCNET
Prostitution Ads Still a Problem on Craigslist Despite Recent CrackdownsNewsBusters (blog)

all 1,799 news articles »

Read more...


HTC desire HD deals- Get Free Laptops With Mobile Phones - FPRD (press release) (blog)


EuroDroid (blog)

HTC desire HD deals- Get Free Laptops With Mobile Phones
FPRD (press release) (blog)
HTC Desire HD is the latest discovery with the fascinating features. The phone is there with a AMOLED Capacitive touchscreen of 4.3 inches with the multi ...
HTC Desire are the most smart deals with O2, Vodafone And OrangeFPRD (press release) (blog)
HTC Desire Deals: Now Available On O2,Orange And Vodafone With Many Free OffersFPRD (press release) (blog)

all 29 news articles »

Read more...


MSI Announces New F-series Laptops in India - Techtree.com


Techtree.com

MSI Announces New F-series Laptops in India
Techtree.com
MSI has launched four new F-series laptops - FX400, FX600, FX700, and FR600, equipped with new Intel Core i5 microprocessors. These MSI F-series laptops are ...
MSI introduces F-Series laptops in IndiaIndian Express
MSI F-series laptops, what makes them special?PC World India
MSI introduces F-Series laptops in IndiaEconomic Times
Latest Gadgets (blog) -News Live -domain-B
all 40 news articles »

Read more...


Launch date announced for Sakshat, the $35 Indian tablet - Digitaltrends.com


UberGizmo (blog)

Launch date announced for Sakshat, the $35 Indian tablet
Digitaltrends.com
HCL is no stranger to low-cost laptops, having partnered with Microsoft to roll out the world's cheapest Windows laptop, the Classmate PC, back in 2008. ...
Sakshat, the $35 Indian tablet will launch by Jan 10, 2011 courtesy HCL Tech.IC Tech News

all 17 news articles »

Read more...


Toshiba Recall Signals Larger Trend for Hot Laptops - PC World


CBC.ca

Toshiba Recall Signals Larger Trend for Hot Laptops
PC World
Toshiba is the latest laptop vendor to fall victim to overheating technology. The recall of approximately 41000 laptops resulting ...
Toshiba recalls 41000 laptops for overheatingCNET
Toshiba Recalls 41000 LaptopsWall Street Journal
Toshiba warns of fiery laptopsRegister
Empowered News -Tom's Hardware Guide -ComputerworldUK
all 265 news articles »

Read more...


 
 
 
bottom bar