...making Linux just a little more fun!
Jimmy O'Regan [joregan at gmail.com]
In keeping with the spirit of the day, Google have released a set of open source annotations for Java: https://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html (project: https://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"
Amit Saha [amitsaha.in at gmail.com]
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: > https://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html > (project: https://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: https://amitksaha.wordpress.com ?-blog: https://twitter.com/amitsaha
Jimmy O'Regan [joregan at gmail.com]
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: >> https://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html >> (project: https://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"
Jimmy O'Regan [joregan at gmail.com]
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: >>> https://google-opensource.blogspot.com/2010/03/google-annotations-gallery.html >>> (project: https://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.