Difference between revisions of "Guides"

From Progzoo
Jump to: navigation, search
(Basics)
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Guides to common programming tasks.
+
{{topTenTips}}{{String Functions}}{{Simple Tests}}{{Graphics}}
==Top Ten Tips==
+
{{Database}}
Hello World; Count 0 to 9;Read a Text File;Sum an Array;Convert a String to a Number;Use a Hash Table;Regular Expression;[[Read From a Database]];Read XML;Define a Class
+
[[Read XML]]; [[Define a Class]]
  
 
==Basics==
 
==Basics==
*[[Hello World]]: A complete program.
+
*[[Hello World]] [[Variables]] [[Methods]]
 
*[[Count Ones]]: Counting Ones in a string
 
*[[Count Ones]]: Counting Ones in a string
  
 
==Data Types==
 
==Data Types==
 
Creating variables of different types. Converting between variable types. Using 3rd party libraries. Creating your own data types. Arrays, hash tables and dates.
 
Creating variables of different types. Converting between variable types. Using 3rd party libraries. Creating your own data types. Arrays, hash tables and dates.
 +
*[[HashMap]] is a collection - you can reference a value using a key. The keys are often strings.
 +
*[[ArrayList]] is like a normal array but it can grow and shrink.
 +
 
==Control structures==
 
==Control structures==
 
while, for, foreach, if, return, break and other constructs
 
while, for, foreach, if, return, break and other constructs
==Tests==
+
 
different ways to test conditions
 
==In-built function==
 
functions provided by the core language. String and number functions primarily.
 
==Input and output==
 
options for reading and writing data to files and to databases network access.
 
==Graphics==
 
*[[Drawing Rectangles]]
 
*[[Drawing Lines]]:
 
*[[Drawing Text]]; [[Use Transport Font]]
 
*[[Smoothing]]:
 
*[[Polygons]]:
 
==Graphic User Interface==
 
Buttons, text boxes that users can see and control.
 
 
==Programming techniques==
 
==Programming techniques==
Accumulating variables, recursion, function composition.
+
[[Using an accumulator]], recursion, function composition.

Latest revision as of 22:21, 4 January 2010