DSls in groovy
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

DSls in groovy

on

  • 713 views

 

Statistics

Views

Total Views
713
Views on SlideShare
665
Embed Views
48

Actions

Likes
0
Downloads
5
Comments
0

5 Embeds 48

http://lanyrd.com 29
http://coderwall.com 14
http://speakerrate.com 2
http://www.linkedin.com 2
https://coderwall.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • What is DSL? Used DSL Built DSL
  • Internal DSL Possibly one of the nicest examples of a fluent DSL with Static Typing
  • What is DSL? Used DSL Built DSL
  • Dynamic language, we don’t need types Getters/setters eliminated by autogenerated properties All those semi-colons…
  • Autogenerated default constructor
  • Main to script
  • Class has been reduced to it’s essentials On to list notation and list processing functions- blocks and closures
  • Chaining list processing GStrings
  • Dynamic language, we don’t need types Getters/setters eliminated by autogenerated properties All those semi-colons…

DSls in groovy Presentation Transcript

  • 1. DSLs with Groovy Saager Mhatre
  • 2.
    • github.com/dexterous
    • code.google.com/u/saager.mhatre
    • [email_address]
    • thinkaround.blogspot.com
    • @dexterous
  • 3.  
  • 4.
    • The basic idea of a domain specific language is…
  • 5.
    • … a computer language that's targeted to a particular kind of problem, rather than a general purpose language that's aimed at any kind of software problem.
    • Martin Fowler http://www.martinfowler.com/bliki/DomainSpecificLanguage.html
  • 6.
    • … a computer programming language of limited expressiveness focused on a particular domain.
    • Martin Fowler Domain Specific Languages
  • 7.
    • Chaar Banarasi Masala
    • Zardaa lagaa ke , Katri supaari
    • Tamaakhu jyaada , Gulkand kam
  • 8.  
  • 9.  
  • 10. http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#enhance
  • 11. Excerpted from org.hamcrest.examples.junit4.ExampleWithAssertThat.java Excerpted from http://code.google.com/p/logicalpractice-collections/wiki/GettingStarted
  • 12.
    • the popularity of DSLs is a result of…
  • 13.
    • improved developer productivity
  • 14.
    • better domain-expert interaction
  • 15.  
  • 16.  
  • 17.  
  • 18.  
  • 19.  
  • 20.  
  • 21.  
  • 22.  
  • 23.  
  • 24.  
  • 25.
    • If a tree falls in a forest and no one is around to hear it , does it make a sound ?
  • 26.
    • If a Groovy enthusiast talks DSL in a conference and no one is interested in it , does it help the software community ?
  • 27.  
  • 28.
    • If a Groovy enthusiast talks DSL in a conference and no one is interested in it , does it help the software community ?
  • 29.  
  • 30.  
  • 31.  
  • 32.  
  • 33.  
  • 34.  
  • 35.  
  • 36.  
  • 37.  
  • 38.  
  • 39.  
  • 40.  
  • 41.  
  • 42.  
  • 43.  
  • 44.  
  • 45.  
  • 46.  
  • 47.  
  • 48.  
  • 49.  
  • 50.  
  • 51.  
  • 52.  
  • 53.  
  • 54.  
  • 55.  
  • 56.  
  • 57.  
  • 58.
    • github.com/dexterous
    • code.google.com/u/saager.mhatre
    • [email_address]
    • thinkaround.blogspot.com
    • @dexterous