Retired
AOP - Around (retired)
16mmaxwell
Description:
Aspect-oriented programming (AOP
) is programming that adds additional behavior (advice
) to existing functionality without actually modifying that functionality.
Create a method called adviseAround
. This method will take two arguments, a function (target
), and the advising function (advice
).
adviseAround
should return a function that when executed, will be passed the original method that may be executed with the following conditions:
- The advising function should return a function.
- The arguments that are passed to the function that
adviseAround
returns should be passed to the function that the advising function returns. - The value returned by the advising function's function should be the final returned value.
Algorithms
Similar Kata:
Stats:
Created | Jan 12, 2016 |
Warriors Trained | 46 |
Total Skips | 0 |
Total Code Submissions | 132 |
Total Times Completed | 16 |
JavaScript Completions | 16 |
Total Stars | 5 |
% of votes with a positive feedback rating | 36% of 7 |
Total "Very Satisfied" Votes | 2 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 7 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |