Entries Categorized as 'Groovy'

Acegi on Grails and plugin ponderance

Date November 14, 2008

There’s a few little pain points I just encountered setting up Acegi on Grails.  I appreciate the ‘grails generate-manager’ functionality, and the ‘grails generate-registration’ stuff as well, and the basic tutorial is a good start.  Unfortunately, they still left off the part about having to define a role (using the role controller, for example) before [...]

TIOBE and Groovy and Grails random thoughts

Date November 13, 2008

So having recently launched a magazine on the Groovy language, I decided to check out the TIOBE index and see where Groovy sits.  Not terribly high (#41) but not too bad for a relatively new language.  Certainly higher than many others with much longer pedigrees.  The TIOBE index also has a couple other interesting notes:

The [...]

SpringSource acquires G2One

Date November 11, 2008

I wrote up a small synopsis over at the GroovyMag blog about the acquisition, then just got pinged that my own quote about it made it in to PC World.  I’m famous.  ;)
My initial reaction was that this might hurt Groovy and Grails development, but I don’t think that’ll happen.  At least unless Spring ends up [...]

Regular expressions are like broccoli…

Date November 10, 2008

This was the analogy I came up with when teaching a PHP class recently.  I needed to review the topic of regular expressions, but it’s one that neither I nor the students seemed to have much interest in.  The examples that I had were adequate, but explaining the examples was still unnatural.  The students didn’t [...]

GroovyMag on sale for $3.49 – one day only

Date November 5, 2008

To celebrate our US elections, GroovyMag is on sale for $3.49 today only (November 5, 2008).  President-elect Obama won 349 electoral votes, and in an effort to ’spread the wealth’, GroovyMag has lowered the price to reflect the electoral vote count.  Visit http://www.groovymag.com/main.issues to purchase your copy today!

Groovy Magazine finally launched

Date November 3, 2008

Yeah, there was a small bit of hype about getting it out the door, but the magazine for Groovy and Grails developers is launched.  Work on issue #2 is underway.
Free sample file up at http://www.groovymag.com as well.
Vote this up on reddit and/or digg if you would, please  (thanks!)  :)

GroovyMag is coming soon…

Date October 29, 2008

I’m getting ready to launch GroovyMag – the magazine for Groovy and Grails developers – next week.  This will initially be a PDF-only product, tentatively priced at $4.99 – but we may move to print quickly if the demand is there.  The first issue is a bit over 30 pages (we’re playing with layout right [...]

Groovy Awards Nominees

Date October 1, 2008

I was more than blown away to learn that I was nominated (by 3 different people apparently) for an award in the Groovy community.  Honored beyond belief to have my name up there in lights with Graeme, Dave Klein, Andres Almiray and so many other luminaries.   Thank you all for the nominations, and thanks to [...]

Stupid Groovy Tricks

Date August 27, 2008

Someone recently asked how to get a random element from an array.  In PHP it’s pretty straightforward – array_rand($x) – but there’s not (AFAICT) a built-in way in Groovy to do this.  So I wrote a little something which should hopefully demonstrate the power of the metaClass stuff to boot.

ArrayList.metaClass.getRand = { number ->
if(number==0) [...]

Grails scaffolding improvement

Date August 27, 2008

I put together a small change to Grails’ scaffolding templates to help with one to many and many to many relationships.  Grails (well, GORM really) will manage these relationships under the hood, but you were always left to do the interface on your own.  This small set of file changes will give you better relationship [...]