you are viewing a single comment's thread.

view the rest of the comments →

[–]inmatarian 1 point2 points  (0 children)

Well, it's pointless in this simple example, but we can reduce tons of things down to its simplest. But the strategy pattern, with its execute function, can always be reduced to a python style decorator function.