Search:
Home Math Games Word Games Strategy Reference Junior Games Daily Puzzles Printables Problems Members

Home Reference Programming Tips

Each page contains a helpful programming tip and exercises which encourage beginners to use what they've learned in a different situation.
Index Next    Teachers    About   

Beginner Programming Tips And Tricks Index

The following list shows all the programming tip pages on this site. Other pages may be added in the future. If you can think of a beginner programming tip you think should be on these pages, hit the contact link and send me a message!

Bit Toggle

An efficient way to toggle a value between zero and one. Or between one and two, or other pairs of numbers.

Random Number Generators

How to generate different ranges of random numbers, and a brief explanation of "Rnd" and "Int".

Treating Equations As Values

Treating equations as though they are values in assignment statements.

Counting Truth Values

How to quickly determine how many equations in a list of equations are true.

Testing For Zero Values

You have several variables, and you want to find out if any of them equal zero.

Two Dimensions, One dimension

From time to time you may find that you need to "walk through" a two dimensional array, converting the index into a one dimensional array. Here's how.

One Dimension, Two dimensions

This code snippet reverses the process described in the previous tip. How to convert a one dimensional array index to two dimensions.

Removing An Array Element

A couple methods for removing an element from an array, depending on whether array order matters.

Parsing a Comma Separated String

Use Instr, Mid, and Right to search out and extract values from a comma separated value list.

Seconds, Minutes, and Hours

Converting seconds to minutes and hours in a simple computer program using Mod operation and Format function.

Handling Plurals and Singulars

A function to help you make words plural or singular as appropriate.

Copy and Paste Rule of Thumb

Every time you highlight a section of code and do a "copy and paste", there is a question you should be asking yourself.

Randomizing An Array

How to take an array and scramble (randomize) the order of the elements in the array.

Randomizing An Array by Indices

A follow-up to the previous article: how to create a scrambled version of an array, while still maintaining the original array order.

Generating Random Passwords

How to create a password consisting of random letters, random numbers, or combinations.

Validating Email Address Format

How to help website visitors guarantee that their email address was properly typed.

Index Next    Teachers    About   

"Beginner Programming Tips and Tricks" is written by Douglas Twitchell, and hosted at The Problem Site.

Contents copyright 2005 by Douglas Twitchell. Contents of this page may not be reproduced without permission of the author. For information on using this site in a classroom situation, please visit the Teachers page.

More programming information and other tips can be found at Virtu Software's Ask Doug site.

 



 
Search For More Resources Search For More Educational Resources

 

Top Games On This Site

 
Adders!
Scramble
Entrapment
Secret Word
Trio Match
 

Just a few of the educational game resources available on The Problem Site!

 
 






Home       All Games       Problems       Contact       Site History       Privacy Policy       Member Page