|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/complete-typescript-2-course/
课程评论:没有评论
**TypeScript 训练营:从入门到精通 (2024 版)** 本课程深入探讨 TypeScript 语言,包含多个实战项目,并提供 GitHub 仓库支持。 **课程概览:** *}* TypeScript 已成为前端开发领域的通用语言,其巨大优势和极少缺点使其成为新项目的首选。 *}* TypeScript 是 JavaScript 的超集,是一个强类型语言,提供类型安全、准确的代码补全和重构等优势。 *}* TypeScript 的强大类型推断功能允许开发者以极少的类型注解编写如 JavaScript 般灵活的代码,享受静态类型的好处。 **课程结构:** *}* **语言特性:** 从基础到高级,全面覆盖 TypeScript 的所有语言特性,并区分常用和不常用特性。 *}* **编译器配置:** 深入讲解 TypeScript 编译器的各项配置选项,并区分常用和不常用选项。 *}* **面向对象编程:** 详细介绍 TypeScript 中的面向对象编程概念。 *}* **泛型与装饰器:** 分别讲解 TypeScript 的泛型和装饰器,这部分内容相对独立。 *}* **实战项目:** *}* **Node.js REST API:** 使用 TypeORM 构建一个安全的、支持 JWT 认证和多级访问权限的 Node.js REST API。 *}* **前端项目:** 分别使用 Angular 和其他一种前端框架构建 TypeScript 前端应用。 **学习目标:** *}* 掌握 TypeScript 的所有语言特性,并了解其区分常用与不常用特性的用法。 *}* 深入理解 TypeScript 编译器的各项配置功能。 *}* 能够使用 TypeScript 构建完整的后端(Node.js REST API)和前端(Angular 等)应用。 *}* 学习如何在实际项目中应用 TypeScript 的高级概念,如泛型和装饰器。
This course covers in-depth the Typescript language and includes several practical projects. It comes with a running Github repo.This Course in a NutshellOne of the biggest novelties in the Javascript frontend development space in the last few years is that the use of Typescript has become almost universal.To the point that it almost does not make sense anymore to start a new project and not use Typescript, given its huge advantages, and almost no downsides.And this includes projects not only in Node, but also in React, Angular, and any other Javascript-based frontend framework.Typescript is a strongly typed language that is a superset of Javascript, meaning that Javascript programs are valid Typescript programs (depending on the settings we use for the compiler), but not the other way around.So in a nutshell, this means that you can see Typescript as a better and improved version of Javascript.But even though superficially similar, Typescript due to its powerful type system is actually a completely different language than Javascript.The static type system of Typescript provides many advantages as it allows us to catch many program errors at development instead of at runtime, and it enables powerful development tooling such as precise auto-completion and different types of refactoring.But to benefit from the power of the type system, we actually don't have to add type annotations everywhere and end up with code that looks like Java or C#, and sacrifice flexibility, development speed and readability.The type system can automatically infer the types of most variables automatically, without us having to declare them explicitly, meaning that we can essentially write type-safe Javascript-like code with minimal type annotations.This powerful type inference is really the killer language feature that makes Typescript the preferred way of starting both a frontend and a backend project today: we get all the benefits of a static type system essentially for free, with no downsides.Course OverviewThis course is divided into multiple sections, that you can take directly depending on your previous level of familiarity with the language. So there are multiple learning paths available for you, depending on your previous experience.The course will start with a deep dive into all the language features starting with the most basic ones but covering also in detail the most advanced features.So if you are already familiar with some of the features you can skip ahead, and focus only on the features that you aren't aware of yet.We will present the language features from the most elementary ones to the most advanced, and we will cover first the features that are most commonly used.For completeness, we will also cover a lot of features that are rarely used, but we will point that out explicitly, especially if it's a feature that you are very unlikely to ever use while coding at the application level.Besides the language features, we are going to dedicate a full section to the configuration of the Typescript compiler, and go over every option you have available.We will make it clear when a compiler feature is rarely needed when compared with features that you will be using all the time.We will still cover everything for completeness, but we want to give you the option to focus only on the most commonly used compiler options if that is what you prefer.After this initial section covering all language features, we are going to cover also in detail Object-oriented programming, Generics and Decorators, each in their own section.These 3 sections are mostly independent of the rest of the course and can be taken separately.After the language sections, we enter the part of the course that covers practical projects.These practical projects are as close to what you would develop in the real world as possible. This means that these are still small projects that you can comfortably build without spending too much time, but they contain all the building blocks and illustrate all the same design elements that you would have to put in place in a real application.For example, we are going to build a complete example of a REST API in Node using Typescript and TypeORM, a Typescript-friendly ORM for Node. The server will be designed will all the typical elements of a production system in mind.For example, the API will be fully secure, and it will require the user to be properly authenticated with a JWT. The API will support multiple levels of access, from a read-only user to an admin user that can edit the data.Next, once the backend is completed, we are going to build also a couple of frontends with Typescript, namely an Angular frontend, each one in its own separate project.This way, you will have built your complete system (both frontend and backend) using only one single common language: Typescript.Table of ContentsThis course will go over the following topics:Introduction to TypescriptThe Typescript Type SystemThe most powerful feature of Typescript: type inferenceIn-depth coverage of all the Typescript language features, from the most simple to the most advancedIn-depth coverage of all the features available in the Typescript compilerObject-oriented programmingTypescript Generics in depthTypescript Decorators in depthPractical Typescript Project - Secure Node REST API with TypeORMWhat Will You Learn In this Course?In this course, you will learn everything that you need to know to build both the backend and the frontend of your application using the same language: Typescript.You will know all the features of the language in-depth, and you will be aware of the distinction between the features that you will be using almost every day, from the features that you will only sparingly use.You will also know in detail the multiple features that you have available in the Typescript compiler.You will know how to build real-world projects with Typescript, including how to develop your backend with Node and Typescript, and also how to build your frontend in Typescript using modern frameworks.Have a look at the course free lessons below, and please enjoy the course!