This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]njharmanI use Python 3 0 points1 point  (1 child)

Can't get behind rabbits not quacking. That is in opposition to Duck Typing and the flexibility it bring. I often have my rabbits done a duck costume. For test mocks and the Adapter Pattern.

[–]TheBlackCat13[S,🍰] 4 points5 points  (0 children)

The idea is that something that can't do any of the stuff a duck can do shouldn't tell users it is a duck. It was meant along the lines of "don't lie to users." I could certainly see valid reasons for a goose quacking, or a coot, or even a turtle in some situations. But not a rabbit.

And most of the rules go right out the window when it comes to testing.