Huw Collingbourne is the technology director at SapphireSteel Software, developers of the “Sapphire” Ruby IDE for Visual Studio and the “Amethyst” IDE for the Adobe Flash Platform. He is author of The Book Of Ruby from No Starch Press. He runs Bitwise Courses and teaches courses on a range of programming topics.
Huw has been a programmer for more than 30 years. He is a well-known technology writer in the UK. For over ten years he wrote the Delphi and Java programming column for PC Plus Magazine. He has also written numerous opinion and programming columns (including tutorials on C#, Smalltalk, ActionScript and Ruby) for a number of computer magazines, such as Computer Shopper, Flash & Flex Developer’s Magazine, PC Pro, and PC Plus. He is the author of the free ebook The Little Book of Ruby and is the editor of the online computing magazine Bitwise.
In the 1980s he was a pop music journalist and interviewed most of the New Romantic stars, such as Duran Duran, Spandau Ballet, Adam Ant, Boy George, and Depeche Mode. He is now writing a series of New Romantic murder mysteries.
At various times Huw has been a magazine publisher, editor, and TV broadcaster. He has an MA in English from the University of Cambridge and holds a 2nd dan black belt in aikido, a martial art which he teaches in North Devon, UK. The aikido comes in useful when trying (usually unsuccessfully) to keep his Pyrenean Mountain Dogs under some semblance of control.
Take your courses with you and learn anytime, anywhere.
Learn and practice real-world skills and achieve your goals.
Simply the fastest way to learn to program on a Mac or Windows – either with the industry-standard Delphi system or with the free Lazarus and Free Pascal you can learn cross-platform programming the easy way. Just drag-and-drop, click and code!
This course will teach you the Object Pascal language, which is used not only by Lazarus but also by the well-established Delphi programming system. The knowledge you gain will give to entry to the world of commercial application development using Lazarus or Delphi.
What you will learn:
Who should take the course
Using Lazarus, you can create a program, complete with its own user interface, in a matter of moments. Just follow along to write a ‘Hello world’ program.</p>
This video shows how to load one of the sample projects supplied with this course and run it inside the Lazarus IDE. It also highlights a few of the common code elements of Object Pascal programs.</p>
Here we learn how to save the values of data items by assigning them to named ‘variables’.</p>
Sometimes you may want to ensure that a value cannot be changed. That’s what ‘constants’ are for.
You can document your code by embedding comments. Here I show Pascal’s three alternatives comment types.</p>
Procedures and functions give you a way of dividing your code into named blocks for easy re-use. Here I explain the basics of procedures, functions and parameters.</p>
When you precede parameters with the var keyword in a procedure or function, the arguments are passed ‘by reference’; rather than ‘by value’. Here I explain what that means and why it is important.</p>
What is the difference between procedure myProcedure and procedure TForm1.myProcedure? Welcome to the world of object orientation. Here I take a first glance at ‘form methods’.</p>
This tutorial shows an example of how a single procedure can do calculations for three different types of bank account. This illustrates the advantage of using procedures and functions to avoid repetition and keep your programs simple.</p>
How to you subtract grapefruits from oranges or add 10 to a sonnet? These may sound like insoluble problems. But anything is possible if you make sure you are working with compatible data types.</p>
The compiler will check that the arguments you send to a procedure match the declared parameters in both number and type. This can save your program from encountering unexpected errors when it is run.</p>
When you do arithmetic you’ll need to use operators such as +, -, *, /, div and mod. You can find out more about these in The Little Book of Pascal (the eBook supplied with this course) and in the demo program shown in this video.</p>
What is the difference between local and global scope and why does it matter? And a question: what happens when you declare two or more variables with the same name? The answer: It all depends on their scope!</p>
Here we find out how to repeat operations in Pascal. We start out with a for loop which lets us create a table of characters from their ASCII codes. If you want to follow along, be sure to run the ascii and ifelse projects froom the code archive.</p>
If you find that numerous if..else tests are making your code hard to understand, consider simplifying it with a case statement. This tutorial explains how…</p>
for loops are fine when you know in advance how many times an operation needs to be repeated. Sometimes you may not know this, however, in which case the while and repeat loops can be used, as explained here.</p>
Here I explain how to create lists of items in the form of sequential arrays and how to iterate through the items in an array using a loop of find a single data item at a specific array index.</p>
We’ve used many standard types such as string and integer in our projects so far. You can also create your own types. This video explains how to do this and why it may be useful.</p>
You can create complex data-types which, just like commercial database applications, wrap up multiple bits of data as the fields of a record. Here I show how to create a CD record type with fields to store the name, artist, price and label of a CD.</p>
Using Free Pascal or Delphi IO procedures, you can read and write structured data to and from a file. Here I show how to save and load a file of CD records.</p>
It is fairly easy to save and load text files using Delphi or Lazarus. Here I explain how to read and write characters and strings from a text file and display them in a memo or process the text and write it out to a new file.</p>
Here we take a first look at the principles Object Orientated Programming (OOP). I’ll explain how objects are created from classes and how they may form ‘family trees’ of ancestors and descendants.</p>
Here I explain the difference between objects and records and show how to define a simple CD class, then create CD objects by calling the class’s ‘constructor’.</p>
There are several ways to save and load objects to disk but none of them is as simple as saving and loading records. Here I show a simple trick that lets you save data from objects to a file of records.</p>
Even the forms and controls, such as Buttons and Memos are objects based on Delphi or Lazarus classes, as this lesson explains.
When defining methods for Form classes or custom classes you need to enter both their definition and their implementation. Here I explain how a simple keystroke-combination can save you the trouble.</p>
I found this course very informative and Huw conveyed it in a very easy to understand way. I learned quite a bit from this course.
I have been a developer for years and like to review videos such as this to get a feel how others are teaching the language I love. This course is done fantastically by Huw Collingbourne with teaching the essentials and a great basic overview of designing OOP. The videos are professionally done along with one of the best methods of displaying the source code instead of keeping it blurry as I have seen others do. If you are looking for a basic understanding of the Pascal language as well as OOP this is worth the investment of money and your time!
I was very pleased with the way this course was delivered. Huw Collingbourne is very calm, and explains everything very well, at a good pace. If you are a beginner and really want to know in detail how Object Pascal (and Free Pascal) as an Object Oriented programming language works, this is the course for you. For me (has an intermediate programmer), this course helped me develop Delphi applications with a more "professional code" for my current job. Also you get a very interesting and structured e-book that you can take with you and read anywhere. Recommended!
Already knowing several other languages mostly procedural, this course gave me the tools and enough knowledge to get me started in programming Object Pascal using Lazarus.
Back in the 1980s I learned Pascal in an introductory course at University. Since then I had almost forgotten how beautiful and simple the syntax of the Pascal programming language is. Huw Collingbourne does a great job in presenting the basics of Pascal. I highly recommend this course to anyone who is interested in learning Pascal and the basics of object oriented programming.