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
 Refactoring - Extra Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wesley.olis
Junior Member

10 Posts

Posted - Feb 18 2014 :  05:15:52 AM  Show Profile  Reply with Quote
I would like to suggest that the extra method function be improved
so that more variation and personal touch can be achieved and great coding speed.

All of the parameters must be allowed to be cherry picked, their final re-factor action.

1. Ability to specify which parameters should be wrapped in a structure and passed as structure for readability and weather they should be pass by pointer, reference or value.

2. The ability to force variables that appear to have external scope to the current class method to be parameters in the extracted function and choose how they should be passed i.e by reference, value or pointer.

3. The ability to have the method extracted as a lambda function, so that their is no need at all for parameters to be wrapped up into a structure for readability.

Kinda Regards,

Wesley Oliver

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Feb 27 2014 :  4:12:20 PM  Show Profile  Reply with Quote
Point 1, we are looking to add more control to the parameters being passed via Extract Method:

case=78443

wrapping the parameters into a structure is a tempting idea, and we are considering adding the ability to do this independently of Extract Method:

case=78517

Point 2, I am not sure why you would want to do this. Can you explain what you are trying to achieve here? If this is a class member function, then accessing the class members directly is more normal. Or are you preparing to make this a free function, no longer a member of the class?

Point 3, we are considering adding the ability to extract the selected code as a Lambda function:

case=80567

zen is the art of being at one with the two'ness
Go to Top of Page

wesley.olis
Junior Member

10 Posts

Posted - Mar 04 2014 :  02:40:36 AM  Show Profile  Reply with Quote
Could I say a free function or one is trying to change the logic.
For example a member variable was previously used for generating the table name.
but now the code has been re-factored so the class member variable holding the name is no longer just used
and is now prefix and suffixed with some other information. Could have been wrapped up into a trial and error approach to
find the next unique table name using a suggestive name.

For lambda functions this would be import to decided what should be captured and what should be converted to
parameters.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Mar 06 2014 :  10:04:27 PM  Show Profile  Reply with Quote
We are considering adding the ability to have Extract Method generate a free function:

case=76113

Lambda functions are being discussed in this forum thread, where I am trying to learn enough about them to make sensible statements:

http://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=8255

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