Test you java with Jython, and non java code with python, and
see them as Junit Tests inside Eclipse. That accelerates your
dev process a lot if you use the ContinuousTesting plugin.
http://lauploix.blogspot.com/2005/03/test-driven-development-why-using.ht=
ml
Hope this helps. If not, sorry.
> Only by exercising the code you will find "silly" problems
as you call
> them, so try to unit test as much of your code and your
problem is gone.
>
> Regards
> RR
>
> > -----Original Message-----
> > From: jython-users-admin@...
> > [mailto:jython-users-admin@...] On Behalf
> > Of Todd Moyer
> > Sent: Thursday, March 24, 2005 9:49 PM
> > To: Edward Povazan
> > Cc: jython-users
> > Subject: Re: [Jython-users] PyLint type tools?
> >
> >
> >
> > You've got a point there, Edward. Coverage in interpreted
> > languages is
> > an issue. As an experiment you may want to try compiling
> > with jythonc
> > to see if that catches any of these.
> >
> > Cheers,
> > Todd Moyer
> >
> >
> > Edward Povazan wrote:
> >
> > > The problem is that sometimes an error is not found until
> > much later.
> > > For example in some GUI code I wrote, only when I dragged
> > in a specific
> > > way did an 'if' statement run, and then die because I
forgot 'self'.
> > >
> > > There seem to be so may tools for CPython, I am just
> > surprized not to
> > > see any for Jython. So I just want something to find most
> > of the silly
> > > errors in one pass, instead of having to run several
> > iterations of run,
> > > correct, run, correct. Maybe I have been using Java and an
> > IDE too long :)
> > >
> > > -Edward Povazan
> > >
> > >
> > > Todd Moyer wrote:
> > >
> > >>
> > >> I don't understand what a lint tool would buy you that the
> > >> interpreter/compiler doesn't already do for you. The
errors you
> > >> mention would be found very quickly by running the code.
> > And since
> > >> you can run it without compiling, the cost is near zero
in time or
> > >> bother.
> > >>
> > >> I've found a self test at the bottom of a class ("if
__name__ =3D=3D
> > >> '__main__':") is often worth the effort. Not only does it
> > provide a
> > >> quick unit test, but it's also a great place to document
> > some sample
> > >> usage while the rationale for the class is fresh in your
> > mind. At a
> > >> minimum, just instantiating the class gives a quick
syntax check.
> > >>
> > >> Cheers,
> > >> Todd Moyer
> > >>
> > >>
> > >> Edward Povazan wrote:
> > >>
> > >>> Hello,
> > >>>
> > >>> After a long break I started using Jython again. It is
a little
> > >>> frustrating - my code is more compact, cleaner, easier to
> > understand.
> > >>> However I am spending too much time when running things
> > correcting
> > >>> silly problems. The main ones are:
> > >>> -forgotten imports
> > >>> -forgotten self in self.instanceVarName
> > >>> -forgotten self in method def
> > >>> -accessing fields that don't exist
> > >>>
> > >>> After searching about, I still haven't found any tools to
> > help find
> > >>> these before I run the program. PyChecker is CPython
> > only, PyLint - I
> > >>> don't know about it, can't find much info about it.
> > >>>
> > >>> Are there any lint like tools for Jython? If not,
where would be a
> > >>> good place to start. I am guessing implementing a custom
> > Visitor.java.
> > >>>
> > >>> Thanks
> > >>> -Edward Povazan
> > >>>
> > >>>
> > >>> -------------------------------------------------------
> > >>> This SF.net email is sponsored by Microsoft Mobile &
> > Embedded DevCon
> > >>> 2005
> > >>> Attend MEDC 2005 May 9-12 in Vegas. Learn more about the
> > latest Windows
> > >>> Embedded(r) & Windows Mobile(tm) platforms, applications
> > & content.
> > >>> Register
> > >>> by 3/29 & save $300
> > >>> http://ads.osdn.com/?ad_id=3D6883&alloc_id=3D15149&op=3Dclick
> > >>> _______________________________________________
> > >>> Jython-users mailing list
> > >>> Jython-users@...
> > >>> https://lists.sourceforge.net/lists/listinfo/jython-users
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> -------------------------------------------------------
> > >> This SF.net email is sponsored by Microsoft Mobile &
> > Embedded DevCon
> > >> 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about
> > the latest
> > >> Windows
> > >> Embedded(r) & Windows Mobile(tm) platforms, applications &
> > content.
> > >> Register
> > >> by 3/29 & save $300
> > >> http://ads.osdn.com/?ad_id=3D6883&alloc_id=3D15149&op=3Dclick
> > >> _______________________________________________
> > >> Jython-users mailing list
> > >> Jython-users@...
> > >> https://lists.sourceforge.net/lists/listinfo/jython-users
> > >>
> > >>
> > >
> > >
> > > -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT Products
from real
> > > users. Discover which products truly live up to the
hype. Start
> > > reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> > > _______________________________________________
> > > Jython-users mailing list
> > > Jython-users@...
> > > https://lists.sourceforge.net/lists/listinfo/jython-users
> > >
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from
> > real users. Discover which products truly live up to the
> > hype. Start reading now.
> > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396> &op=3Dclick
> >
> > _______________________________________________
> >
> > Jython-users mailing list
> > Jython-users@...
> > https://lists.sourceforge.net/lists/listinfo/jython-users
> >
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
real users.
> Discover which products truly live up to the hype. Start
reading now.
> http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> _______________________________________________
> Jython-users mailing list
> Jython-users@...
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
Laurent Ploix
Manager
Cadextan
13 rue Auber
75009 Paris
France
+33 1 44 71 80 80
http://www.mappy.com/PlanPerso/86305/1
=0A=0AAcc=E9dez au courrier =E9lectronique de La Poste : http://www.laposte.net =
; =0A3615 LAPOSTENET (0,34=80/mn) ; t=E9l : 08 92 68 13 50 (0,34=80/mn)=0A=
=0A
|