Can I get down now dad?

Tramps like us, baby we were born to code

Building Twitter in 40mins with Grails

Out in Gotham City tonight to see Graeme Rocher do a presentation on building Twitter in Grails in 40 mins. The talk took a bit longer due to some technical issues (Macs and OHPs) but was impressive none the less. Graeme was able to build twitter using a messaging architecture by pulling various plug-ins for security and messaging in about an hour.

Lesson learned is that intellijIDEA is the IDE for Grails at the moment. The context was updated seamlessly during the presentation and Graeme did mention the Eclipse support was a bit “Ropey”. This is due to change when the Spring Source tooling bods get on the case apparently.

links for 2009-01-27

links for 2009-01-24

It’s all goin on in the task bar …

picture-9.png
Fuzzy Clock
Sprited Away
Rescue Time
Google Notifier
Spanning Sync
isyncit
blah
blahblah

links for 2009-01-22

Grails Console is … well… groovy dammit

picture-5.png

Doing more Groovy on Grails dev today and have really got in to the Grails Console. What this allows you to do is to fire up a console from within the context of your application and then dick about with code snippets. The context bit is important as you can run all the data access stuff just as you would in you application. In the above example I list the contents of the JadLine table.

The real benefit for me, particularly when on a leaning curve of a new language, is the ability to run a code snippets with out having to arse about in browsers. This really chops the corner off the usual code, reload and grumble process of web development in Java.

To run the Grails console, cd to you project directory and enter “Grails console”

Woof

links for 2009-01-15

Groovy on Grails for real

grails.jpg
Needed to knock up a quick app to deliver Jars and Jads and decided it was time to have a go at Groovy on Grails for real.

Although learning curves can be a bit tiresome, overall the experience has been pretty positive. The things I like so far are:

  • Being able to create a domain class and have it create all the relational mapping for me.
  • Being able to add fields to this class and have it update the table.
  • Creating a controller and have automatic CRUD scaffolding in place so I can see if things look ok.
  • Being able to update code and have the context loaded automatically … ace. This is a little flaky sometimes, but that might be my lack of understanding.
  • Having the freedom and no typee-ness of Groovy, no static typing is good most times
  • Knowing that I can use a lot of stuff I know like the String functions, no massive syntax change
  • Knowing it is all Spring, Hibernate and Sitemesh underneath

The other thing that has given me confidence is that SpringSource are now behind the Grails project.

Ooooo it’s all good.

On Browsers and App Stores

A long time ago (well about 4 years) a big shot in the mobile world said to me: “Downloading applications just won’t work in my opinion”. He could have said “sonny” at the end just to make me feel bad.

At the time I was hawking my J2ME apps about and the world was full of “it will always be the browser blah blah blah”. A few sensible people like Tom Hume spoke out, but most banged on and on and in particular bitched about J2ME as it if was the only language that was ever going to appear on a handset.

Time has passed of course and a combination of the iPhone, totally loony pricing of data and poverty stricken browsers means that apps are back in vogue.

The browser zelots may return of course as more facilities are exposed to the browser - see the new Palm Pre for instance. Hopefully though we have put the browser only charlies back in the box. We will always needs localised apps in mobile, just like we do on the Desktop. Next time bloody iTunes or Adobe Reader offers you an update please make a note of this. … . .sigh.

links for 2009-01-06

  • PhoneGap is a development tool that allows web developers to take advantage of the core features in the iPhone, Android, and Blackberry SDK using JavaScript.
    (tags: mobile)

« Previous Entries