Mike Austin's Blog

Saturday, February 21, 2009


An interesting blog that questions social network trends.


Wednesday, February 18, 2009

How do people use gmail at all?

There are so many weird UI problems with gmail, how can anybody stand to use it? It took me 30 seconds to find the Forward button... it's hidden under a dropdown next to the Reply button. "More actions"? Sure, that sounds reasonable - if you can't find a place for it, just throw it in a bucket. I love how the "New Window" is just floating out there on the right, no context to what it actually *does*. Ok, I'm done :) But seriously, Google, hire an interaction designer, jeez.

Monday, February 16, 2009

Getting around no "status" in Grails

In Grails, there is a handy "collection" attribute to <g:render> when rendering templates, but there is no way to pass a "status" attribute to get the current index. This is useful for zebra striping for example.

An approach I've been using is not to use "collection", and do the iteration in the template. If you want to render only one, you can just pass a list of one element.

<g:render template="comments" model="[comments: comments]"/>
<g:render template="comments" model="[comments: [comment]]"/>
<g:each var="comment" in="${comments}" status="index">