eelinow
wants 2008-07-22T14:30:11.000Z
to thank asstrochris for recommending Groovy.
latest #14
yea? you're getting into it now? pretty good huh?
eelinow
says 2008-07-23T22:33:22.000Z
it is pretty cool.. I'm working on porting (as a test) some of my simulation software into Groovy, mainly my present-tense English parser.
sounds like a fun little project. I am porting over some of my rest services
eelinow
says 2008-07-24T01:33:14.000Z
so far, so good with the porting, btw. From python it is so similar.
eelinow
says 2008-07-24T01:33:01.000Z
the main difference is that I forgot a few java basics which made me pause for a few.
eelinow
says 2008-07-24T01:34:12.000Z
in Python we use "def __init__(self, arguments):" which runs whenever we instantiate a new instance
eelinow
says 2008-07-24T01:34:06.000Z
whereas in Java (& Groovy), I forgot that one just names the method the same as that of the class to accomplish the same.
def _init_? weird. that's what cf is starting to do too. I really like the shorthand for optional arguments which boils down to overloading
eelinow
says 2008-07-24T15:25:38.000Z
what I have a question about is regexes.. I know how to do them in Perl, Ruby, Grep, Sed and Python...
eelinow
says 2008-07-24T15:25:16.000Z
but I have a specific problem in Groovy/Java
eelinow
says 2008-07-24T15:27:32.000Z
I'm iterating through list and want to replace certain characters with left and right space padded versions of themselves. ',' into ' , '
eelinow
says 2008-07-24T15:27:36.000Z
ideas?
eelinow
says 2008-07-24T17:06:41.000Z
disregard, figured it out.
eelinow
says 2008-07-24T17:06:50.000Z
(Like you'd expect anything less)
back to top