Nice post 👍 I think you've got a small mistake on your first "class LoggingAddService". It doesn't use the inner for doing the add.
Yes, of course - thanks for spotting it! Fixed.
Glad I could help. I enjoyed reading this post. This kind of thing is the reason I created: github.com/meadsteve/lagom. Although I've not settled on a pattern for dealing automatically with decorators like in your example.
Thanks! lagom looks cool -- I'll check it out! And what a great name for a project!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice post 👍 I think you've got a small mistake on your first "class LoggingAddService". It doesn't use the inner for doing the add.
Yes, of course - thanks for spotting it! Fixed.
Glad I could help. I enjoyed reading this post. This kind of thing is the reason I created: github.com/meadsteve/lagom. Although I've not settled on a pattern for dealing automatically with decorators like in your example.
Thanks! lagom looks cool -- I'll check it out! And what a great name for a project!