Archive for the ‘Grails’ Category

Grails JUG Meeting Screencasts

I spoke at the Silicon Valley Web java User Group about Grails on Nov 18. The meeting took place at Google in Mountain View and the whole video is supposed to be on Google Video in a couple of days. Now while the content is still fresh, I will also be working on putting the exact same presentation into a three part screencast series about Grails.The idea is to have an even higher quality format where the watchers could both hear me talking the slides but also see the live demo of Grails.

Today I recorded the first part and I am currently uploading it to Google Video. Just look for Grails JUG and I am sure you will find it there.

It would be great to receive some feedback if that format (screencasting and recording both presentation and live demo) is enjoyable or if not, what could be done better (and how?). So let me know, I am all ears.

Prost Neujahr!

So one year has passed now since we entered the US. I have been home about one day for the quickest transatlantic visit ever since then, besides this we were all here, in Sunnyvale, CA. It was not always easy, especially the first few months but – in general – things have stabilized somewhat and we just extended our lease, too. So what is my summary for the first year?

It was a rush, really. Time has passed so quickly, we have done and had to do so many things that often there was not time to think much about it. We met our first US friends that by now already moved away back to Minnesota (hope to visit Jen & Kyle next year), I survived the first Yahoo Mobile Winter (winter is the toughest time because of trade shows in January to June…) and my wife eagerly studies English and is doing pretty well.

Visitor’s season is just over. Our parents have visited, many of our friends and a lot of people I knew in the (mobile) IT sector came by. It’s nice to be in the Bay Area,  the silicon valley is regularly visited by most of my business friends which makes it nicer for me personally because every week or so someone you know comes by.

The Grails Podcast has also evolved quite a bit. When we arrived in the US, I was able to quickly produce some more episodes before there was a really long break. Luckily, Glen Smith contacted me and we continued the podcast together. It turns out this was an awesome idea an I enjoyed podcasting since then even more. He is now on the show and the feedback and download figures are pretty positive.

Talking about the Grails Podcast, I am working on a new website as our current podcast hosting isn’t quite the sexiest one. It will be a mixture of functionality and also my own playground for whatever plugins I want to try out in a real life project.

So far I used the excellent Feeds Plugin and the Authentication Plugin from Marc Palmer and also the JCaptcha Plugin for listener comments from Octo in France (who exactly has written the plugin?). We will definitely talk more about what we have used in the SoapBoxes (our part of the grails podcast for in depth discussions) coming up.

So watch out the next few weeks and cu at our first live podcastint event in San Jose, CA, during 2GX in October!

What’s up!

So after a few weeks of silence, finally some post again. Glen just published the Grails Podcast Episode 61 (we switch the mixing job each episode, so each of us only has to do that job once per month…) and I am happy we got some much nice feedback. The outcome of the recent poll: discuss one topic in depth, so we will try from now on. You can twitter me your ideas to @hansamann.

One comment on my new test blog: I am probably too busy to work on it the next few weeks, but the integration with the Grails captcha plugin is done. Maybe I will talk about it a bit in one of the next podcasts. It is not a big thing but that’s great. The biggest issue for me was to copy the configuration example from the twiki and reformat it with Eclipse’s Groovy Plugin (no code formatting built in, so I had to use my own TAB power).

Workwise I am a bit back in the good old Java days right now. Doing a project with Spring, CXF and Hibernate, designing some SOAP API (yes, SOAP, I even believe it is the right choice for the type of app we design right now). CXF is the ‘next version of XFire’, it allows you to export an interface as e.g. SOAP API and cares about all the data binding for you. While the data binding, and interface creation was rather easy, I am still a bit worried about exception handling, or SOAP faults. CXF also converts exceptions automatically, but I believe I need some more specific exception-SOAP fault mapping here.

Besides this: we are now close to one year in the US. Interesting how time passes by really quickly (here?).

Grails Podcast Episode 57: Newscast for May 24th 2008

I am crossposting here for the sake of readability. WordPress just has a so much nicer formatting than on podhost.de. Be sure to head over to our podcast blog to take the Poll of the Week!

Dynamic Languages Panel

Dynamic Languages Panel

Dynamic Languages Panel,
originally uploaded by hansamann.

I was also at the Dynamic Languages Panel, I think it is press only which could potentially make it boring. Let the crowd in I would say but I am not Sun. I is hosted by Tim Bray of Sun.

Participants:
Charlie Nutter, JRuby
Guillaume Laforge, Groovy (not confirmed)
Frank Wierzbicki, Jython
Ted Leung, Python/Jython
Greg Murray, Ajax, jMaki
Tor Norbye, Tooling

It’s tough to live blog that, but I will try to outline the key questions asked.

The panel begins with an unpleasant question that is more targeted at Sun that at the panelists. Why is there a new scripting language for javaFX, why not use Groovy (or other languages that exist already, like javascript)?
Tim: javaFX is tightly coupled with Swing, easy to integrate authoring, media, etc. Groovy is more generic. Another Sun guy steps in, tries to explain why a new language was used. Bottom line: I guess groovy would have been a perfect choice, but Sun decided differently.

I think the discussion is going into a slightly unfavorable direction for Sun right now…. still all argueing why javaFX needs to be. Hmm.

The discussion now switches to debugging. Guillaume mentions that the stack is different if your are debugging Groovy, but besides this oyu can use the same tools.

Charles Nutter says that many times the test/deploy cycles are so short, that debugging has become somewhat obsolete…

