Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
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,.
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: Step One|
Download and unzip the source code archive.
|Lecture 4||72 pages|
|Section 2: Step Two|
|Section 3: Step Three|
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.
|Section 4: Step Four|
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.
|Section 5: Step Five|
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.
|You can add or subtract 1 from a numeric variable such as x using the ++ and -- operators. But what is the difference between x++ and ++x? This lesson explains.|
|Using operators such as +=, -= and *= you can perform arithmetic and assign the results to a variable in a single step.|
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.
|Section 6: Step Six|
|You can hide sensitive data such as email links by processing strings using ‘for’ loops. Here I explain how to convert characters to numbers and back again using their numeric or ASCII codes.|
|Arrays allow you to store sequential collections of items. Here I explain how to iterate through an array using various looping constructs to insert and retrieve items at specific array indexes.|
|Here I put a for loop to good use in a program that changes the appearance of a web page by loading up alternative stylesheets. But I also have a problem – my code doesn’t work with all browsers. I explain how to diagnose and fix this sort of error.|
|Section 7: Step Seven|
|Section 8: Step Eight|
|Here I explain the essential features of making a request to a remote server and using the returned data to display text in a web page.|
|In this lesson I explain how to load data from an XML file similar to the files used to create RSS feeds. You could use this technique to display your own RSS feeds on a web page.|
|Here I take a look at how to create a list of nodes from XML data in which each node can provide access to its ‘child’ nodes.|
|Section 9: Step Nine|
|In this example I show how to create a simple animated text tickertape that repeatedly displays one or more messages on a web page.|
|It’s easy to animate images by changing their positions and sizes. Here are a few simple examples.|
|You can draw and animate lines and geometrical shapes using an HTML5 Canvas. This lesson explains how to get started.|
|Section 10: Step Ten|
|So now we’ve come to the end of this course. I really appreciate the time and effort that you have put into studying all ten steps. If you want to find out about all my latest courses and special offers, please visit the Bitwise Courses web site at http://www.bitwisecourses.com and follow us on Twitter: https://twitter.com/bitwisecourses|
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.