Tux

...making Linux just a little more fun!

Google Annotations Gallery

Jimmy O'Regan [joregan at gmail.com]


Thu, 1 Apr 2010 11:16:19 +0100

In keeping with the spirit of the day, Google have released a set of open source annotations for Java: http://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html (project: http://code.google.com/p/gag/)

This adds some missing features to Java:

    @ThisWouldBeOneLineIn(language="C++",
toWit="vwords[ivwords]->add_ignored_string(str);")
    private void vwords_set_superficial(int ivwords, String str) {
        TaggerWord tmp = new TaggerWord();
        tmp = vwords.get(ivwords);
        tmp.set_superficial_form(str);
        vwords.set(ivwords, tmp);
    }

It also includes @LOL, @Facepalm, @WTF, and @AnimalsHarmedDuringTheMaking

-- 
<spectie>       Jim only looks at them through the reflection in a mirror
<Aha_>  he told me there are 'some' errors
<spectie>       hahaha
<spectie>       he was being extremely generous
<spectie>       it is more correct to say that "amazingly, there is
some stuff that isn't wrong"


Top    Back


Amit Saha [amitsaha.in at gmail.com]


Thu, 1 Apr 2010 15:48:57 +0530

On Thu, Apr 1, 2010 at 3:46 PM, Jimmy O'Regan <joregan at gmail.com> wrote:

> In keeping with the spirit of the day, Google have released a set of
> open source annotations for Java:
> http://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html
> (project: http://code.google.com/p/gag/)
>
> This adds some missing features to Java:
>
>    @ThisWouldBeOneLineIn(language="C++",
> toWit="vwords[ivwords]->add_ignored_string(str);")
>    private void vwords_set_superficial(int ivwords, String str) {
>        TaggerWord tmp = new TaggerWord();
>        tmp = vwords.get(ivwords);
>        tmp.set_superficial_form(str);
>        vwords.set(ivwords, tmp);
>    }
>
> It also includes @LOL, @Facepalm, @WTF, and @AnimalsHarmedDuringTheMaking

Thanks for sharing! This is awesomness of LOLs!

-Amit

-- 
Journal: http://amitksaha.wordpress.com
?-blog: http://twitter.com/amitsaha


Top    Back


Jimmy O'Regan [joregan at gmail.com]


Thu, 1 Apr 2010 11:24:23 +0100

On 1 April 2010 11:18, Amit Saha <amitsaha.in at gmail.com> wrote:

> On Thu, Apr 1, 2010 at 3:46 PM, Jimmy O'Regan <joregan at gmail.com> wrote:
>> In keeping with the spirit of the day, Google have released a set of
>> open source annotations for Java:
>> http://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html
>> (project: http://code.google.com/p/gag/)
>>
>> This adds some missing features to Java:
>>
>>    @ThisWouldBeOneLineIn(language="C++",
>> toWit="vwords[ivwords]->add_ignored_string(str);")
>>    private void vwords_set_superficial(int ivwords, String str) {
>>        TaggerWord tmp = new TaggerWord();
>>        tmp = vwords.get(ivwords);
>>        tmp.set_superficial_form(str);
>>        vwords.set(ivwords, tmp);
>>    }
>>
>> It also includes @LOL, @Facepalm, @WTF, and @AnimalsHarmedDuringTheMaking
>
> Thanks for sharing! This is awesomness of LOLs!

Heh. Seeing it in the reflection of a reply, it makes me wish that I'd used the /actual/ line of C++ instead of one very similar. (That's from real code that I'm porting from C++ to Java, for giggles).

-- 
<spectie>       Jim only looks at them through the reflection in a mirror
<Aha_>  he told me there are 'some' errors
<spectie>       hahaha
<spectie>       he was being extremely generous
<spectie>       it is more correct to say that "amazingly, there is
some stuff that isn't wrong"


Top    Back


Jimmy O'Regan [joregan at gmail.com]


Thu, 1 Apr 2010 15:28:52 +0100

On 1 April 2010 11:24, Jimmy O'Regan <joregan at gmail.com> wrote:

> On 1 April 2010 11:18, Amit Saha <amitsaha.in at gmail.com> wrote:
>> On Thu, Apr 1, 2010 at 3:46 PM, Jimmy O'Regan <joregan at gmail.com> wrote:
>>> In keeping with the spirit of the day, Google have released a set of
>>> open source annotations for Java:
>>> http://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html
>>> (project: http://code.google.com/p/gag/)
>>>
>>> This adds some missing features to Java:
>>>
>>>    @ThisWouldBeOneLineIn(language="C++",
>>> toWit="vwords[ivwords]->add_ignored_string(str);")
>>>    private void vwords_set_superficial(int ivwords, String str) {
>>>        TaggerWord tmp = new TaggerWord();
>>>        tmp = vwords.get(ivwords);
>>>        tmp.set_superficial_form(str);
>>>        vwords.set(ivwords, tmp);
>>>    }
>>>
>>> It also includes @LOL, @Facepalm, @WTF, and @AnimalsHarmedDuringTheMaking
>>
>> Thanks for sharing! This is awesomness of LOLs!
>
> Heh. Seeing it in the reflection of a reply, it makes me wish that I'd
> used the /actual/ line of C++ instead of one very similar. (That's
> from real code that I'm porting from C++ to Java, for giggles).
>

...our project's resident Java guru replied with:

@WTF("vwords.get(ivwords).set_superficial_form(str);")
:)

-- 
<Leftmost> jimregan, that's because deep inside you, you are evil.
<Leftmost> Also not-so-deep inside you.


Top    Back