Re: seeking to improve Python skills

2009-01-25 Thread Aahz
In article , mk wrote: > >However, unit tests are a tougher cookie, do you have any resource >that's truly worth recommending for learning unit tests? Start with the doctest module. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ Weinberg's Second Law: If bui

Re: seeking to improve Python skills

2009-01-23 Thread Terry Reedy
mk wrote: Jean-Paul Calderone wrote: The most significant thing missing from this code is unit tests. Developing automated tests for your code will help you learn a lot. Thanks for all the remarks, I'll restructure my code. Probably the biggest mistake was not keeping "moving average" class

Re: seeking to improve Python skills

2009-01-23 Thread Scott David Daniels
mk wrote: Jean-Paul Calderone wrote: The most significant thing missing from this code is unit tests. Developing automated tests for your code will help you learn a lot. However, unit tests are a tougher cookie, do you have any resource that's truly worth recommending for learning unit test

Re: seeking to improve Python skills

2009-01-23 Thread Jean-Paul Calderone
On Fri, 23 Jan 2009 16:57:16 +0100, mk wrote: Jean-Paul Calderone wrote: The most significant thing missing from this code is unit tests. Developing automated tests for your code will help you learn a lot. Thanks for all the remarks, I'll restructure my code. Probably the biggest mistake wa

Re: seeking to improve Python skills

2009-01-23 Thread mk
Jean-Paul Calderone wrote: The most significant thing missing from this code is unit tests. Developing automated tests for your code will help you learn a lot. Thanks for all the remarks, I'll restructure my code. Probably the biggest mistake was not keeping "moving average" class and others

Re: seeking to improve Python skills

2009-01-23 Thread Jean-Paul Calderone
On Fri, 23 Jan 2009 12:17:41 +0100, mk wrote: Hello everyone, I wrote the following program mainly for educational purpose of improving my Python programming skills -- would Pythonistas here please look at it and point out areas that could use improvement? This thing analyzes the stored loa

seeking to improve Python skills

2009-01-23 Thread mk
Hello everyone, I wrote the following program mainly for educational purpose of improving my Python programming skills -- would Pythonistas here please look at it and point out areas that could use improvement? This thing analyzes the stored load average record file, calculates simple moving