Rewriting a bash script in python
digitig at gmail.com
Thu Nov 6 02:12:40 CET 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.
More information about the Python-list