Vital Few

Construct (verb) – to build or form by putting together simpler elements.
Construct (noun) – an object, especially a complex one formed from a number of simpler elements.

Before we talk about programming constructs, we need to discuss a few items that are related to many programming languages:

A. Commenting / Uncommenting Code click to expand contents
B. Data Types / Data Casting click to expand contents
C. Objects / Containers click to expand contents

Like real world objects, most complex programming objects are composed of simpler objects. You need to know these simpler objects before you can become proficient at creating more complex objects. In this app, you will learn the ABCs of programming constructs from the stand point of constructing (a verb) objects and building object constructs (a noun).

Many beginner developers that are just starting out programming usually will  try "a little bit of everything" to get their code to work. This can be very time consuming and frustrating and can discourage a young developer from advancing further.  However, if he or she would learn some basic programming constructs, programming can be less daunting (intimidating, overcome with fear) and in some cases it can even be fun.

Although a comprehensive understanding of programming constructs is not needed to develop many applications, having a working knowledge is definitely important to save you time and avoid being frustrated. Knowing basic programming constructs will help you program effectively and will help you learn or program in any other language as well since the only different between many programming languages are not the constructs (how the objects are created) but the syntax (how the code is written to create objects).

An experienced developer can tell how well you program by the way you program. For example, a beginner programmer has the tendency to use a lot of code starting off because he or she may to be using arrays, functions, objects, and other constructs to make the code more efficient. However, an experienced developer may use a fraction of the number of lines of code than a beginner developer. Even though the output of the program may display the same, the underlying code and speed of the program will be different. This is why is is so important to learn basic programming construct upfront when starting to learn how to program.

As a beginner developer, you don’t start off programming a lot of code. You typically GROW in your programming skills something like this:

  1. You will learn basic programming constructs
  2. You will then use other people code (OPC) because you are not comfortable writing your own
  3. You will also use pre-built code (class libraries) for common programming tasks (i.e., interaction, special effects (f/x), animation, 3D, etc.).
  4. You may also use code generators or templates so that you don’t have to write code yourself
  5. You will become proficient in a given language (e.g., JavaScript)
  6. You may learn how to program using Object Oriented Programming (OOP) which makes it easier to program
  7. You will then want to (or have to because of your job) learn a new language (e.g., PHP)

NOTE: While class libraries, templates, and code generators are good, there is no substitute from learning how to program your own code.

Emphasis in this app is placed on learning programming constructs without cluttering the code with a lot of statements. As a result, the alert() method is used to "trace" the result of these programming constructs. You are free to replace the simple alert statements with your own code based on your programming experience. Also, JavaScript is used as the base programming language; however, most of the constructs (maybe with syntax differences) can be transferred to other programming languages.