Adit Lal
  • Home
  • About

Dsl

A collection of 5 posts

Kotlin DSL - let's express code in "mini-language" - Part 5 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 5 of 5

In this post, we take a look at building our test cases by using a simpler language-like DSL. I wanted a “simple” low overhead way of setting up, expressing and testing many combinations of inputs and outputs.The goal is simple , create DSL for expressing the tests clearly and to

  • Adit Lal
4 min read
Kotlin DSL - let's express code in "mini-language" - Part 4 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 4 of 5

In this post, we take a look at building a simpler API to work with Broadcast receiver, which will automatically unregister itself when the Activity pauses, and register again when it resumes. Broadcast Receiver To build this , we first create a class which observes  lifecycle events class Broadcas

  • Adit Lal
3 min read
Kotlin DSL - let's express code in "mini-language" - Part 3 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 3 of 5

In this post , we take a look at some of the use cases of DSLs in Android.

  • Adit Lal
4 min read
Kotlin DSL - let's express code in "mini-language" - Part 2 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 2 of 5

Part 2 of series on how to work with Kotlin DSLs

  • Adit Lal
6 min read
Kotlin DSL - let's express code in "mini-language"  - Part 1 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 1 of 5

In this series , we will take a look at what DSLs are and how to build our custom Kotlin DSLs and apply them to multiple use cases for Android. What is DSLThe concept of DSL or domain-specific language is pretty simple. A domain specific language is a construct that allows

  • Adit Lal
2 min read
Adit Lal © 2026
Latest Posts Facebook Twitter Ghost