Benefits

Benefits

The benefits of using it and when to use it. The most important to take from this decorator is the purpose of using it. You should consider this decorator when writing any function that you believe is connected to the “subject” or the class that you are using but do not necessarily need that “subject” or class where you created the function. By doing this you can decouple the function itself, but still, keep it organized and with a clear meaning for which purpose can be used. From now on, any piece of code that you want to be reusable, but, at the same time you want to make it clear the “meaning” of when or how it could be used you should consider using this decorator.