# Kotlin DSL design with VillageDSL

DevFeed: [Kotlin DSL design with VillageDSL](<https://devfeed.tech/articles/kotlin-dsl-design-with-villagedsl-27066.md>)

Original publisher: [Read original article](<https://zsmb.co/kotlin-dsl-design-with-village-dsl/>)

Author: Márton Braun

Published: 2017-09-20T18:00:00Z

Content type: tutorial

Language: en

Sources: [zsmb.co](<https://devfeed.tech/sources/zsmb-co.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>), [Java](<https://devfeed.tech/topics/java.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [article](<https://devfeed.tech/tags/article.md>), [code](<https://devfeed.tech/tags/code.md>), [dsl](<https://devfeed.tech/tags/dsl.md>), [examples](<https://devfeed.tech/tags/examples.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [github](<https://devfeed.tech/tags/github.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [marton-braun](<https://devfeed.tech/tags/marton-braun.md>), [zsmb](<https://devfeed.tech/tags/zsmb.md>), [zsmb-co](<https://devfeed.tech/tags/zsmb-co.md>), [zsmb13](<https://devfeed.tech/tags/zsmb13.md>), [zsmbco](<https://devfeed.tech/tags/zsmbco.md>)

## AI overview

This companion article explores Kotlin DSL design through simple and advanced fantasy-village models. It compares direct object construction, a limited formatting-based approach, and several DSL approaches for expressing model hierarchies.

## Source excerpt

A companion article for a talk I've given on Kotlin DSL design possibilities, with many code examples.