Re: [Tutor] IDEs

2010-11-24 Thread Alan Gauld
"Steven D'Aprano" wrote And we still wound up with over 50 reported bugs during Beta test... But that was much better than the 2000 bugs on an earlier project :-) But testing is hard. Maybe so, but nothing beats running your test suite and seeing everything pass! Yes, I should have adde

Re: [Tutor] IDEs

2010-11-24 Thread Steven D'Aprano
Alan Gauld wrote: The basic idea in testing is to try to break your code. Try to think of every kind of evil input that could possibly come along and see if your code survives. In amongst all of that you should have a some valid values too, and know what to expect as out put. Testing is more t

Re: [Tutor] IDEs

2010-11-24 Thread Josep M. Fontana
Great. Thanks Eike and Alan. Josep M. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] IDEs

2010-11-23 Thread Mac Ryan
On Wed, 24 Nov 2010 01:15:48 - "Alan Gauld" wrote: > In a recent project that we > completed we had 600k lines of production code and over a > million lines of test code. > > And we still wound up with over 50 reported bugs during Beta test... > But that was much better than the 2000 bugs on

Re: [Tutor] IDEs

2010-11-23 Thread Alan Gauld
"Josep M. Fontana" wrote Also, I'm a big believer in test-driven development. I must admit though I'm Does anybody know of any good reference on testing? How do you develop tests for functions? The basic idea in testing is to try to break your code. Try to think of every kind of evil inpu

Re: [Tutor] IDEs

2010-11-23 Thread Mac Ryan
On Tue, 23 Nov 2010 15:02:27 +0100 "Josep M. Fontana" wrote: > Does anybody know of any good reference on testing? How do you develop > tests for functions? I haven't found much information on this in the > Python books I own. When I first learnt python I found the "Dive into Python" section of

Re: [Tutor] IDEs

2010-11-23 Thread Eike Welk
On Tuesday 23.11.2010 15:02:27 Josep M. Fontana wrote: > Does anybody know of any good reference on testing? How do you develop > tests for functions? I haven't found much information on this in the > Python books I own. The basic idea is to call your function with known inputs, and test if it ha

Re: [Tutor] IDEs

2010-11-23 Thread Josep M. Fontana
Hi Steven, > Also, I'm a big believer in test-driven development. I must admit though I'm > not so pedantic to write the tests first, but for anything except > quick-and-dirty scripts, I make sure that *every* function in my program, > without exception, has a test to ensure that it works correctl

Re: [Tutor] IDEs

2010-11-23 Thread Josep M. Fontana
Great. Thanks Marc, Steven and Alan for the enlightening answers. I will certainly take your advice into account. I work in many different computers and while I do most of my coding (sounds as if I did a lot of coding, but I don't) on my desktop computer at home I wanted to start doing it on my la

Re: [Tutor] IDEs

2010-11-22 Thread Alan Gauld
"Josep M. Fontana" wrote Don;t run your code inside the IDE except for testing. IDEs are Development Environments, they are not ideal for executing production code. Run your file from the Terminal command prompt directly. I thought the code was not run inside the IDE but it was run by Pyth

Re: [Tutor] IDEs

2010-11-22 Thread Steven D'Aprano
Josep M. Fontana wrote: Don;t run your code inside the IDE except for testing. IDEs are Development Environments, they are not ideal for executing production code. Run your file from the Terminal command prompt directly. I thought the code was not run inside the IDE but it was run by Python in

Re: [Tutor] IDEs

2010-11-22 Thread Marc Tompkins
On Mon, Nov 22, 2010 at 1:13 AM, Josep M. Fontana wrote: > Alan gave me this piece of advice in his response to another message I > sent to the list. Since the topic is a bit different from the one in > the original message, I think it is better to start a different > thread. > > > Don;t run your

Re: [Tutor] IDEs

2005-09-20 Thread Cedric BRINER
what about eric3 ? http://www.die-offenbachs.de/detlev/eric3.html Ced. -- Cedric BRINER Geneva - Switzerland ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] IDEs

2005-09-14 Thread Alan G
>> with the open source NetBeans IDE. It would be nice if someone >> modified it to work with Python! :-) > > How about Jython? See https://coyote.dev.java.net/ My work is done for me! I was seriously looking at wring a plug in to support Jython because I couldn't see one listed on the official p

Re: [Tutor] IDEs

2005-09-14 Thread Jorge Godoy
Tim Johnson <[EMAIL PROTECTED]> writes: > And with Xemacs you can even have bitmaps for your backgroud, but > of course that can be distracting, if you are (for instance) coding > over the top of Mariah Carey. On the other hand, it will be easy (?) to find bugs on her nipples... ;-) --

Re: [Tutor] IDEs

2005-09-14 Thread Tim Johnson
* Alan G <[EMAIL PROTECTED]> [050914 09:21]: > > For Windows, the finest Shareware edit IMHO is Boxer. > > Editor religious wars are nearly as bad as programming > language wars but I can't resist. ERWs are a misdirection of energy IMHO. Talking about editors and languages *is* a g

Re: [Tutor] IDEs

2005-09-14 Thread Kent Johnson
Alan G wrote: > PS I'm playing with JSP at the moment and am very impressed > with the open source NetBeans IDE. It would be nice if someone > modified it to work with Python! :-) How about Jython? See https://coyote.dev.java.net/ Kent ___ Tutor mail

Re: [Tutor] IDEs

2005-09-14 Thread Alan G
> For Windows, the finest Shareware edit IMHO is Boxer. Editor religious wars are nearly as bad as programming language wars but I can't resist. My favourite windows editor these days is gvim. I've never got round to adding the python scripting feature, mainly because I try not to customize i

Re: [Tutor] IDEs

2005-09-14 Thread nephish
Matt Williams wrote: >I've used both PyDev and Wing IDE. > >PyDev seems good, and is getting better. >Wing is pay-for (although only $40 or so), but can be trialled. I thought >it was good, but had a huge problem trying to get it to play with a C library >I was using... > >I've never managed to g

Re: [Tutor] IDEs

2005-09-14 Thread Tim Johnson
* Matt Williams <[EMAIL PROTECTED]> [050914 07:27]: > I've used both PyDev and Wing IDE. > > PyDev seems good, and is getting better. > Wing is pay-for (although only $40 or so), but can be trialled. I thought > it was good, but had a huge problem trying to get it to play with a C library > I was

Re: [Tutor] IDEs

2005-09-14 Thread Matt Williams
I've used both PyDev and Wing IDE. PyDev seems good, and is getting better. Wing is pay-for (although only $40 or so), but can be trialled. I thought it was good, but had a huge problem trying to get it to play with a C library I was using... I've never managed to get Boa-Constructor to run...