Hacker News new | ask | show | jobs
by erikwiffin 6008 days ago
I like it, and see a lot of uses for RCapture during the debugging stage. However, I can't think of a situation off the top of my head where it would be preferable to add a hook to a method rather than change the method itself. As the creator, I'm assuming you had some use cases in mind?
1 comments

Well, yes: decoupling concerns and common aspects of methods. Adding logging to third party libraries for instance. Another one was custom profiling and statistics. You might find your very own use cases by having a look at the examples.

Christoph