How do you create great APIs? One way is to create a DSL for your API that makes using it easy to learn and intuitive to use. In this course, Building DSLs in Kotlin, you’ll learn to improve the syntax of your code by learning how to create DSLs. You’ll learn how to apply kotlin language features in new ways to modify the syntax of your code. You will also learn some design patterns and language design principles that will help you design your new syntax. When you’re finished with this course, you’ll have the skills and knowledge of DSLs in Kotlin, needed to create pleasant code that allows users of your code to easily learn and use what you’ve built.
Overview
How do you create great APIs? One way is to create a DSL for your API that makes using it easy to learn and intuitive to use. In this course, Building DSLs in Kotlin, you’ll learn to improve the syntax of your code by learning how to create DSLs. You’ll learn how to apply kotlin language features in new ways to modify the syntax of your code. You will also learn some design patterns and language design principles that will help you design your new syntax. When you’re finished with this course, you’ll have the skills and knowledge of DSLs in Kotlin, needed to create pleasant code that allows users of your code to easily learn and use what you’ve built.
Syllabus
- Course Overview 1min
- Improving Code Syntax Using DSLs 5mins
- Designing a DSL Using Symbols and Function Chains 21mins
- Using State and Context to Enhance a DSL 16mins
- Using Lambdas to Create Structured Syntax 23mins
- Using Kotlin Language Features to Set Properties 8mins
- Using Infix Notation to Create Sentences 15mins
Taught by
Greg Milette