|
|
|
Each page contains a helpful programming tip and exercises which encourage
beginners to use what they've learned in a different situation.
|
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!
An efficient way to toggle a value between zero and one. Or between one and two, or other
pairs of numbers.
How to generate different ranges of random numbers, and a brief explanation of "Rnd" and "Int".
Treating equations as though they are values in assignment statements.
How to quickly determine how many equations in a list of equations are true.
You have several variables, and you want to find out if any of them equal zero.
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.
This code snippet reverses the process described in the previous tip. How to convert
a one dimensional array index to two dimensions.
A couple methods for removing an element from an array, depending on whether
array order matters.
Use Instr, Mid, and Right to search out and extract values from a comma separated value list.
Converting seconds to minutes and hours in a simple computer program using Mod operation and Format function.
A function to help you make words plural or singular as appropriate.
Every time you highlight a section of code and do a "copy and paste", there is a question you should be asking yourself.
How to take an array and scramble (randomize) the order of the elements in the array.
A follow-up to the previous article: how to create a scrambled version of an array, while still maintaining the original array order.
How to create a password consisting of random letters, random numbers, or combinations.
How to help website visitors guarantee that their email address was properly typed.
"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.
Want To Try Something Completely Different?
Site Features
| |
|
Search For More Educational Resources
Find more educational, problem solving, and puzzle resources using the Google safe-search below.
|
|
|