Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Building DSLs in Kotlin

via Pluralsight

Overview

One of the valuable features of Kotlin is its support for
Domain Specific Languages (DSLs). This course will teach you
how to apply kotlin language features, design patterns, &
DSL design principles to create DSLs and improve the syntax
of your code.

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

Reviews

Start your review of Building DSLs in Kotlin

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.