Groovy Calamari – Issue 78 – 24th Apr 2017

Groovy

MirComp: computer music composition framework

Groovy shines to produce DSLs. This is a great example; an open source Computer Music Software for assisted and algorithmic music composition
.


github.io

Using the Inject Method

@mrhaki
explains:

Groovy has some features and methods we can categorize as functional programming. The inject() method is a so called higher-order function. Other languages call it a fold, reduce or accumulate. The inject() method processes a data structure with a closure and builds up a return value.


blogspot.com.es

Preview of Groovy 3

This blog post was originally posted in Chinesse
by @daniel_sun
.

Highlights:

  • Improves in the loop statement
  • Do-while statement example
  • Supports Lambda expressions
  • Support method reference (reference) and constructor reference (constructor reference)
  • Support for try-with-resources statements
  • Support for code blocks
  • Support Java-style array initialization
  • Support interface default method (default method)
  • New Operators. Consistency operato, Elvis assignment …
  • Support for secure retrieval
  • Supports runtime Groovydoc and saves Groovydoc as metadata in the AST node

sergiodelamo.es

Grails

Multitenancy, Grails and me

@lucastex
gives an introduction about Multitenancy
support in Grails across different versions.

Currently, GORM hibernate implementation offers a multitenancy solution out-of-the-box. He illustrates with an example a common use case for SaaS solutions:

one schema for all customers and using a column in each table to discriminate tenants

Repository with code example
.

medium.com

Using HAL with JSON Views

Last week Grails Guide
, shows JSON Views HAL
capabilities:

The purpose of HAL is make APIs “discoverable” – it defines a set of conventions that allow consumers of your API to follow links between resources, as well as providing pagination and other convenience features for “exploring” an API


grails.org

Grails + Javascript

Grails Angular Profiles

If you were using Grails Angular profiles, this blog post by @Schlogen
is a must read for.

Grails 3 Angular profiles have been renamed in order to be consistent with the Angular team’s guidelines on naming conventions.

The goal of this change was to make determining which profile/scaffolding plugin should be used less confusing in the future.

objectcomputing.com

Groovy Calamari稿源:Groovy Calamari (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Groovy Calamari – Issue 78 – 24th Apr 2017

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录