MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

Sweet.js: Get Started

Course Summary

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,

  • +

    Course Syllabus

    ● Overview of Sweet.js
        ◦ Introduction
        ◦ What is Sweet.js?
        ◦ What Are Macros?
        ◦ How Can Macros Be Hygienic?
        ◦ Why Use Sweet.js?
        ◦ Macros vs. Functions
        ◦ Summary
    ● Writing Your First Macro
        ◦ Macro Syntax
        ◦ Demo: Writing a Simple Macro
        ◦ Demo: Consuming a Macro
        ◦ Demo: Understanding Macro Patterns
        ◦ Demo: Values and Macro Patterns
        ◦ Recapping Macro Workflows
        ◦ Macros With Multiple Rules
        ◦ Demo: Creating Macros With Multiple Rules
        ◦ Recursive Macros
        ◦ Avoiding Macro Recursion
        ◦ Demo: Avoiding Macro Recursion
        ◦ Case Macros
        ◦ Demo: Simple Case Macro
        ◦ Demo: Manipulating Syntax in Case Macros
        ◦ Summary
    ● Advanced Macros
        ◦ Classifying Macro Tokens
        ◦ Overview of Token Classes
        ◦ Token Class Syntax
        ◦ Custom Tokens Classes
        ◦ Demo: Adding Tokens Restrictions
        ◦ Demo: Different Templates With Macro Classes
        ◦ Demo: Custom Token Classes
        ◦ Demo: Custom Token Classes With Multiple Patterns
        ◦ Demo: Runtime Type-Checking
        ◦ Infix Macros
        ◦ Demo: Adding Infix to an id Macro
        ◦ Demo: Post-Expression Boolean Statements
        ◦ Demo: Null-Guard via Infix
        ◦ Conclusion
    ● Polyfilling ECMAScript6
        ◦ Polyfilling ECMAScript 6 Features
        ◦ Demo: Fat-Arrow Syntax
        ◦ Demo: Implementing Classes
        ◦ Demo: Creating a TicTacToe Game
        ◦ Demo: Extending Classes
        ◦ Conclusion
    ● Operators
        ◦ Operators Overview
        ◦ Operator Structure
        ◦ Demo: Overriding the Equality Operator
        ◦ Demo: Creating a Power-Of Operator
        ◦ Demo: Overriding the in Operator
        ◦ Demo: Promise Operator
        ◦ Conclusion
    ● Integrating Sweet.js
        ◦ External Macros
        ◦ Demo: Working With External Macros
        ◦ Demo: Using the Sweet.js Compiler via the CLI
        ◦ Demo: Node.js Macro Loader
        ◦ Why Node.js Build Systems?
        ◦ Grunt + Sweet.js
        ◦ Demo: Using Grunt Sweet.js Plugin
        ◦ Gulp + Sweet.js
        ◦ Demo: Using Gulp Sweet.js Plugin
        ◦ Conclusion


Course Fee:
USD 29

Course Type:


Course Status:



1 - 4 hours / week

This course is listed under Development & Implementations and Networks & IT Infrastructure Community

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top