2. ME, MYSELF AND I
2
By day
• Consultant
By night
• Developer
• Blogger
• Book author
• Teacher/trainer
@nicolas_frankel #kotlin #dsl #kaadin
3. HYBRIS, AN SAP COMPANY
3
@nicolas_frankel #kotlin #dsl #kaadin
4. A DSL?
4
“A Domain-Specific Language is
a computer language specialized to a
particular application domain. This is in
contrast to a General-Purpose
Language, which is broadly applicable
across domains.”
-- Wikipedia
@nicolas_frankel #kotlin #dsl #kaadin
15. WHY NOT GROOVY?
email {
from 'dsl-guru@mycompany.com’
to 'john.doe@waitaminute.com’
subject 'The pope has resigned!’
body {
p 'Really, the pope has resigned!’
}
}
15
@nicolas_frankel #kotlin #dsl #kaadin
16. WHY NOT SCALA?
object SquareRoot extends Baysick {
def main(args:Array[String]) = {
10 PRINT "Enter a number"
20 INPUT 'n
30 PRINT "Square root of " % "'n is " % SQRT('n)
40 END RUN
}
}
16
@nicolas_frankel #kotlin #dsl #kaadin