Sweet.js: Get Started
Pluralsight
Course Summary
This course provides an introduction to Sweet.js, a macro engine on top of JavaScript which allows you to extend the language as you desire.
-
+
Course Description
Compile-to-JavaScript languages are popular, but sometimes these new languages are introducing features that you don't need, or don't address the problems which you want to solve. Sweet.js comes at it from another angle: rather than having a new language, it gives you the building blocks to make the extensions you need to solve your problems. Learn how to use macros to create specialized syntax and polyfill language-level features without an entirely new language.
-
+
Course Syllabus
Overview of Sweet.js- 17m 41s
—Introduction 1m 49s
—What is Sweet.js? 2m 35s
—What Are Macros? 2m 47s
—How Can Macros Be Hygienic? 3m 44s
—Why Use Sweet.js? 2m 29s
—Macros vs. Functions 3m 0s
—Summary 1m 15sWriting Your First Macro- 46m 9s
—Macro Syntax 2m 33s
—Demo: Writing a Simple Macro 2m 31s
—Demo: Consuming a Macro 1m 19s
—Demo: Understanding Macro Patterns 2m 55s
—Demo: Values and Macro Patterns 1m 29s
—Recapping Macro Workflows 3m 9s
—Macros With Multiple Rules 1m 40s
—Demo: Creating Macros With Multiple Rules 3m 3s
—Recursive Macros 5m 24s
—Avoiding Macro Recursion 4m 50s
—Demo: Avoiding Macro Recursion 1m 49s
—Case Macros 3m 17s
—Demo: Simple Case Macro 1m 55s
—Demo: Manipulating Syntax in Case Macros 6m 56s
—Summary 3m 13sAdvanced Macros- 40m 8sPolyfilling ECMAScript6- 34m 17sOperators- 23m 4sIntegrating Sweet.js- 41m 14s