|
Hey,
are there any improvements where i can improve this code? Maybe there are some groovy language features? This snippet flattens a xml file to: node/node/node
def root = new XmlParser().parse("src/your_xml.xml") root.depthFirst().each { n -> def...
Started by chrsk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Edit: Ignore me, I'm wrong [see comments] (not the last line though);
I suspect you can write (but I could be wrong, I have no experience with this language)
while(n = n?.parent()){
But honestly; don't go with something that is cool, go with something... .
|
|
While writing a utility script to insert images into a database I wondered if there were a groovier way of doing it. In the end settled for something along the lines of this:
def sql = Sql.newInstance(...) // ... Connection conn = sql.getConnection() ...
Started by Jonathan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you sure you want to do this?
A "Groovier" way could.
And can't be indexed or searched usefully.
|
|
There is DWR which satisfies my needs in Java. I'm interested if there is any Groovier way to do the same thing - with convention over configuration, dynamic method invokation, etc.
Started by Pavel Feldman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Or if you're going to use Grails, you may have a look at Grails DWR plugin: http://grails.org/DWR+Plugin
And this one is an unofficial update... .
In the mean time, you may try using Groovy objects with DWR .
I don't think there is such framework at the moment .
|
Ask your Facebook Friends
|
I am looking into the groovy-wicket integration and lack of anonymous inner classes seems to be a problem when writing the event handlers. Is there a groovier way of writing this code
import org.apache.wicket.PageParameters import org.apache.wicket.markup...
Started by Dan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
This doesn't look like a "good" alternative, but it seems to be the "official" Groovy alternative:
Groovy Alternatives to Inner Classes
I may be wrong but isn't this what the WickeBuilder tries to solve:
The Wicket Builder utility implements a... .
Ermh..
|
|
In my Groovy program, I have a list of lines and want to select a contiguous block of lines from the list. The first line of the desired block contains a particular string, and the last line (which I can include or not - it doesn't matter) contains a ...
Started by Douglas Squirrel on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of Ted's "groovier" answer:
def extract_block(start, end, lines) { def inBlock = false return.
|
|
Admit it, Groovy soca monarch is going to fall into the same faith as power soca monarch; all about who can mash up the crowd most. The days of singing tunes like "somebody's sleeping in your bed" by michelle sylvester is long over. slow groovier, more...
Started by readingtrini on
, 15 posts
by 7 people.
Answer Snippets (Read the full thread at islandmix):
Slow groovier, more melody tunes.
Somebody's sleeping in your bed" by michelle sylvester is long over .
|
|
I have to say i was if-fy about the island pop genre. but they have succeeded on changing the mind set of so many artist in the soca season. This season (excluding rediculous PYF) we heard little flags, jump, wave, bachannal, and more creativity. Dont...
Started by readingtrini on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at islandmix):
How will i get on wotless to more groovier tunes.
Will i grind, and "choke a gyal" in de corner .
|
|
Ok, so Im a guitarist and Im looking for a drummer and a singer (well a growler (DEEPER GROWLS)) for a few songs Im working on. I have one going, and am planning on doing about 3 or 4 in the next few months. It's pretty much in the style of groovier metal...
Started by awesomo41894 on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at ultimate-guitar):
Randy from LoG uses fry vocals, and I do false chords, but I should be able to... .
If deep is your thing, I can do that:
http://dl.dropbox.com/u/4018922/Voc...ss/ADF_vox3.mp3
That's just one example, but I think that's the lowest I've gone in a recording .
|
|
I dunno, these days I'm not feeling the aggression from it. I'm listening to a lot more fast stuff lately, and it's really coming out in my writing. I dunno about you, but the speedier the riffs, the less I like playing them on the 7 string.
I love the...
Started by Mattayus on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at metalguitarist):
Though I am tuning my 6 strings to ....
I felt like I was stuck in a rut riding on the B string .
I actually switched back to 6 strings not too long ago .
Simon's now a doctor.
I actually prefer drop C on a 6 for most stuff these days .
I know what you mean.
|
|
I am planning a *much needed* vacation for our family of three (two of us and a 13 yo boy) and we have decided that Zihua looks just our speed. . . We will be going in late Sep and I'm interested in starting off for a few days at the Las Gatas Beach Club...
Started by sugarplump on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at tripadvisor):
Thanks, rocky -- I'll look forward to your report, and I wish you a fabulous trip! I have checked out the website for Las Gatas and the Zihua.net site -- I have stayed at 'rustic/tentalapa' kinda places in Mexico before (Kailuum in PDC), but since I've... .
|