The course instructor,Huw Collingbourne, is Director of Technology with SapphireSteel Software, a company that specialises in Visual Studio development tools for professional programmers. Founder of Bitwise Courses – producers of multimedia instruction courses – Huw is one of the top-selling programming instructors on Udemy,.
Download and unzip the source code archive.
Functions are named subroutines. In this lesson, I explain how to write functions that can call one another and which may, optionally, return values to the code that called them.
Values can be passed into functions by sending one or more arguments that match the parameters declared in the function header. This video explains this.
String objects come with lots of built-in methods that can do everything from changing the case of a string to replacing part of a string. Here I look at a few string methods and find out a simple way of hiding your email address from Spam-gathering programs.
You will often need to perform conditional tests in your programs and take different actions according to whether or not the tests evaluate to true. Here I explain how to do ‘if’ and ‘else’ tests and how to do multiple tests using ‘case’ statements.
Learn how to use the add, subtract, multiply, divide and modulus operators to perform calculations or even create an interactive calculator on a web page.
What is the result of this calculation?
10 * 5 - 2 / 3
Is it 16? 10? Or some complicated floating-point number? In this lesson I show how the ‘precedence’ of mathematical operators affect the result of calculations and I explain a way of simplifying this.
Let’s assume that you ask a user to enter a number and they enter the text “fifty”. That’s a string, not a number and you obviously can’t do a calculation with it! So how to you deal with this kind of problem? One way is to use something called NaN.
You want to write some code that executes only when both A and B are true or when either X or Y is true. You need to use the logical ‘and’ (&&) and ‘or’ (||) operators. This video explains how these work.
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.