Join Jess Chadwick for an in-depth discussion in this video Using the exercise files, part of TypeScript Essential Training.
- [Voiceover] Since this is a course about software development, I'm going to be writing a lot of code. While I expect you to follow along by running the same code that I write on your local machine, I don't necessarily expect you to have to type every character that I type. And I don't know about you, but whenever I'm having trouble running some sample code that I'm writing along with a training course, I always like to have a full working version of that code that I can refer to in order to help me figure out what I need to change in order to get my version of the code running.
So to make that possible, I've captured a snapshot of the code that I show you at the end of every video. And it is available to you in two ways. Your first option is to download the exercise file as one big archive file from the Lynda.com website. Simply click on the Download Exercise Files button in the page you're currently on. This archive will contain a whole bunch of folders, one for each video in the course. And each folder will contain the full source code as it is at the end of that video.
The top-level folders are named for the chapter using the convention Chp underscore chapter number. And inside of each of these chapter folders are folders for each of the videos following the convention of chapter number underscore video number. The second option to get access to the source code is through my GitHub repository for this course. You can find it at github.com/jchadwick /EssentialTypeScript Since it contains a few dozen copies of the full source code, the archive file I mentioned in option one tends to be rather big.
So if you're at all familiar with git and the GitHub site, or if you're just looking to see the contents of one file, this is the option for you. You can either browse the repository on the GitHub website or make a local clone of the repository and start looking through it. Note that this repository also contains snapshots at the end of each video. But rather than folders, I represent each one as a tag in the repository. That means, if you want to see the code for a specific video, you can switch to that tag in your local repository.
Or on the website, you can select that video from the dropdown. For instance, in order to see the source code for chapter three, video two, I can select the tag name Chp_0303_2. On the GitHub site, this will change the context of the whole source code tree, and you can then use the website to browse around through the code as it stands at the end of that video. Also note that you can download a zip archive of any tag as well by visiting the releases tab and clicking on the zip link for the tag that you'd like to download.
If you're familiar with the git source control system or you're just interested in quickly looking around at the contents of one or two files, I highly recommend the GitHub option, option number two. However, if you're unfamiliar with git or you prefer to have all the source code for all of the videos downloaded once and available immediately, then feel free to download the exercise files directly from the Lynda.com website. Either way, the full source code is there if you need it. I encourage you to refer to it as much and as often as you need to in order to get the most out of this course.
- What is TypeScript?
- Installing TypeScript
- Creating a TypeScript project
- Reviewing ES6 language features
- Defining custom and anonymous types
- Defining and implementing TypeScript classes
- Working with generics
- Organizing code with namespaces
- Switching modules
- Importing modules
- Debugging TypeScript
- Implementing decorators