HTML Blox

Providing the building blox of the web.

  • HTML Blox Home
  • Blog
    • Design
    • Flash
    • General
    • HTML
    • Javascript
    • PHP
    • Programming
    • Web Servers
  • Forums
  • Where to Start?
  • Lessons
    • CSS
    • Design
    • HTML
    • Javascript
    • Programming
  • References
    • HTML
  • Resources
  • About
  • Contact
  • Go Green!

Programming Lessons

  1. Lesson 1: The Basics
  2. Lesson 2: A Brief History of Computers
  3. Lesson 3: The Workings of Computers
  4. Lesson 4: A Brief History of Programming
  5. Lesson 5: High-Level vs. Low-Level
  6. Lesson 6: Compiled vs. Interpreted
  7. Lesson 7: Variables
  8. Lesson 8.1: Arithmetic and Operators - Decimal
  9. Lesson 8.2: Arithmetic and Operators - Integer and Boolean
  10. Lesson 9.1: Conditional Statements - The Basics
  11. Lesson 9.2: Conditional Statements - Branching Conditionals
  12. Lesson 10.1: Loops - The Basics
  13. Lesson 10.2: Types of Loop
  14. Lesson 11: Functions
  15. Lesson 12: Strings
  16. Lesson 13: Procedural vs. Object-Oriented

Programming Reference

  1. No reference yet.

Links

  • W3C HTML 4.01 Strict Compliant
  • W3C CSS 2.1 Compliant
  • Web Standards Group Member
  • Follow us on Twitter
  • Number Overflow - Free Advanced Scripts and Tutorials
  • Azure Ronin Web Design - Professional Web Design and Development
  • XML Sitemap
  • U Comment, I Follow

Feeds

  • RSS 2.0 Feed
  • RDF/RSS 1.0 Feed
  • RSS 0.9 Feed
  • Atom Feed

Lesson 1: The Basics

del.icio.us Digg Blinklist reddit

Programming, in the sense we’ll discuss, refers to the act of writing in a special language to instruct a computer in what operations to take.

The Basics of Programming

Programming at it’s lowest level is simple addition and subtraction. Quite appropriately, this type of programming called “low-level” programming. When you go up various levels you get more complex mathematical functions like multiplication and division (which is just repetitive addition or subtraction). After that you eventually reach the level where you can use the various characters that we use normally (like letters and symbols).

Programming languages that utilize all of these characters and symbols are known as “high-level” languages. PHP and Javascript are both high-level languages.

Programming languages are languages, just like English. They have their own grammar and spelling rules, as well as common phrases and methods of arranging these words and phrases. Just like English, we refer to this by syntax.

Objective of these Lessons

The programming lessons won’t specifically allow you to create programs, because they will be talking in generalities, common between nearly all programming languages, and theories. However, this information is very important. In fact, it could be argued that knowing this information is actually more important than knowing the syntax of any specific language.

You should probably read these lessons before, or in unison with, the Javascript or Programming languages. Reading them together you will be able to understand the deeper concepts of the lesson, and then learn the language-specific syntax for those concepts.

Pseudo-Code

A technique commonly used when talking about the concepts and theories of computer programming is called pseudo-code, or “fake code”. Basically, pseudo-code is written in a way that resembles code, but isn’t necessarily a real programming language.

Throughout the lessons in this section we will make use of pseudo-code. This means that examples in the “Code” boxes are pseudo-code that you can’t necessarily run in Javascript, PHP, or any other language. The pseudo-code we use will make use of more words and less symbols then a typical language will, in order to help explain it better. You will be able to read a block of pseudo-code similar to a paragraph, which will help you understand it better.

Here is an example block of pseudo-code which is meant to be an if…else conditional which we will learn about in a future lesson:

Pseudo-Code

If valueA equals valueB Then
    valueA equals valueB * 2
Else
    valueB equals valueB * 2
End If

This is pretty easy to read in English if you just say it out loud, with a few grammatical discrepancies. Just for the sake of comparison, here is that pseudo-code written in Javascript:

Javascript Code

if valueA == valueB {
    valueA = valueB*2
} else {
    valueB = valueB*2
}

As you can see, the two are fairly simple in structure, but make use of more symbols then words. This is the beauty of pseudo-code; you can take pseudo-code and convert it into the proper syntax for any given language, once you understand the concepts and syntax.


In this lesson we briefly went over some basics of programming and discussed pseudo-code. In our next lesson, we’ll take a quick look at the history of computers, and talk about some of the inner workings of computers which is essential knowledge for becoming an excellent programmer and understanding what is going on behind the scenes.

This entry was posted on Wednesday, November 12th, 2008 at 1:29 pm and is filed under Programming Lessons. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Please Login or Register or fill out the following to leave a reply:

If you haven't posted an approved comment before, your comment will not show up until approved.

  • HTML Blox Home
  • Blog
  • Design Blog
  • Flash Blog
  • General Blog
  • HTML Blog
  • Javascript Blog
  • PHP Blog
  • Programming Blog
  • Web Servers Blog
  • Forums
  • Where to Start?
  • Lessons
  • CSS Lessons
  • Design Lessons
  • HTML Lessons
  • Javascript Lessons
  • Programming Lessons
  • References
  • HTMLReferences
  • About
  • Resources
  • Contact
  • Go Green!
  • Sitemap

Copyright © 2008 HTML Blox

Unless otherwise noted, all images created and copyright HTML Blox.

Operated by Azure Ronin Web Design