Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

PDF:

Beginners Column

Welcome to the REALbasic Developer Magazine Beginner's Corner!

Issue: 1.2 (October/November 2002)
Author: Thomas J. Cunningham
Article Description: No description available.
Article Length (in bytes): 8,596
Starting Page Number: 28
RBD Number: 1113
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

This month's column will focus on some of the beginning computer science issues that need to be understood by all programmers. This knowledge will help you to learn not only the RB language better, but allow you to code with more confidence. Let's start with the concepts of variables and data types.

Variables and Data Types

Computers "think" differently than humans. Of course, they really do not think at all, but manipulate memory. If I ask you to tell me what two times four equals, and you were awake in the second grade, you would say eight. Now if you get right down to the nitty gritty here, one may ask, "What is two? What is four? What is times?" These would be fair and honest questions at their most fundamental and abstract levels.

This kind of talk may seem silly to you (or perhaps profound!), but these are the type of issues we have to deal with when we program a machine. Our Mac knows what a two is and what times "means," but we have to tell it, explicitly, what we are trying to accomplish. This explicitness comes from declaring variables, by assigning names to them, and by declaring a data type. This is the way we tell our computer how to allocate so much of its memory to perform the task at hand.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com