dsls in groovy

58
1 DSLs with Groovy Saager Mhatre

Upload: saager-mhatre

Post on 02-Jul-2015

599 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: DSls in groovy

1

DSLs with Groovy Saager Mhatre

Page 2: DSls in groovy

2

github.com/dexterous

code.google.com/u/saager.mhatre

[email protected]

thinkaround.blogspot.com

@dexterous

Page 3: DSls in groovy

3

Page 4: DSls in groovy

4

The basic idea of a

domain specific languageis…

Page 5: DSls in groovy

5

…a computer languagethat's targeted to a particular kind of problem,

rather than a general purpose languagethat's aimed at any kind of software problem.

Martin Fowlerhttp://www.martinfowler.com/bliki/DomainSpecificLanguage.html

Page 6: DSls in groovy

6

… a computer programming languageof limited expressiveness

focused on a particular domain.Martin Fowler

Domain Specific Languages

Page 7: DSls in groovy

7

Chaar Banarasi Masala

Zardaa lagaa ke, Katri supaari

Tamaakhu jyaada, Gulkand kam

Page 8: DSls in groovy

8

Page 9: DSls in groovy

9

Page 10: DSls in groovy

10

http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#enhance

Page 11: DSls in groovy

11

Excerpted from org.hamcrest.examples.junit4.ExampleWithAssertThat.java

Excerpted from http://code.google.com/p/logicalpractice-collections/wiki/GettingStarted

Page 12: DSls in groovy

12

the

popularity of DSLsis a result of…

Page 13: DSls in groovy

13

improved

developerproductivity

Page 14: DSls in groovy

14

better

domain-expertinteraction

Page 15: DSls in groovy

15

Page 16: DSls in groovy

16

Page 17: DSls in groovy

17

Page 18: DSls in groovy

18

Page 19: DSls in groovy

19

Page 20: DSls in groovy

20

Page 21: DSls in groovy

21

Page 22: DSls in groovy

22

Page 23: DSls in groovy

23

Page 24: DSls in groovy

24

Page 25: DSls in groovy

25

If a tree falls in a forest and no one is around to hear it, does it make a sound?

Page 26: DSls in groovy

26

If a Groovy enthusiast talks DSL in a conference and no one is interested in it,

does it help the software community?

Page 27: DSls in groovy

27

Page 28: DSls in groovy

28

If a Groovy enthusiast talks DSL in a conference and no one is interested in it,

does it help the software community?

Page 29: DSls in groovy

29

Page 30: DSls in groovy

30

Page 31: DSls in groovy

31

Page 32: DSls in groovy

32

Page 33: DSls in groovy

33

Page 34: DSls in groovy

34

Page 35: DSls in groovy

35

Page 36: DSls in groovy

36

Page 37: DSls in groovy

37

Page 38: DSls in groovy

38

Page 39: DSls in groovy

39

Page 40: DSls in groovy

40

Page 41: DSls in groovy

41

Page 42: DSls in groovy

42

Page 43: DSls in groovy

43

Page 44: DSls in groovy

44

Page 45: DSls in groovy

45

Page 46: DSls in groovy

46

Page 47: DSls in groovy

47

Page 48: DSls in groovy

48

Page 49: DSls in groovy

49

Page 50: DSls in groovy

50

Page 51: DSls in groovy

51

Page 52: DSls in groovy

52

Page 53: DSls in groovy

53

Page 54: DSls in groovy

54

Page 55: DSls in groovy

55

Page 56: DSls in groovy

56

Page 57: DSls in groovy

57

Page 58: DSls in groovy

58

github.com/dexterous

code.google.com/u/saager.mhatre

[email protected]

thinkaround.blogspot.com

@dexterous