Thursday, February 9, 2017

Refactoring in C++

How to Extract Method:

- Introduce Lambda, by wrapping with [&]() { ... }(); 
- Introduce Variable
- Set return type
- capture locals explicitly
- convert captures to parameters, by reference
- convert lambda to named function


-Jay Bazuzi

No comments:

Post a Comment