• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is Groovy taking us back ?

 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Venkat,

I found in one of the examples listed here in this thread that there was a line like "println it" etc., it sounds more of ALP (Assembly language programming) where we have commands like MOVE, STORE, LOAD etc.,

Is it taking the developers to the traditional style? Means, will it be leading us towards?

Thanks,
Raghavan alias Saravanan M.
 
Author
Posts: 135
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raghavan

Traditionally as Java programmers (or as programmers of 'C' like languages) we're used to using the () around method calls. It takes a bit of getting used to (and accepting) that that may not be needed at all times. Not having to use it leads us towards writing DSLs or Domain Specific Languages. DSLs have the characteristics of context and fluency. They also have reduced noise and clutter. So, it is fairly easy to write DSLs in Groovy as it gives you a flexible syntax.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Venkat,

Thanks for the *hot* reply

Originally posted by Venkat Subramaniam:
Traditionally as Java programmers (or as programmers of 'C' like languages) we're used to using the () around method calls. It takes a bit of getting
used to (and accepting) that that may not be needed at all times.



Yes , very true! But i think it may take definitely its own time to shift the people to go away with the traditional conventions. Is n't it?


Not having to use it leads us towards writing DSLs or Domain Specific Languages. DSLs have the characteristics of context and fluency. They also have reduced noise and clutter. So, it is fairly easy to write DSLs in Groovy as it gives you a flexible syntax.



Is the term DSL has some additional weightage here or its just mere translation of business requirements into a easy readable programming language construct?
 
Venkat Subramaniam
Author
Posts: 135
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DSL is not about mere easy readability. It is also about ability to express, where you can provide tools for your domain experts to interact with your application, however, you can take their interaction and process it (using internal DSL syntax) easily without having to write a compiler for your DSL, etc.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's great. Thank you Venkat! :cheers:
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd actually say that Java was a step back in syntax compared to Smalltalk. Of course the reason was to make the language more familiar to C/C++ programmers.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ilja. I have not seen/worked in Smalltalk. Just heard of it when studying C++
reply
    Bookmark Topic Watch Topic
  • New Topic