-
January 26th, 2022, 08:36 AM
#1
"Embedding a method" refactoring method
Somebody put me a question: when should we apply refactoring method: Embedding a method. I have done a search on internet about this refactoring method, but I didn't find something clear. Can you tell me (or redirect me) about this ?
Thank you.
-
January 27th, 2022, 04:16 AM
#2
Re: "Embedding a method" refactoring method
I never heard about "Embedding a method" nor about "refactoring method".
What type of "method" is here meant ? A Class method, a mathematical/physical/... method?
What does it have to do with the Visual C++ Programming Forum:
Forum: Visual C++ Programming
Ask questions about Windows programming with Visual C++ and help others by answering their questions.
Victor Nijegorodov
-
January 27th, 2022, 05:18 AM
#3
Re: "Embedding a method" refactoring method
Originally Posted by mesajflaviu
Can you tell me (or redirect me) about this ?
Embedding usually means that something is made part of some larger structure. And since the term "method" is predominantly used in object orientation, the larger structures in question could be the OO design patterns,
https://en.wikipedia.org/wiki/Design_Patterns
It's a wild guess, but why not?
Or, when I think about it, the larger structure may very well be the class. Say you refactor procedural code by utilizing the class concept. Then free functions will be embedded as methods in classes. So, "when we introduce OO" is one possible answer to the question that was put to you.
Last edited by wolle; January 27th, 2022 at 06:38 AM.
-
October 3rd, 2022, 08:00 AM
#4
Re: "Embedding a method" refactoring method
I am really sorry for this late response, thank you all, I'll take a note and I hope to solve the issue.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|