| Introduction to Programming |
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.
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
|
Accessorizing Computers What Comes Out of the Box is a Really Just a Starter Kit Yesterday, we spent about three ... read more
Automating Things with Batch Files They Work on Today's Computers Too! If you're familiar with MS-DOS at all, you'll recall ... read more
Basic GUI Terminology Knowing What You're Working With Helps Technicians Getting help with your computer software can be easier when ... read more
Buying a Computer What To Do And Why It isn't fair, but buying a computer is just plain easier for ... read more
Cheap and Fast Software An Introduction to Shareware Visit any computer store today and you'll find what seems like miles ... read more
A Few Common Computer Errors (And What They Mean) Computer errors can pop up when least expected, they can cause ... read more
Computer Help Where and How to Get It Well there's no denying it - No matter how new or how ... read more
Computer Security In Today's Society, Protecting Your Computer Is A Requirement Advances in computer technology is a double-edged sword. On ... read more
Customizing Your Computer with Preferences Making Your Computer Work with You - Not Against You Although you did not design ... read more
Dust Kills Cleaning the Unit Fan is Essential Computer Care Between taking care of the household, the kids, the pets, ... read more
Programs Included With a New Computer Are they good enough to stand on their own? The Windows operating systems already ... read more
Introduction to Programming Controlling Your Computer with a Programming Language In a previous article, we introduced automating some tasks with ... read more
Networking Home Computers Increasing Productivity With the Whole Family Have you ever thought about networking your computers at home? If ... read more
Open Source Software If you've spent any lengthy amount of time on the Internet, you've probably heard of open source ... read more
Protecting Children Online Steps Toward Making Your Computer "Weirdo-Proof" It's an unfortunate fact of reality, but children are the most ... read more
Selling Your Computer Looking At Alternatives At some point, your needs are going to outgrow the capabilities of your computer. ... read more
Smartphones What's the craze all about? If you haven't heard of smartphones, we'd like to learn where you've been hiding ... read more
Software Piracy It's Best To Avoid It At All Costs Like electronic identity theft, computer viruses, and the spread of ... read more
Understanding Compression What It Is and What's Involved Downloading files from the Internet has always been one of the most ... read more
Understanding Operating Systems Every new computer that's brought home from the store has an operating system installed onto it. But ... read more
Using Computers It's Not Rocket Science These days it's strange to hear people say, "I'm just not computer literate," as ... read more
Viruses What They Are And One Reason Why People Make Them Over recent years, computers have become synonymous with viruses ... read more
What's That File? An Introduction to File Extensions In an effort to be "user-friendly," Windows (and perhaps some other operating ... read more
When Less Is More Clean Your Disk Drive of Unnecessary Files and Your Computer's Performance Will Improve When it comes ... read more
Working With Computers In Today's Society, There's No Escape Well, we've been warned that this time would come - probably ... read more
|
|
|
Disclaimer:
The Publisher has strived to be as accurate and complete as possible in
the creation of this website, notwithstanding the fact that he does not
warrant or represent at any time that the contents within are accurate
due to the rapidly changing nature of the Internet.
This site
is a common sense guide to Introduction to Programming. In practical advice websites,
like anything else in life, there are no guarantees of income made.
Readers are cautioned to reply on their own judgment about their
individual circumstances to act accordingly.
This site
is not intended for use as a source of legal, business, accounting or
financial advice. All readers are advised to seek services of competent
professionals in legal, business, accounting, and finance field.
Any
perceived slights of specific people or organizations are unintentional.
|