Joined June 2012
·

Nam Ngo

Python Developer at Kogan
·
Melbourne
·
·
·

Posted to Django Middleware-like design pattern over 1 year ago

Yes, decorators can do the same thing. But imagine stacking 10 decorators on top of the function + always having to remember to wrap them? This example allows you to: easily unit test your pipelines since they are broken down into small units + it's easy to plug a new pipeline if you want to extend the feature (manipulate data further).

Achievements
168 Karma
8,660 Total ProTip Views