|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/using-modern-javascript/
课程评论:没有评论
课程名称:今天使用现代JavaScript 概述:本课程旨在向任何平台上的JavaScript开发者介绍Node.js、任务自动化、包管理和模块加载的强大世界,基本上就是现代JavaScript。这是我希望在经历多年试错、源代码探寻和文档阅读之前就能学到的课程;希望通过这门课程,能够帮助大家避免这些麻烦,立即开始编写现代、可维护且有组织的JavaScript代码! Node.js?我以为你说的是任何平台!虽然本课程是一个很好的Node.js服务器端应用编写的入门,但我们大部分时间将Node.js作为开发工具使用。如果你在编写PHP、ASP.NET或其他语言的应用程序,也没问题!生产服务器上无需安装Node.js,它只是用于处理我们的资产,除非你的后端服务器也使用Node。 特别是针对ASP.NET开发者,微软已经将这些工具直接整合到Visual Studio和ASP.NET 5中!Node.js不仅限于Linux和服务器了!但这也意味着你需要对这些工具有很好的掌握,以在ASP.NET世界中保持竞争力——这正是我来这里的原因! 现代JavaScript:编写现代JavaScript需要三样东西:JavaScript转译器、模块加载器和模块打包器。转译器用于将现代JavaScript转换为可以在任何浏览器中运行的旧版JavaScript!如今使用转译器几乎是常态。没有理由因为一些客户使用老旧浏览器而被困在五年前的JavaScript中。我们将广泛使用Babel来实现这一点。 除了JavaScript的新特性之外,模块是编写高可维护性、模块化代码的重要组成部分,我将向大家展示一些工具,让编写合理组织的模块化代码变得如此简单,以至于即使是小项目也没有理由不使用它们! 还有什么内容会包括?由于很多任务需要一定的自动化,我们将介绍Gulp(4.0版)。Gulp是一个出色的任务运行器,让我们能够编写代码来执行自动化任务,比如转译或打包我们的JavaScript。注意:Gulp在Visual Studio 2015中得到了一流支持!它甚至被用于ASP.NET 5的项目模板中! 我们还将查看Bower,这是一个客户端包管理器,能够方便我们安装第三方依赖。 最后,我们将探讨LESS - 一种CSS预处理器。虽然这与JavaScript关系不大,但它将使我们有理由去自动化构建和打包我们的样式。而且,一旦你使用LESS,就再也不想回到原生CSS了!
This course's purpose is to introduce any JavaScript developer on any platform to the powerful world of Node.js, task automation, package management and module loading. Basically: Modern JavaScript.This is course that I wish I had before years of trial and error, source-code spelunking and documentation reading; so with it I hope to save you guys all the trouble and get going writing modern, maintainable, and organized JavaScript today!Node.js? I thought you said ANY platform!While this course is a great introduction to writing server-side applications in node (certainly not wasted time, even if you don't intend to use a node server), we spend most of our time using node as a development tool.If you're writing an application in PHP, ASP. NET, or anything else, no problem! Node won't need to be installed on the production server for it to do it's thing. We simply use it to process our assets; there's no need for it to be deployed into production unless your backend server also uses node.Especially if you're an ASP. NET developer, Microsoft is incorporating these tools right into Visual Studio and ASP. NET 5! Node.js isn't just for Linux and servers anymore! But on the other hand, that means you have to have a good grasp on these tools to stay ahead in the world of ASP. NET - and that's why I'm here!Modern JavaScriptTo write modern JavaScript, we need three things: a JavaScript transpiler, a module loader, and a module bundler.A transpiler is what takes modern JavaScript and turns it into legacy JavaScript that will run in any browser! Using a transpiler these days is practically the norm. There is no reason why we should be stuck writing 5 year old JavaScript because some of your customers are stuck with ancient browsers. We will be using Babel extensively for this purpose.In addition to the new features of JavaScript, modules are one of the most important aspects to writing highly maintainable, modular (see what I did there?) code for applications from the small to the enterprise. I'm going to show you guys some tools that makes writing properly organized modular code in JavaScript so simple that there's no reason not to use them, even for small projects!What else will be covered?Since a lot of these tasks are going to require a bit of automation, we're going to be introducing you to Gulp (version 4). Gulp is an awesome task runner that allows us to write code that can perform automated tasks, such as transpiling or bundling our JavaScript. Note: Gulp is supported as a first class citizen in Visual Studio 2015! It's even used in the project templates for ASP. NET 5!We're also going to take a look at Bower. Bower is a client-side package manager that makes it easy for us to install third party dependencies.Finally, we'll also take a look at LESS - the CSS preprocessor. I know that's not much to do with JavaScript, but it will give us a reason to look into automating the building and bundling process of our styles. Besides, once you use LESS, you'll never want to use vanilla CSS again!