Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Discussion Post # 2 : Code Refactoring 1 6 1 6 unread replies . 1 6 1 6 replies. Code refactoring is the process of

Discussion Post #2: Code Refactoring
1616 unread replies.1616 replies.
Code refactoring is the process of restructuring existing computer codechanging the factoringLinks to an external site.without changing its external behavior. Refactoring improves nonfunctionalLinks to an external site. attributes of the softwareLinks to an external site.. Advantages include improved code readabilityLinks to an external site. and reduced complexityLinks to an external site.; these can improve source-codeLinks to an external site. maintainabilityLinks to an external site. and create a more expressive internal architectureLinks to an external site. or object modelLinks to an external site. to improve extensibilityLinks to an external site.. Typically, refactoring applies a series of standardized basic micro-refactorings, each of which is (usually) a tiny change in a computer programLinks to an external site.'s source code that either preserves the behavior of the software, or at least does not modify its conformance to functional requirementsLinks to an external site.. Many development environmentsLinks to an external site. provide automated support for performing the mechanical aspects of these basic refactorings. If done extremely well, code refactoring may also resolve hidden, dormant, or undiscovered computer bugsLinks to an external site. or vulnerabilitiesLinks to an external site. in the system by simplifying the underlying logic and eliminating unnecessary levels of complexity. If done poorly it may fail the requirement that external functionality not be changed, introduce new bugs, or both. - Wikipedia, 2017
Discuss how generalization-specialization (gen-spec) can be used to refactor code. In your post, addressing the following questions:
How do class hierarchies, interfaces and abstract classes impact code complexity?
How does overloading and overriding contribute to cleaner code?
How does code refactoring differ from code re-engineering?
Be sure to reply to at least two other student posts.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

Compare levels of resolution in conflict outcomes?

Answered: 1 week ago

Question

Strategies for Managing Conflict Conflict Outcomes?

Answered: 1 week ago