|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Show your love, vote Groovy!Hi,
Let's do a bit of "Guerilla Marketing", in these times of presidential election, show your love and vote Groovy! http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_your :-) -- Guillaume Laforge Groovy Project Manager G2One, Inc. Vice-President Technology http://www.g2one.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Show your love, vote Groovy!As a super fan of Groovy, I've voted Groovy :)
Cheers, Daniel.Sun
|
|
|
Re: Show your love, vote Groovy!Just voted.
Cool thing: at the time of my vote (8th Nov) Groovy was the most voted (after Java ;-) ) with 21% ! Groovy! On Nov 8, 9:05 am, "Guillaume Laforge" <glafo...@...> wrote: > Hi, > > Let's do a bit of "Guerilla Marketing", in these times of presidential > election, show your love and vote Groovy!http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_your > > :-) > > -- > Guillaume Laforge > Groovy Project Manager > G2One, Inc. Vice-President Technologyhttp://www.g2one.com > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!just voted =)
On Sat, Nov 8, 2008 at 12:51 PM, AxiomShell <AxiomShell@...> wrote: Just voted. |
|
|
Re: Re: Show your love, vote Groovy!Groovy is most voted now :)
On Sat, Nov 8, 2008 at 7:35 PM, Mohamed Fouad <mohamed.fouad@...> wrote:
|
|
|
Re: Re: Show your love, vote Groovy!34% for groovy .. no 1.
On Sat, Nov 8, 2008 at 9:23 PM, Zeeno <zeeno.xie@...> wrote: > Groovy is most voted now :) > > > On Sat, Nov 8, 2008 at 7:35 PM, Mohamed Fouad > <mohamed.fouad@...> wrote: >> >> just voted =) >> >> On Sat, Nov 8, 2008 at 12:51 PM, AxiomShell <AxiomShell@...> wrote: >>> >>> Just voted. >>> >>> Cool thing: at the time of my vote (8th Nov) Groovy was the most voted >>> (after Java ;-) ) with 21% ! >>> >>> Groovy! >>> >>> On Nov 8, 9:05 am, "Guillaume Laforge" <glafo...@...> wrote: >>> > Hi, >>> > >>> > Let's do a bit of "Guerilla Marketing", in these times of presidential >>> > election, show your love and vote >>> > Groovy!http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_your >>> > >>> > :-) >>> > >>> > -- >>> > Guillaume Laforge >>> > Groovy Project Manager >>> > G2One, Inc. Vice-President Technologyhttp://www.g2one.com >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe from this list, please visit: >>> > >>> > http://xircles.codehaus.org/manage_email >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> >> > > -- regards Adwin Wijaya --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!Waoh, keep voting!
On Sat, Nov 8, 2008 at 4:38 PM, Adwin Wijaya <adwin.wijaya@...> wrote: > 34% for groovy .. no 1. > > On Sat, Nov 8, 2008 at 9:23 PM, Zeeno <zeeno.xie@...> wrote: >> Groovy is most voted now :) >> >> >> On Sat, Nov 8, 2008 at 7:35 PM, Mohamed Fouad >> <mohamed.fouad@...> wrote: >>> >>> just voted =) >>> >>> On Sat, Nov 8, 2008 at 12:51 PM, AxiomShell <AxiomShell@...> wrote: >>>> >>>> Just voted. >>>> >>>> Cool thing: at the time of my vote (8th Nov) Groovy was the most voted >>>> (after Java ;-) ) with 21% ! >>>> >>>> Groovy! >>>> >>>> On Nov 8, 9:05 am, "Guillaume Laforge" <glafo...@...> wrote: >>>> > Hi, >>>> > >>>> > Let's do a bit of "Guerilla Marketing", in these times of presidential >>>> > election, show your love and vote >>>> > Groovy!http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_your >>>> > >>>> > :-) >>>> > >>>> > -- >>>> > Guillaume Laforge >>>> > Groovy Project Manager >>>> > G2One, Inc. Vice-President Technologyhttp://www.g2one.com >>>> > >>>> > --------------------------------------------------------------------- >>>> > To unsubscribe from this list, please visit: >>>> > >>>> > http://xircles.codehaus.org/manage_email >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>> >>> >> >> > > > > -- > regards > Adwin Wijaya > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Guillaume Laforge Groovy Project Manager G2One, Inc. Vice-President Technology http://www.g2one.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!Just voted. Groovy is now 37% at first place
Sent from my iPhone On Nov 8, 2008, at 10:38 AM, "Adwin Wijaya" <adwin.wijaya@...> wrote: > 34% for groovy .. no 1. > > On Sat, Nov 8, 2008 at 9:23 PM, Zeeno <zeeno.xie@...> wrote: >> Groovy is most voted now :) >> >> >> On Sat, Nov 8, 2008 at 7:35 PM, Mohamed Fouad >> <mohamed.fouad@...> wrote: >>> >>> just voted =) >>> >>> On Sat, Nov 8, 2008 at 12:51 PM, AxiomShell <AxiomShell@...> >>> wrote: >>>> >>>> Just voted. >>>> >>>> Cool thing: at the time of my vote (8th Nov) Groovy was the most >>>> voted >>>> (after Java ;-) ) with 21% ! >>>> >>>> Groovy! >>>> >>>> On Nov 8, 9:05 am, "Guillaume Laforge" <glafo...@...> wrote: >>>>> Hi, >>>>> >>>>> Let's do a bit of "Guerilla Marketing", in these times of >>>>> presidential >>>>> election, show your love and vote >>>>> Groovy!http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_your >>>>> >>>>> :-) >>>>> >>>>> -- >>>>> Guillaume Laforge >>>>> Groovy Project Manager >>>>> G2One, Inc. Vice-President Technologyhttp://www.g2one.com >>>>> >>>>> --- >>>>> ------------------------------------------------------------------ >>>>> To unsubscribe from this list, please visit: >>>>> >>>>> http://xircles.codehaus.org/manage_email >>>> >>>> --- >>>> ------------------------------------------------------------------ >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>> >>> >> >> > > > > -- > regards > Adwin Wijaya > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!+1 :)
2008/11/8 Wilson MacGyver <wmacgyver@...> Just voted. Groovy is now 37% at first place |
|
|
Re: Re: Show your love, vote Groovy!44% now of 695 votes to Java 14% and JavaFX/Flex 9%.
Vive Groovy! On Saturday 08 November 2008 10:12:34 am Sergey Bondarenko wrote: > +1 :) > > 2008/11/8 Wilson MacGyver <wmacgyver@...> > > > Just voted. Groovy is now 37% at first place > > > > Sent from my iPhone > > > > > > On Nov 8, 2008, at 10:38 AM, "Adwin Wijaya" <adwin.wijaya@...> > > wrote: > > > > 34% for groovy .. no 1. > > > >> On Sat, Nov 8, 2008 at 9:23 PM, Zeeno <zeeno.xie@...> wrote: > >>> Groovy is most voted now :) > >>> > >>> > >>> On Sat, Nov 8, 2008 at 7:35 PM, Mohamed Fouad > >>> > >>> <mohamed.fouad@...> wrote: > >>>> just voted =) > >>>> > >>>> On Sat, Nov 8, 2008 at 12:51 PM, AxiomShell <AxiomShell@...> > >>>> > >>>> wrote: > >>>>> Just voted. > >>>>> > >>>>> Cool thing: at the time of my vote (8th Nov) Groovy was the most > >>>>> voted (after Java ;-) ) with 21% ! > >>>>> > >>>>> Groovy! > >>>>> > >>>>> On Nov 8, 9:05 am, "Guillaume Laforge" <glafo...@...> wrote: > >>>>>> Hi, > >>>>>> > >>>>>> Let's do a bit of "Guerilla Marketing", in these times of > >>>>>> presidential election, show your love and vote > >>>>>> Groovy! > >>>>>> http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_yo > >>>>>>ur > >>>>>> > >>>>>> :-) > >>>>>> > >>>>>> -- > >>>>>> Guillaume Laforge > >>>>>> Groovy Project Manager > >>>>>> G2One, Inc. Vice-President Technologyhttp://www.g2one.com > >>>>>> > >>>>>> -------------------------------------------------------------------- > >>>>>>- To unsubscribe from this list, please visit: > >>>>>> > >>>>>> http://xircles.codehaus.org/manage_email > >>>>> > >>>>> --------------------------------------------------------------------- > >>>>> To unsubscribe from this list, please visit: > >>>>> > >>>>> http://xircles.codehaus.org/manage_email > >> > >> -- > >> regards > >> Adwin Wijaya > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > >> > >> http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!when Guillaume first post the message, Groovy has 16% only. The Groovy marketing campaign is done pretty well! :-)
On Sun, Nov 9, 2008 at 11:30 PM, Pascal Demilly <list.groovy@...> wrote: 44% now of 695 votes to Java 14% and JavaFX/Flex 9%. |
|
|
Re: Re: Show your love, vote Groovy!Unfortunately the only way to see the results is to vote. There are about 700 people who voted and 44% voted for Groovy so that leaves about 300 who will have seen the results who don't already use Groovy, at most.
Perhaps the results will be made public in a few days and a couple thousand people will eventually see the results. Getting my point? Voting was an easy and fun thing to do. Now if someone could come up with another idea that will target an even larger audience and/or reduce the barriers to entry to Groovy/Grails for other developers then we might be onto something. I call it building an ecosystem. In fact, I've thrown the word around in this group before.
In the meantime, let me know when there's another poll and I'll vote twice again. -Mike On Sun, Nov 9, 2008 at 10:56 AM, Mingfai <mingfai.ma@gmail.com> wrote: when Guillaume first post the message, Groovy has 16% only. The Groovy marketing campaign is done pretty well! :-) |
|
|
Re: Show your love, vote Groovy!I think you can check the results using this link:
http://www.micropoll.com/akira/mpresult/501697-116746 You even see some basic stats about vote distribution. On Nov 9, 4:31 pm, "Michael Mellinger" <mmellinge...@...> wrote: > Unfortunately the only way to see the results is to vote. There are about > 700 people who voted and 44% voted for Groovy so that leaves about 300 who > will have seen the results who don't already use Groovy, at most. > Perhaps the results will be made public in a few days and a couple thousand > people will eventually see the results. > > Getting my point? Voting was an easy and fun thing to do. Now if someone > could come up with another idea that will target an even larger audience > and/or reduce the barriers to entry to Groovy/Grails for other developers > then we might be onto something. I call it building an ecosystem. In fact, > I've thrown the word around in this group before. > > In the meantime, let me know when there's another poll and I'll vote twice > again. > > -Mike > > On Sun, Nov 9, 2008 at 10:56 AM, Mingfai <mingfai...@...> wrote: > > when Guillaume first post the message, Groovy has 16% only. The Groovy > > marketing campaign is done pretty well! :-) > > > On Sun, Nov 9, 2008 at 11:30 PM, Pascal Demilly < > > list.gro...@...> wrote: > > >> 44% now of 695 votes to Java 14% and JavaFX/Flex 9%. > > >> Vive Groovy! > > >> On Saturday 08 November 2008 10:12:34 am Sergey Bondarenko wrote: > >> > +1 :) > > >> > 2008/11/8 Wilson MacGyver <wmacgy...@...> > > >> > > Just voted. Groovy is now 37% at first place > > >> > > Sent from my iPhone > > >> > > On Nov 8, 2008, at 10:38 AM, "Adwin Wijaya" <adwin.wij...@...> > >> > > wrote: > > >> > > 34% for groovy .. no 1. > > >> > >> On Sat, Nov 8, 2008 at 9:23 PM, Zeeno <zeeno....@...> wrote: > >> > >>> Groovy is most voted now :) > > >> > >>> On Sat, Nov 8, 2008 at 7:35 PM, Mohamed Fouad > > >> > >>> <mohamed.fo...@...> wrote: > >> > >>>> just voted =) > > >> > >>>> On Sat, Nov 8, 2008 at 12:51 PM, AxiomShell <AxiomSh...@...> > > >> > >>>> wrote: > >> > >>>>> Just voted. > > >> > >>>>> Cool thing: at the time of my vote (8th Nov) Groovy was the most > >> > >>>>> voted (after Java ;-) ) with 21% ! > > >> > >>>>> Groovy! > > >> > >>>>> On Nov 8, 9:05 am, "Guillaume Laforge" <glafo...@...> > >> wrote: > >> > >>>>>> Hi, > > >> > >>>>>> Let's do a bit of "Guerilla Marketing", in these times of > >> > >>>>>> presidential election, show your love and vote > >> > >>>>>> Groovy! > > >>http://blogs.sun.com/theplanetarium/entry/java_ria_languages_cast_yo > >> > >>>>>>ur > > >> > >>>>>> :-) > > >> > >>>>>> -- > >> > >>>>>> Guillaume Laforge > >> > >>>>>> Groovy Project Manager > >> > >>>>>> G2One, Inc. Vice-President Technologyhttp://www.g2one.com > > >> -------------------------------------------------------------------- > >> > >>>>>>- To unsubscribe from this list, please visit: > > >> > >>>>>> http://xircles.codehaus.org/manage_email > > >> --------------------------------------------------------------------- > >> > >>>>> To unsubscribe from this list, please visit: > > >> > >>>>> http://xircles.codehaus.org/manage_email > > >> > >> -- > >> > >> regards > >> > >> Adwin Wijaya > > >> > >> --------------------------------------------------------------------- > >> > >> To unsubscribe from this list, please visit: > > >> > >> http://xircles.codehaus.org/manage_email > > >> > > --------------------------------------------------------------------- > >> > > To unsubscribe from this list, please visit: > > >> > > http://xircles.codehaus.org/manage_email > > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > > >> http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!On 9 Nov 2008, at 16:31, Michael Mellinger wrote: > Unfortunately the only way to see the results is to vote. There are > about 700 people who voted and 44% voted for Groovy so that leaves > about 300 who will have seen the results who don't already use > Groovy, at most. > > Perhaps the results will be made public in a few days and a couple > thousand people will eventually see the results. > > Getting my point? Voting was an easy and fun thing to do. Now if > someone could come up with another idea that will target an even > larger audience and/or reduce the barriers to entry to Groovy/Grails > for other developers then we might be onto something. I call it > building an ecosystem. In fact, I've thrown the word around in this > group before. > > In the meantime, let me know when there's another poll and I'll vote > twice again. > > - ...but the poll is now meaningless. All polls like this become useless once or or two interested groups get everyone they know to vote. Internet votes and petitions, generally speaking, are meaningless for this reason. It just means the "winner" has a community that latched onto the vote. Marc --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!On Tue, 2008-11-11 at 10:09 +0000, Marc Palmer wrote:
> ...but the poll is now meaningless. All polls like this become useless > once or or two interested groups get everyone they know to vote. > > Internet votes and petitions, generally speaking, are meaningless for > this reason. It just means the "winner" has a community that latched > onto the vote. Actually, you can delete "Internet" and the same applies. Only polls underpinned by good sampling and sensible statistics have any merit whatsoever as base data. Polls such as this can be useful when interpreted, since then the sample can be retrofitted back to the population. As data they are fundamentally useless. However, by the very nature of the way in which useless data such as this is used by people who are either not so sensible or unscrupulous, it is crucially important for any community (in this case Groovy and Grails) to keep and eye out for any and all polls such as this and then to flood them. So what Guillaume did was exactly the right thing to do, and the community responded in the right way. Be observant, announce all polls you find on the list. Behave like lobbyists. Also, G2One (sorry SpringSource :-) should write a crawler looking for such polls and then announce them. This would be a very sensible business cost for them. -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: Re: Show your love, vote Groovy!Yes, however, there are a lot of things that can be done that are
significant. We've already had a couple of presentations on Groovy/Grails at our Java user group in NYC. http://www.nycjava.net/JSPWiki New York City is a big developer market so we're getting the word out. Certain sites are popular with developers. StackOverFlow.com, for example, has become very popular. I'll post a question to it and when I Google for an answer an hour later, StackOverFlow.com will often come up in the first few answers on the page. http://stackoverflow.com/questions/tagged/grails http://stackoverflow.com/questions/tagged/groovy Groovy/Grails will not be one big community, it will be a lot of little ones. Before many people adopt something they want to see the safety and comfort knowing that there are a lot of other people using the technology. Finally, another big thing is jobs. I've gone to my JUG and made announcements that we were trying to hire Java programmers and that we're using Groovy/Grails. People are going to learn what they can to get jobs. -Mike On Tue, Nov 11, 2008 at 5:09 AM, Marc Palmer <marc@...> wrote: > > On 9 Nov 2008, at 16:31, Michael Mellinger wrote: > >> Unfortunately the only way to see the results is to vote. There are about >> 700 people who voted and 44% voted for Groovy so that leaves about 300 who >> will have seen the results who don't already use Groovy, at most. >> >> Perhaps the results will be made public in a few days and a couple >> thousand people will eventually see the results. >> >> Getting my point? Voting was an easy and fun thing to do. Now if someone >> could come up with another idea that will target an even larger audience >> and/or reduce the barriers to entry to Groovy/Grails for other developers >> then we might be onto something. I call it building an ecosystem. In fact, >> I've thrown the word around in this group before. >> >> In the meantime, let me know when there's another poll and I'll vote twice >> again. >> >> - > > ...but the poll is now meaningless. All polls like this become useless once > or or two interested groups get everyone they know to vote. > > Internet votes and petitions, generally speaking, are meaningless for this > reason. It just means the "winner" has a community that latched onto the > vote. > > Marc > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > Es, thbut --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: Show your love, vote Groovy!I've repeatedly asserted that one of the strengths of Groovy/Grails is also its downfall: executives
don't care about it and so HR never really hears about it, because it's easy enough to pull from the pool of talented Java developers and teach them Groovy/Grails. Plus your integration/deployment team doesn't know you're using a different framework to build the WARs you're handing them. So many Groovy/Grails adoptions are basically under-the-radar adoption. The more that can change and we can be public about Groovy/Grails usage and hiring, the better for everyone. In general, I'm less than impressed with StackOverflow.com. And since Groovy/Grails has got such a vibrant couple of mailing lists, and that mailing list is the de facto place to ask and answer questions, I'd rather dedicate my time to keeping up here instead of trolling StackOverflow.com and fertilizing their walled garden. On the other hand, JUG presentations are excellent ideas. I'm doing a Grails presentation at the Raleigh/Durham/Chapel Hill JUG (TriJUG). It's basically going to be my GroovyMag article live plus Autobase and BackgroundThread conversations. ~~ Robert. Michael Mellinger wrote: > Yes, however, there are a lot of things that can be done that are > significant. We've already had a couple of presentations on > Groovy/Grails at our Java user group in NYC. > > http://www.nycjava.net/JSPWiki > > New York City is a big developer market so we're getting the word out. > Certain sites are popular with developers. StackOverFlow.com, for > example, has become very popular. I'll post a question to it and when > I Google for an answer an hour later, StackOverFlow.com will often > come up in the first few answers on the page. > > http://stackoverflow.com/questions/tagged/grails > http://stackoverflow.com/questions/tagged/groovy > > Groovy/Grails will not be one big community, it will be a lot of > little ones. Before many people adopt something they want to see the > safety and comfort knowing that there are a lot of other people using > the technology. > > Finally, another big thing is jobs. I've gone to my JUG and made > announcements that we were trying to hire Java programmers and that > we're using Groovy/Grails. People are going to learn what they can to > get jobs. > > -Mike > > > > > > On Tue, Nov 11, 2008 at 5:09 AM, Marc Palmer <marc@...> wrote: >> On 9 Nov 2008, at 16:31, Michael Mellinger wrote: >> >>> Unfortunately the only way to see the results is to vote. There are about >>> 700 people who voted and 44% voted for Groovy so that leaves about 300 who >>> will have seen the results who don't already use Groovy, at most. >>> >>> Perhaps the results will be made public in a few days and a couple >>> thousand people will eventually see the results. >>> >>> Getting my point? Voting was an easy and fun thing to do. Now if someone >>> could come up with another idea that will target an even larger audience >>> and/or reduce the barriers to entry to Groovy/Grails for other developers >>> then we might be onto something. I call it building an ecosystem. In fact, >>> I've thrown the word around in this group before. >>> >>> In the meantime, let me know when there's another poll and I'll vote twice >>> again. >>> >>> - >> ...but the poll is now meaningless. All polls like this become useless once >> or or two interested groups get everyone they know to vote. >> >> Internet votes and petitions, generally speaking, are meaningless for this >> reason. It just means the "winner" has a community that latched onto the >> vote. >> >> Marc >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > Es, thbut > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- ~~ Robert Fischer. Smokejumper Consulting http://smokejumperit.com Enfranchised Mind Blog http://enfranchisedmind.com/blog LinkedIn Profile http://www.linkedin.com/in/robertfischer Twitter Feed http://twitter.com/robertfischer --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Can an explicit ctor call be avoided?Folks,
Need some assistance, Situation is we are trying to simplify client exposed programming idioms for an embedded Groovy application (server customization) Is there a way to implicitly construct a collection element when a field of the non-existant object is accessed? "Say what?" you ask? Example follows.... class Talk { String title } class Speaker { String name List<Talk> talks = [] } /* * The following is OK */ def s = new Speaker() s.name ='Duffy' s.talks[0] = new Talk(title: 'gfgfgf') s.talks[1] = new Talk(title: 'ddddd') /* * This is not correct. Alternatives that avoid the new? */ s.talks[2].name = 'ssss' // Can a new Talk(...) be avoided here? s.talks[2].talks[0] = 'talk one' s.talks[2].talks[1] = 'talks two' Cheers --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Can an explicit ctor call be avoided?Original example is not correct, this is...
class Talk { String title } class Speaker { String name List<Talk> talks = [] } /* * The following is OK */ def s = new Speaker() s.name ='Duffy' s.talks[0] = new Talk(title: 'one') s.talks[1] = new Talk() s.talks[1].title = 'two' /* * Can this be made to work w/o an explicit ctor for Talk? */ s.talks[2].title = 'talks two' println s.name println s.talks Paul Duffy wrote: > Folks, > > Need some assistance, Situation is we are trying to simplify client > exposed programming idioms for an embedded Groovy application (server > customization) > > Is there a way to implicitly construct a collection element when a > field of the non-existant object is accessed? "Say what?" you ask? > Example follows.... > > class Talk { > String title > } > > class Speaker { > String name > List<Talk> talks = [] > } > > /* > * The following is OK > */ > def s = new Speaker() > s.name ='Duffy' > s.talks[0] = new Talk(title: 'gfgfgf') > s.talks[1] = new Talk(title: 'ddddd') > /* > * This is not correct. Alternatives that avoid the new? > */ > s.talks[2].name = 'ssss' // Can a new Talk(...) be avoided here? > s.talks[2].talks[0] = 'talk one' > s.talks[2].talks[1] = 'talks two' > > Cheers > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Can an explicit ctor call be avoided?Paul Duffy schrieb:
> Folks, > > Need some assistance, Situation is we are trying to simplify client > exposed programming idioms for an embedded Groovy application (server > customization) > > Is there a way to implicitly construct a collection element when a field > of the non-existant object is accessed? "Say what?" you ask? Example > follows.... > > class Talk { > String title > } > > class Speaker { > String name > List<Talk> talks = [] > } > > /* > * The following is OK > */ > def s = new Speaker() > s.name ='Duffy' > s.talks[0] = new Talk(title: 'gfgfgf') > s.talks[1] = new Talk(title: 'ddddd') > /* > * This is not correct. Alternatives that avoid the new? > */ > s.talks[2].name = 'ssss' // Can a new Talk(...) be avoided here? > s.talks[2].talks[0] = 'talk one' > s.talks[2].talks[1] = 'talks two' you would need kind of a self creating list ;) Well, weare in Groovy, we can overwrite things, so nothing is really impossible. What we need is boviously a new kind of List, that knows how to create missing elements for you to access them without using new. So maybe something along: class SpontanousList extends ArrayList { Class elementClass def get(int i) { def element = super.get(i) if (element==null) { element = elementClass.newInstance() ensureCapacity(i+1) super.set(i,element) } return element } } then you could do: class Speaker { String name List talks = new SpontanousList(elementClass:Talk) } and s.talks[2].name = 'ssss' would just work. Of course s.talks[2].talks[0] = 'talk one' would not work this way... not sure what that should express bye blackdrag -- Jochen "blackdrag" Theodorou The Groovy Project Tech Lead (http://groovy.codehaus.org) http://blackdragsview.blogspot.com/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |