Rewriting a bash script in python

Tim Rowe digitig at gmail.com
Wed Nov 5 20:12:40 EST 2008


2008/11/6 Chris Jones <cjns1989 at gmail.com>:

> Begs the question .. how do I tell what is an object-oriented vs. a
> procedural problem?

Practice, largely, so you're doing the right thing (provided you don't
trust your /real/ backup data to a tutorial program). If you find that
the program is at its neatest when it's just a couple of methods in
one class, it was a procedural problem.

Actually, from your description of the problem -- that the interest is
in all the "what if" cases -- suggests that it's a specification
problem rather than a design or implementation problem, so rather than
recoding it it might be worth looking at various approaches to
requirements capture and specification.

-- 
Tim Rowe



More information about the Python-list mailing list