This document discusses Groovy and its use in enterprises based on various case studies. It provides an overview of Groovy and Grails, common usage patterns including as a developer tool, for web application development, as an application extension point, and for domain-specific languages. It then describes several case studies where Groovy has been used successfully at companies like LinkedIn, BSkyB, Patterson Institute for Cancer Research, and for applications involving risk calculation, medical data, nuclear safety, and a human resources domain-specific language.
React mit TypeScript – eine glückliche Eheinovex GmbH
In seiner Brownbag sprach inovexler Johann über die Verwendung von TypeScript in einer React-Anwendung.
Als Java-Land Immigrant mit Typisierungshintergrund, fällt es einem in der neuen JavaScript-Welt erstmal schwer auf etablierte Refactoring-Traditionen und die gute, alte Code-Literatur zu verzichten. TypeScript bringt verloren geglaubte Möglichkeiten zurück und ist auch zu React eine willkommene Bereicherung.
In diesem Vortrag wird gezeigt, wie man möglichst einfach ein React-Projekt mit TypeScript aufsetzt, einfache Typisierungsregeln etabliert und bekannte Bibliotheken integriert.
Event: Brownbag bei inovex
Speaker: Johann Böhler, inovex
Datum: 25.06.2018
Weitere Tech-Vorträge: https://www.inovex.de/de/content-pool/vortraege/
Weitere Tech-Artikel: www.inovex.de/blog
Groovy & Grails: Scripting for Modern Web Applicationsrohitnayak
Dynamic scripting languages are a powerful addition to a software designer’s toolbox. Rails/Ruby and Python have not gained much acceptance in the enterprise. Grails and Groovy are an attempt to bridge the gap between the modern scripting world and the Enterprise Java world.
This talk is an introduction towards building web applications in Grails. First we will go about creating a REST based webservice. We will also show how to replace the default database backend of Grails with MySQL.
We will then build a web application that consumes this webservice. The emphasis will be on the design patterns and idioms in Grails that address the web application development lifecycle.
Grooscript is an open source project, a little framework that convert groovy code to javascript, more info in grooscript.org.
Javascript is cool now, a vibrant community with many new developments. Web development is moving to client size and you must be start to worry about javascript and all the new awesome tools for it. With grooscript, you can join this new wave with our lovely groovy. You can code all the logic of your application in groovy, test with spock, use gradle or any other java or groovy framework. Grooscript will convert your application code to javascript and then you can use it in the browser or Node.js.
In this talk I will introduce about grooscript, how started, how can be used, explore its limitations,… Also I will show grooscript grails plugin, and what do you can do with it. We will take a look at Node.js plugin and gradle plugin, and how to use this tools. I will show some demos of different ways to use grooscript.
Apache Groovy: the language and the ecosystemKostas Saidis
An overview of the Groovy language and its awesome ecosystem, advocating Groovy as the language of choice for (a) Java developers that want to dive into dynamic languages or (b) for Javascript, Ruby or Python developers that want to dive into the Java platform.
The presentation was given at the 9th FOSSCOMM (16-17 April 2016) organized by the Software Libre Sociecy of the University of Piraues.
React mit TypeScript – eine glückliche Eheinovex GmbH
In seiner Brownbag sprach inovexler Johann über die Verwendung von TypeScript in einer React-Anwendung.
Als Java-Land Immigrant mit Typisierungshintergrund, fällt es einem in der neuen JavaScript-Welt erstmal schwer auf etablierte Refactoring-Traditionen und die gute, alte Code-Literatur zu verzichten. TypeScript bringt verloren geglaubte Möglichkeiten zurück und ist auch zu React eine willkommene Bereicherung.
In diesem Vortrag wird gezeigt, wie man möglichst einfach ein React-Projekt mit TypeScript aufsetzt, einfache Typisierungsregeln etabliert und bekannte Bibliotheken integriert.
Event: Brownbag bei inovex
Speaker: Johann Böhler, inovex
Datum: 25.06.2018
Weitere Tech-Vorträge: https://www.inovex.de/de/content-pool/vortraege/
Weitere Tech-Artikel: www.inovex.de/blog
Groovy & Grails: Scripting for Modern Web Applicationsrohitnayak
Dynamic scripting languages are a powerful addition to a software designer’s toolbox. Rails/Ruby and Python have not gained much acceptance in the enterprise. Grails and Groovy are an attempt to bridge the gap between the modern scripting world and the Enterprise Java world.
This talk is an introduction towards building web applications in Grails. First we will go about creating a REST based webservice. We will also show how to replace the default database backend of Grails with MySQL.
We will then build a web application that consumes this webservice. The emphasis will be on the design patterns and idioms in Grails that address the web application development lifecycle.
Grooscript is an open source project, a little framework that convert groovy code to javascript, more info in grooscript.org.
Javascript is cool now, a vibrant community with many new developments. Web development is moving to client size and you must be start to worry about javascript and all the new awesome tools for it. With grooscript, you can join this new wave with our lovely groovy. You can code all the logic of your application in groovy, test with spock, use gradle or any other java or groovy framework. Grooscript will convert your application code to javascript and then you can use it in the browser or Node.js.
In this talk I will introduce about grooscript, how started, how can be used, explore its limitations,… Also I will show grooscript grails plugin, and what do you can do with it. We will take a look at Node.js plugin and gradle plugin, and how to use this tools. I will show some demos of different ways to use grooscript.
Apache Groovy: the language and the ecosystemKostas Saidis
An overview of the Groovy language and its awesome ecosystem, advocating Groovy as the language of choice for (a) Java developers that want to dive into dynamic languages or (b) for Javascript, Ruby or Python developers that want to dive into the Java platform.
The presentation was given at the 9th FOSSCOMM (16-17 April 2016) organized by the Software Libre Sociecy of the University of Piraues.
Spicy javascript: Create your first Chrome extension for web analytics QAAlban Gérôme
Adobe Launch has a monitoring hooks API that provides more details about the rules that passed or failed. That's a great excuse for writing a Chrome extension. This will benefit you even if you have no need or experience with Adobe Launch.
Go 1.10 Release Party, featuring what's new in Go 1.10 and a few deep dives into how Go works.
Presented at the PDX Go Meetup on April 24th, 2018.
https://www.meetup.com/PDX-Go/events/248938586/
Apache Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax. It integrates smoothly with any Java program, and immediately delivers to your application powerful features, including scripting capabilities, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.
In this presentation, we'll see how Groovy simplifies the life of Java Developers. Basically, this talk would be for beginners where I would introduce powerful Groovy concepts like - Groovy Collections, Closure, Traits etc.
Abstract: kaChing powers the largest social investment site on the web with nearly 500,000 registered users. Our mission is to make the investment world open by offering transparent investment vehicles that directly compete with mutual funds.
Over the past year and a half, we have built a large feature set and evolved our software continuously with very short iterations and (almost) no regression. In this talk, I will present our experience building a large test-driven code base from the ground up. Using concrete examples, we will have a look at component based APIs, declarative programming, minimizing the concepts of an API, specific cases of separation of concern and interactions with third-party software. We will look at multiple programming paradigms from languages such as Scala, shell script and Prolog and see how these ideas can be embedded as syntactic sugar in your Java.
Groovy DSLs - S2GForum London 2011 - Guillaume LaforgeGuillaume Laforge
Design Your Own Domain Specific Language
This talk examines how dynamic languages in general and Groovy in particular provide toos to help design programming languages that are closer of the natural language of the target subject matter expert. It offers many features that allow you to create embedded DSLs: Closures, compile-time and run-time metaprogramming, operator overloading, named arguments, a more concise and expressive syntax and more.
Spicy javascript: Create your first Chrome extension for web analytics QAAlban Gérôme
Adobe Launch has a monitoring hooks API that provides more details about the rules that passed or failed. That's a great excuse for writing a Chrome extension. This will benefit you even if you have no need or experience with Adobe Launch.
Go 1.10 Release Party, featuring what's new in Go 1.10 and a few deep dives into how Go works.
Presented at the PDX Go Meetup on April 24th, 2018.
https://www.meetup.com/PDX-Go/events/248938586/
Apache Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax. It integrates smoothly with any Java program, and immediately delivers to your application powerful features, including scripting capabilities, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.
In this presentation, we'll see how Groovy simplifies the life of Java Developers. Basically, this talk would be for beginners where I would introduce powerful Groovy concepts like - Groovy Collections, Closure, Traits etc.
Abstract: kaChing powers the largest social investment site on the web with nearly 500,000 registered users. Our mission is to make the investment world open by offering transparent investment vehicles that directly compete with mutual funds.
Over the past year and a half, we have built a large feature set and evolved our software continuously with very short iterations and (almost) no regression. In this talk, I will present our experience building a large test-driven code base from the ground up. Using concrete examples, we will have a look at component based APIs, declarative programming, minimizing the concepts of an API, specific cases of separation of concern and interactions with third-party software. We will look at multiple programming paradigms from languages such as Scala, shell script and Prolog and see how these ideas can be embedded as syntactic sugar in your Java.
Groovy DSLs - S2GForum London 2011 - Guillaume LaforgeGuillaume Laforge
Design Your Own Domain Specific Language
This talk examines how dynamic languages in general and Groovy in particular provide toos to help design programming languages that are closer of the natural language of the target subject matter expert. It offers many features that allow you to create embedded DSLs: Closures, compile-time and run-time metaprogramming, operator overloading, named arguments, a more concise and expressive syntax and more.
TypeScript - Silver Bullet for the Full-stack DevelopersRutenis Turcinas
TypeScript lets you write JavaScript the way you really want to Its a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open Source. Enjoy writing JavaScript.
안드로이드 앱의 빌드 툴인 Gradle은 빌드 스크립트로 Groovy DSL을 사용합니다. DSL은 큰 학습 없이 사용할 수 있다는 장점이 있지만, 각 구문의 역할이나 의미를 정확히 알기는 어렵습니다. 이에 대한 기본적인 이해가 생긴다면, 직접 코드를 추가하거나 기존 기능을 개선시키는 등 적극적으로 빌드 과정을 조절하는데 도움이 될 것입니다. 이 세션에서는 Groovy 문법을 간단하게 소개하고, Gradle 파일들을 구문별로 의미하는 바를 짚어보며 gradle 파일을 읽는 법을 알아봅니다. 그리고 원하는 기능을 찾기 위해서 어떤 레퍼런스를 찾아야 하는지에 대한 팁을 공유합니다.
Fort de ses 1.7 millions de téléchargements l'an passé, Groovy continue son bonhomme de chemin en tête parmi les langages de programmation alternatifs pour la JVM.
Groovy 2.0, sorti l'an passé, introduisait dans son offre de la modularité, le support de JDK 7 au niveau syntaxique avec "Project Coin" autant qu'au niveau JVM avec l'utilisation d'"invoke dynamic", et proposait des fonctionnalités de typage et de compilation statique.
Groovy 2.1, quant à lui, s'appuie sur ces bases pour compléter le support d'"invoke dynamic" pour plus de performances. Il propose des améliorations permettant de documenter, d'aider les IDEs, et de vérifier statiquement les Domain-Specific Languages construits avec Groovy. Vous pourrez créer des méta-annotations regroupant d'autres annotations, pour éviter l'annotation "hell". Et enfin, vous irez encore plus loin dans la customisation du compilateur !
Accrochez votre ceinture, paré au décollage !
"Groovy 2.0 and beyond" presentation given at the Groovy/Grails eXchange conference.
Video can be seen here:
http://skillsmatter.com/podcast/groovy-grails/keynote-speech
Groovy Domain Specific Languages - SpringOne2GX 2012Guillaume Laforge
Paul King, Andrew Eisenberg and Guillaume Laforge present about implementation of Domain-Specific Languages in Groovy, while at the SpringOne2GX 2012 conference in Washington DC.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Groovy in the Enterprise - Case Studies - TSSJS Prague 2008 - Guillaume Laforge
1. Groovy in the Enterprise:
Case Studies
Guillaume Laforge
VP Technology
G2One, Inc.
glaforge@g2one.com
2. Guillaume Laforge
Groovy Project Manager
• Spec Lead of JSR-241
Initiator of the Grails framework
Co-author of Groovy in Action
VP Technology at G2One
• The Groovy / Grails company
• Training, support, consulting
Evangelizing Groovy, Grails and DSLs
• JavaOne, JavaPolis, QCon, JAX, Sun TechDays...
3. Goal of this talk
Discover real-world Groovy
usage in the Enterprise
to better understand:
•How you can leverage Groovy
in your own environment
•How to integrate Groovy
in your applications
4. Agenda
About Groovy and Grails
Groovy usage patterns
Integrating Groovy in your applications
Case studies
5. About Groovy and Grails
Groovy, a dynamic language for the JVM
Grails, an agile web application framework
6. Groovy is...
The fastest dynamic language for the JVM
• that integrates seamlessly with Java
without any impedance mismatch
An Apache-licensed Open Source project
• successful project hosted at Codehaus
Aiming at simplifying the life of developers
• by bringing expressiveness and productivity boosts
• by borrowing good ideas from other languages
An innovative and creative project
7. Java-like on steroids
Syntax derived from the Java 5 grammar
• Flat learning curve for Java developers
• Supports both static and dynamic typing
Support Java 5 features
• Annotations, generics, static imports, enums...
• Sole dynamic language to support this!
GInterface
JInterface
Real full Java / Groovy interop <<implements>>
<<implements>>
JClass
GClass
• Joint compiler
• or can be evaluated on the fly JClass GClass
8. A Java program
import java.util.List;
import java.util.ArrayList;
class Erase {
private List filterLongerThan(List strings, int length) {
List result = new ArrayList();
for (int i = 0; i < strings.size(); i++) {
String s = (String) strings.get(i);
if (s.length() <= length) {
result.add(s);
}
}
return result;
}
public static void main(String[] args) {
List names = new ArrayList();
names.add(quot;Tedquot;);
names.add(quot;Fredquot;);
names.add(quot;Jedquot;);
names.add(quot;Nedquot;);
System.out.println(names);
Erase e = new Erase();
List shortNames= e.filterLongerThan(names, 3);
System.out.println(shortNames.size());
for (inti= 0; i< shortNames.size(); i++) {
String s = (String) shortNames.get(i);
System.out.println(s);
}
}
}
9. A Groovy program
import java.util.List;
import java.util.ArrayList;
class Erase {
private List filterLongerThan(List strings, int length) {
List result = new ArrayList();
for (int i = 0; i < strings.size(); i++) {
String s = (String) strings.get(i);
if (s.length() <= length) {
result.add(s);
}
}
return result;
}
public static void main(String[] args) {
List names = new ArrayList();
names.add(quot;Tedquot;);
names.add(quot;Fredquot;);
names.add(quot;Jedquot;);
names.add(quot;Nedquot;);
System.out.println(names);
Erase e = new Erase();
List shortNames= e.filterLongerThan(names, 3);
System.out.println(shortNames.size());
for (inti= 0; i< shortNames.size(); i++) {
String s = (String) shortNames.get(i);
System.out.println(s);
}
}
}
14. Groovy usage patterns
A tool in the developer toolbox
A full stack web application framework
An extension point in your application
Domain-Specific Languages
15. Pattern: Developer tool
Great support for unit
testing and mock objects
• Nice way to introduce Groovy in a project
Shell scripting reusing all your JARs
• Easy to control Ant task for custom builds
Template engine for code generation needs
Excellent XML parsing and creation support
Easy JDBC for import/export database scripts
16. Pattern: CoC web app development
Convention over Configuration
• Productive in minutes with scaffolding
• No useless configuration, focus on what matters
• Dir. layout, naming conventions, transparent wiring...
Grails = Groovy + Spring + Hibernate + ...
• Groovy is the glue to write
your views (Groovy Server Pages)
your controllers
your services
your domain classes
17. Pattern: Application extension point
Customize or extend your application at
extension points through Groovy scripting
Create plugins adding new functionality
Add / Update business rules at runtime
• See also Domain-Specific Languages
Personalize your reporting screens
• With Groovy templates
Remote introspection of your app
• Embed a remote Groovy shell
18. Pattern: Domain-Specific Language
Use a more expressive language
• than a general purpose language
Share a common metaphore between
developers and subject matter experts
Domain experts can help write the rules!
Avoid boilerplate technical code
Cleanly seperate business logic
from application plumbing code
19. Integrating Groovy
in your applications
JSR-223, one API to rule them all
Spring dynamic beans
Groovy’s own mechanisms
20. JSR-223: javax.script.*
One API to rule them all
Groovy engine JAR at scripting.dev.java.net
• drop it in your classpath
ScriptEngineManager mgr =
new ScriptEngineManager();
ScriptEngine eng =
mgr.getEngineByName(“Groovy”);
String result =
(String)eng.eval(“‘foo’*2”);
21. Spring 2 dynamic language beans
Spring 2 provides support for alternative
language bean definitions & implementations
• POGOs can be wired, proxied, injected in POJOs
Configuration with the <lang:*> namespace
• <lang:groovyid=’bean’
script-source=’classpath:com.foo.GBean’
customizer-ref=’specialMetaClass’/>
Groovy beans can be “refreshed”
22. Groovy’s own mechanisms
Several integration mechanisms
• Eval, GroovyShell, GroovyScriptEngine
• def binding = new Binding()
binding.mass = 22.3
binding.velocity = 10.6
def shell = new GroovyShell()
def expr = “mass * velocity ** 2 / 2”
assert shell.evalute(expr) == 1252.814
GroovyClassLoader for more advanced
integration scenario
25. LinkedIn
Main site
• Java / Tomcat / Spring / Hibernate / custom MVC
But their corporate solutions are in Grails
• Private portals for recruiters, for premium customers
with focused needs
Why Grails?
• Needed a more productive webapp framework with
rapid prototyping capabilities
• Needed deep integration with their Java backend
custom session, reuse business services, SSO
26. showbiz
Biggest UK satellite
broadcaster
• also known as BSkyB
• owned by News Corp.
Developed their showbiz website on Grails
• 186+ million page views per month
• “Grails just scales” ™
Currently rewriting their main portal in Grails
27. Groovy as a Developer Tool
Patterson Institute for Cancer Research
French Ministry of Justice
Canoo WebTest
28. Patterson Institute for Cancer Research
Manchester University / Cancer Research UK
Groovy in two projects
• X:Map: a Genome browser
using a 54GB tileset for Google Maps
• exonmap: microarrays analysis program
Groovy used to
• Fetch latest genome sequencing information (FTP)
• Homogenize data sources
• Scan databases, extrapolate and filter data
29. Code generation
Groovy was used as a developer tool
• but no line of Groovy in production code
Groovy XML
Parsers
XMI
UML
Groovy
Template
Engine
30. Canoo WebTest
Open Source tool for automating testing
of web applications
invoke “http://google.com”
verifyTitle “Google”
setInputField name: ‘q’,
value: ‘WebTest’
clickButton “I’m feeling lucky”
verifyTitle “Canoo WebTest”
31. Groovy as a Language for
Application Extension Points
CodeStreet Market Data Studio
Hyperic HQ
32. codestreet
Market Data Works simplifies
• capturing, auditing
• editing Reuters market data
Traders can use Groovy
• modify market data feeds
• record and replay feeds
• test evolutionary scenario
34. Hyperic HQ: open source web infrastructure
monitoring and management suite
• used in Spring Application Management Suite
Big Groovy-based plugin infrastructure
• script deployments, server reboots, threshold alerts,
resources monitoring, etc...
• agent side: custom handling of monitored resources
• also embeds a Groovy console for interactive work
• plugins updatable / reloadable at runtime
36. Mutual of Omaha
US Fortune 500 insurance company
Risk calculation engine in Groovy
part of a mission-critical application
50,000 lines of Groovy code
• half business rules, half test code
Module part of a large EJB-based application
Choice of Groovy
• Business rules readability, maintenance by IT and
Subject Matter experts, seamless Java integration
38. National Cancer Institute
Cancer registry management
• Organizes large amounts of medical records
• JBoss / Oracle / Hibernate / Struts application
Groovy used in several places
• As an architecture validation system — dev. tool
ensure proper layer seperation, if not, fail the build
• Param validation for customizing reporting screens
• Business rules to edit and validation medical records
validity of fields, of set of fields, of records
check / fix / improve the patient files
700k patient files * 1,300 edits
39. Nuclear safety organization
Scientific context, with intensive
and complex computation needs
Matlab/Mathematica-like DSL on top of super
efficient Java custom math library
• Thin Groovy DSL layer
• Enjoyed a math-like syntax for matrices, seamless
integration with Java
• Groovy’s operator overloading mechanism
• Friendlier to scientists and mathematicians
• Application targets 200-300 engineers & researchers
40. Human Resources DSL
Architecture / Agile consultancy
• Needed a way to track consultant skills & knowledge
pay raises, finding the right person for the gig, etc...
Developed a DSL to represent skills
• Textual DSL transformed into a treemap-like graphics
• Integrated in Confluence as a plugin
the plugin parses and generates an in-memory model
a servlet renders graphics to embed in the wiki pages
a Confluence macro renders everything on the wiki page
• Leverages Confluence’s search capabilities
41. Human Resources DSL
etre {
idees {
capture 1
formule 1
produit 1
}
organisation {
controle 1
abandonne 1
aligne 1
}
engagement {
euros 1
gens 1
idees 1
enseigner 1
}
}
faire {
...
}
43. Summary
Groovy is a successful, mature and
performant dynamic language for the JVM
Provides several interesting usage patterns
• Developer tool, CoC webapp development,
application extension mechanism,
DSLs & business rules externalization
Used in production for mission-critical
applications, and integrated in many
frameworks