<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My own tech words... &#187; English</title>
	<atom:link href="http://blog.lucastex.com/category/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lucastex.com</link>
	<description></description>
	<lastBuildDate>Mon, 12 Apr 2010 12:01:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Grails 1.1 is available!</title>
		<link>http://blog.lucastex.com/2009/03/10/grails-11-is-available/</link>
		<comments>http://blog.lucastex.com/2009/03/10/grails-11-is-available/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 13:58:29 +0000</pubDate>
		<dc:creator>lucastex</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.lucastex.com/?p=116</guid>
		<description><![CDATA[Hello!
Good news for today!! I just got @ work and saw in my twitter that Graeme Rocher just updated Grails with the new Version 1.1. This is awesome!!
Here is his twitt: http://twitter.com/graemerocher/status/1305118282
Grails 1.1 release notes: http://www.grails.org/1.1+Release+Notes
Grails 1.1 documentation: http://grails.org/doc/1.1.x/
Some stuff I really liked and I thing will help the day-by-day development:

GORM is now independent from [...]]]></description>
			<content:encoded><![CDATA[<p>Hello!</p>
<p>Good news for today!! I just got @ work and saw in my twitter that Graeme Rocher just updated Grails with the new Version 1.1. This is awesome!!</p>
<p>Here is his twitt: <a href="http://twitter.com/graemerocher/status/1305118282">http://twitter.com/graemerocher/status/1305118282</a><br />
Grails 1.1 release notes: <a href="http://www.grails.org/1.1+Release+Notes">http://www.grails.org/1.1+Release+Notes</a><br />
Grails 1.1 documentation: <a href="http://grails.org/doc/1.1.x/">http://grails.org/doc/1.1.x/</a></p>
<p>Some stuff I really liked and I thing will help the day-by-day development:</p>
<ul>
<li>GORM is now independent from Grails
<ul>
<li>Yeah, that is correct, now you can use GORM&#8217;s god-blessed-methods in your own groovy project!</li>
</ul>
</li>
</ul>
<ul>
<li>hasMany associations for primitive types
<ul>
<li>You can use hasMany for primitive types, eg. Strings. Remember that time you had to create one domain class just for encapsulate one string? Now you can have this! <img src='http://blog.lucastex.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
</ul>
</li>
</ul>
<ul>
<li>Global plugins
<ul>
<li>For people that knows Ruby and Rails, this will be like a gem. You install the plugin once with the tag -global and will be available for all apps</li>
</ul>
</li>
</ul>
<p>Visit the links above and stay tuned!</p>
<p>You can follow me on twitter: <a href="http://twitter.com/lucastex">http://twitter.com/lucastex</a><br />
Take care!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucastex.com/2009/03/10/grails-11-is-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The grooviest way to access the last item in a list</title>
		<link>http://blog.lucastex.com/2009/03/09/the-grooviest-way-to-access-the-last-item-in-a-list/</link>
		<comments>http://blog.lucastex.com/2009/03/09/the-grooviest-way-to-access-the-last-item-in-a-list/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:28:16 +0000</pubDate>
		<dc:creator>lucastex</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[fuuny]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://blog.lucastex.com/?p=102</guid>
		<description><![CDATA[Hey!
Do you know that groovy provides a fuuny way to access the last item in a list? Let&#8217;s say you have the snippet above:
def lista = []
lista &#60;&#60; &#8220;first item&#8221;
lista &#60;&#60; &#8220;second item&#8221;
lista &#60;&#60; &#8220;third item&#8221;
println lista[0] // &#8220;first item&#8221;
println lista[1] // &#8220;second item&#8221;
println lista[2] // &#8220;third item&#8221;
That&#8217;s ok hÃ£. If you are using Java [...]]]></description>
			<content:encoded><![CDATA[<p>Hey!</p>
<p>Do you know that groovy provides a fuuny way to access the last item in a list? Let&#8217;s say you have the snippet above:</p>
<blockquote><p>def lista = []<br />
lista &lt;&lt; &#8220;first item&#8221;<br />
lista &lt;&lt; &#8220;second item&#8221;<br />
lista &lt;&lt; &#8220;third item&#8221;</p>
<p>println lista[0] // &#8220;first item&#8221;<br />
println lista[1] // &#8220;second item&#8221;<br />
println lista[2] // &#8220;third item&#8221;</p></blockquote>
<p>That&#8217;s ok hÃ£. If you are using Java and needs to access the last item in this list, what should you do? I bet would be something like this (that is applicable to groovy):</p>
<blockquote><p>lista.get(lista.size()-1); //Java<br />
lista[lista.size -1] //groovy</p></blockquote>
<p>I said &#8220;applicable&#8221; but doing this does not make me feel &#8220;groovier&#8221;&#8230; How about this trick?</p>
<blockquote><p>lista[-1] //&#8221;third item&#8221;</p></blockquote>
<p>That&#8217;s it! The indexes inside a list in groovy are &#8220;mirrored&#8221; backwards, so you can access the &#8220;first item from back to front&#8221; using the first negative integer! This is applicable to the rest of the entries:</p>
<blockquote><p>println lista[-1] // &#8220;third item&#8221;<br />
println lista[-2] // &#8220;second item&#8221;<br />
println lista[-3] // &#8220;first item&#8221;</p></blockquote>
<p>Take care!</p>
<p>[]s,</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucastex.com/2009/03/09/the-grooviest-way-to-access-the-last-item-in-a-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
