Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactoring - Extra Method

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
wesley.olis Posted - Feb 18 2014 : 05:15:52 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 06 2014 : 10:04:27 PM
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
wesley.olis Posted - Mar 04 2014 : 02:40:36 AM
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.
feline Posted - Feb 27 2014 : 4:12:20 PM
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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000