I started Twitering… this is kind of difficult to blog about. Check my Twitter page: http://twitter.com/hansamann

Now I know why Twitter exists. If the quality is not good enough for blogging, you can always twitter it!

Scott Davis: Groovy – The Red Pill

Scott Davis

Scott Davis,
originally uploaded by hansamann.

I am waiting for Scott Davis’ show to begin. He is still busy signing his book, Groovy Recipes :-) and I just noticed I don’t have that book yet… what a shame, have to order or get it today. Scott is also the creator of aboutGroovy.com, a news site dedicated purely to Groovy news.

Damn no Wifi in this room… what the hell is going on with JavaOne? I better keep writing this to Stickies instead of the online wordpress blog post page.

Scott makes a bold point that Groovy/Java Integration is seamless, really seamless. Mentioning the Foreword of Groovy in Action by James Gosling: smooth and efficient integration with Java. Other scripting languages got many syntactic mismatches… for Java Developers Groovy is painless.

Rest of the session will be live coding. He covers: Method Pointers, Operator Overloading, Closures, ExpandoMetaClass (invokeMethod,methodMissing)

Uses Textmate. Starts with a Hello World Java example. Javac’s it, runs it. Now the same in groovy. Of course that’s println ‘Hello Groovy’ :-) done. He talks about some more basics of Groovy like optional parenthesis.

Method Pointers
Make a great example of method pointers in Groovy and how it helps to create dsls.

songs = [1,2]

load = songs.&add
load 3

println songs
[1,2,3]

Moves on to GroovyBeans and all the stuff you don’t have to write… semicolons, return statements, gettter/setter. Also gives an example for GStrings, you should order one.

Closures & ExandoMetaClass
Jumping into a basic closure example and then comparing for-loop in Java to Groovy’s Integer.times() method that results in sth. like 7.times {println ‘hi’}. He also covers operator overloading, example with Date and using ++ to advance to the next day. He is now extending String with String.metaClass.methodName to add a shout() method that upperCases a String. Nice eye-opener I guess. So we moved into the next topic, ExpandoMetaClass (the coolest thing on earth).

He explains why this is a great feature for testing. You can just replace calls to real functionality with a fake method. He recommends to get started with Groovy with testing… Testing as an drug.

Jumping into the goodness of the GDK, quickly showing some examples (most for java.io.File).

Whoops. We missed the TestCase. Creating one. Extending form GroovyTestCase and testing his new Ipod class he used for the previous examples. We are adding the leftShit method to add Song objects to the Ipod via << new Song().

Scott now talks about invokeMethod / methodMissing. Grails GORM methods are a good example for the methodMissing. These methods don’t exist, but Grails then parses the method name and creates the queries accordingly.

That’s the end. Scott is a very enthusiastic speaker, great session. Hope to meet him later on and chat with him. I am off to upload that text and then head to the next sesion. I think it is a press only panel about dynamic languages. I hope Guillaume can be here as he was not confirmed.

JavaOne – just arrived…

Groovy Crowd

Groovy Crowd,
originally uploaded by hansamann.

And the first thing that happened I bumped into Dierk Koenig and Adam Bien. Dierk Koenig is the author of Groovy in Action and Adam is a known Java Author, too (EJB books, projects like GreenFire, etc.). Unfortunately had to find out that Graeme Rocher, Grails Project Lead, is ill and at home in London. So the planned interview with im and Guillaume won’t be possible, but let’s see if I can find Guillaume later.

My first session will lead me to Scott Davis, it is called Groovy the Red Pill and is abou Mopping up Groovy – Groovy & it’s Meta Object Protocol.

Grails Podcast Episode 53

Yeah, the first two audio feedbacks in this show. Unfortunately the shownotes formatting at podhost is totally broken right now, we have to investigate. nevertheless the links should be good… enjoy. Oh, and be sure to head over to the podhost.de site and take the poll of the week.

Grails Podcast Episode 51: Newscast for March 29th 2008

We’re thrilled to announce the first Grails Podcast (of the next 50 ones till we reach 100) with tons of Groovy and Grails news. Here we go with the shownotes:

Grails Podcast Episode 50 – Tons of news!

Wow… we reached Episode 50… this is kind of amazing and a great outlook for the next 50 episodes together with Glen. This Episode covers a lot of news going on in the Groovy & Grails Community. Especially the Grails Plugin Community is vibrant like never before. We also would like to get more interactive and introduce listener feedback. We can both be reached via grails.podcast@gmail.com and will be happy to receive your feedback. Please also use this mail address for interesting things you want us to talk about (Blog Posts, Events, Groovy&Grails Sites and Developments, etc.)

Shownotes

Grails Podcast Episode 49

After a loooong long time finally a new Episode of the Grails Podcast is out! Glen Smith from the Grails Team will from now on be joining me and we podcast together every two weeks or so. We still need to set up some common infrastructure like a single feedback email address but that’s all details… This also means the style of the podcast is changing more into a conversational one, a change that I really welcome and I hope all our audience will enjoy, too!

So the first episode together just catches up on some of the great news over the past few months, grailseXchange, G2X, and some general Groovy&Grails news. Here are some of the links we talked about, more to come for the next shows.

    Glen has a great blog full with Groovy & Grails stuff, check it here.

    Grails Podcast Blog – including Flash Players for all Episodes and direct downloads.

    Follow

    Get every new post delivered to your Inbox.