Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Extract Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ceretullis
New Member

3 Posts

Posted - Feb 01 2013 :  10:31:13 AM  Show Profile  Reply with Quote
Love the extract method refactoring... currently I can extract method (and get the method in the class header), or I can extract method and choose "to source" and get the method in the class body.

It would be awesome if there was an option to extract method to an anonymous namespace in the source file.

We practice clean code techniques and end up with many small functions. An approach that we use to help keep classes from function bloat is to move small utility functions (that don't have high cohesion with the class invariant) to anonymous name spaces in the source file.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Feb 01 2013 :  8:56:29 PM  Show Profile  Reply with Quote
Picking a target namespace is a bit to specialised for the Extract Method dialog, since we try to keep our refactoring dialogs simple and focussed. Are you aware that you can use VA Outline to quickly and easy "cut and paste" or "drag and drop" to move one or more functions into an existing namespace in the current file? This should help here:

http://www.wholetomato.com/products/features/vaoutline.asp

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000