Home      All Games      Math Games      Word Games      Daily      Reference      Strategy & More      Junior!      Problems



Beginner Programming Tips

Home Reference Programming Tips and Tricks

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   

AddThis Social Bookmark Button     Link To This Page

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   

AddThis Social Bookmark Button     Link To This Page
"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?

The Treasure Hunt

Pirate's Map

Easter Eggs



Site Features

Word Games

Word Games

Math Games

Math Games

Daily Puzzles

Daily Puzzles

Brainfood

Brainfood

Math Problems

Problems

Miscellaneous

Miscellaneous


 
Search For More Resources

Search For More Educational Resources

Find more educational, problem solving, and puzzle resources using the Google safe-search below.

Google

Member Features
Login
 

Hangman
Picture Word
Four-Scramble
Word Search
Blackberry Game
Telephone Game
Strange Hangman
Word Grid
Secret Word
Scrambled Word
One of These
 

Entrapment
Adders!
Zap!
Side By Side
One To Ten
Sub Triangles
Magical Squares
Math Scramble
Secret Number
Secret Number 2
Fractional Hi Lo
Concentration
Monty Hall Game
 

Trio Match
Treasure Hunt
Pirate's Map
Fizziks Tilt
Zero Gravity
Easter Egg Hunt
Quad Puzzle
Tic Tac Toe
Rotating Block
 

Codes
Slick Math!
The Golden Ratio
Programming
Search It Out!
 
Brainfood
Math HS
Maine Page
Calculus Page
 
Contact
About
Related Sites
Link to TPS
 

Bookmarking and Linking
Bookmark/Link


Home      All Games      Math Games      Word Games      Daily      Reference      Strategy & More      Junior!      Problems