Here is an example of a DSL that uses context receivers to define lambda arguments.
github.com/gmilette/taskdsl/…
24
I published a new Pluralsight course: Building DSL in Kotlin!
Includes everything you need to know to make DSLs and even explores the new context receivers feature of Kotlin.
app.pluralsight.com/library/…
31
Installed developer.roblox.com/en-us/a…, launched a game. Total time: 19 minutes.
Love that Jetpack Navigation supports a DSL. I look forward to days with less xml and more dsl
developer.android.com/guide/…
New book!!! I show you Kotlin programming tricks while teaching you how to write great Kotlin DSLs in my book "Building Domain-Specific Languages in Kotlin" leanpub.com/kotlindsls/
#kotlin #kotlindslbook #dsl
Two quick Kotlin specific JUnit snippets:
assertThrows<ArithmeticException> {
calculator.divide(4.0, 0.0)
}
assertAll("",
{ assertEquals(2.0, calculator.divide(4.0, 2.0)) }
)
Works with the right imports!
I find this very satisfying to know. Desktop development is improved with Kotlin using tornadofx.io/ #kotlineverywhere
1
Greg Milette retweeted
A dozen techniques for everyday DSLs by @gregmilette #DroidconBos
Greg Milette retweeted
we're thrilled to welcome @gregmilette as a #DroidconBos speaker! Excited to see you all there!! #SpeakerSpotlight 🎉
#AndroidDev #AndroidGala #Boston
~~
📅 Agenda: buff.ly/2ug9ixe
🎟 Tickets: buff.ly/2S309Th
I'm speaking at @droidconbos
droidcon-boston.com/agenda/
My talk explores how Kotlin DSL techniques can be used in everyday code.
awesome sample Kotlin DSL code for my course now available on github:
github.com/gmilette/kotlin-c…
@pluralsight
2
My new course about implementing Domain Specific Language in Kotlin is now available on Pluralsight: pluralsight.com/courses/kotl…
I am enjoying this repo about DSL: github.com/zsmb13/VillageDSL. This sequence of infix functions is particularly cool "sword with strength value 24.2" Thank you @AutSoft
1
Nice example of using a Kotlin DSL to make code clean proandroiddev.com/oversimpli…
3
Basement installation of my new home git repo. Secure filesystem and securely hidden in a basement. Thanks @gitstorage and #DroidconBos
It might be time to revive my favorite library: everyone needs speech recognition! github.com/gast-lib/gast-lib
@droidconbos
1





