On 11/03/2016 07:45 AM, Ethan Furman wrote:
On 11/03/2016 01:50 AM, teppo.p...@gmail.com wrote:
The guide is written in c++ in mind, yet the concepts stands for any
programming language really. Read it through and think about it. If
you come back to this topic and say: "yeah, but it's c++", then you
haven't understood it.
The ideas (loose coupling, easy testing) are certainly applicable in Python --
the specific methods talked about in that paper, however, are not.
Speaking specifically about the gyrations needed for the sole purpose of
testing.
The paper had a lot of good things to say about decoupling, and in that light
if the class in question should work with any Queue, then it should be passed
in -- however, if it's an implementation detail, then it shouldn't.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list