Predefined method for jython autogenerated code

0 views
Skip to first unread message

Aleksandr Motsjonov

unread,
Mar 8, 2010, 4:02:40 AM3/8/10
to coding kata
In Jython It would be very nice to have autogenerated methods defined
in the base class like it is in Java generated projects.

stephanos

unread,
Mar 8, 2010, 7:49:11 AM3/8/10
to coding kata
I don't quite understand where you're getting at.
Every language template merely defines the class skeleton without any
predefined methods.

Or am I missing the point?

Cheers,
stephanos

Aleksandr Motsjonov

unread,
Mar 8, 2010, 8:53:15 AM3/8/10
to codin...@googlegroups.com
When I do first maven script for Jython I get only class statement with comment about unimplemented methods.

stephanos

unread,
Mar 9, 2010, 5:12:40 AM3/9/10
to coding kata
Well, the generated java version also has only the class statement in
it:

--------------------------------------------------------------------------
package org.codingkata.unit;

import org.codingkata.unit.api.BaseKataSolution;

public class MyKata extends BaseKataSolution {

// YOUR IMPLEMENTATION
}
--------------------------------------------------------------------------

just like the jython one:

--------------------------------------------------------------------------
from org.codingkata.unit.api import BaseKataSolution;

class MyKata(BaseKataSolution):

# YOUR IMPLEMENTATION
--------------------------------------------------------------------------

or am I still missing the point?


On Mar 8, 2:53 pm, Aleksandr Motsjonov <sos...@gmail.com> wrote:
> When I do first maven script for Jython I get only class statement with
> comment about unimplemented methods.
>

Jevgeni Holodkov

unread,
Mar 9, 2010, 5:14:52 AM3/9/10
to codin...@googlegroups.com
Hi, in case of Java - you can copy-paste the method signature from the task. For other languages (such as clojure), the correct signature is not always very obvious (at least for the beggining).

Wbr,
Jevgeni Holodkov

Aleksandr Motsjonov

unread,
Mar 9, 2010, 5:22:43 AM3/9/10
to codin...@googlegroups.com
Ok. You Right. But in Java I have nice IDE feature like "add unimplemented method" which I forgot about. But My proposal is stay anyway. It's nice to have method skeleton out there already =)

On Tue, Mar 9, 2010 at 12:12 PM, stephanos <stephan...@googlemail.com> wrote:

stephanos

unread,
Mar 10, 2010, 5:00:23 AM3/10/10
to coding kata
Yeah - I see the point. Unfortunately I couldn't come up with a better
solution - because when I would have to explicitly define the
interface for each kata in language, it would result in 5x more
artifacts to create & maintain.
Just look at it as an additional challenge - for free *g*

PS: Netbeans has a Python/Jython plugin - maybe it could help:
http://netbeans.org/features/python/

Cheers,
stephanos


On Mar 9, 11:22 am, Aleksandr Motsjonov <sos...@gmail.com> wrote:
> Ok. You Right. But in Java I have nice IDE feature like "add unimplemented
> method" which I forgot about. But My proposal is stay anyway. It's nice to
> have method skeleton out there already =)
>

Reply all
Reply to author
Forward
0 new messages