Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Code refactoring
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Timing and responsibility== There are two possible times for refactoring. # Preventive refactoring β the original developer of the code makes the code more robust when it is still free of [[Code smell|smells]] to prevent the formation of smells in the future.<ref name="fraivert2022"> {{Cite conference |last1=Fraivert|first1=Dov |last2=Lorenz|first2=David H. |title=Language Support for Refactorability Decay Prevention |date=2022 |book-title=Proceedings of the 21st ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences |pages=122β134 |doi=10.1145/3564719.3568688 |isbn=978-1-4503-9920-3 }}</ref> # Corrective refactoring β a subsequent developer performs refactoring to correct [[code smell]]s as they occur.<ref name="fraivert2022" /> A method that balances preventive and corrective refactoring is "shared responsibility for refactoring". This approach splits the refactoring action into two stages and two roles. The original developer of the code just prepares the code for refactoring, and when the [[code smell]]s form, a subsequent developer carries out the actual refactoring action.<ref name="fraivert2022" />
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)