Retired

AOP - Around (retired)

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

More By Author:

Check out these other kata created by mmaxwell

Stats:

CreatedJan 12, 2016
Warriors Trained46
Total Skips0
Total Code Submissions132
Total Times Completed16
JavaScript Completions16
Total Stars5
% of votes with a positive feedback rating36% of 7
Total "Very Satisfied" Votes2
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes4
Total Rank Assessments7
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • mmaxwell Avatar
  • ooflorent Avatar
Ad