AONW 2017
Notes from the AONW 2017 conference
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
Full details at:
https://jbazuzicode.blogspot.com/2017/02/safely-extract-method-in-any-c-code.html
-Jay Bazuzi
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment