Should I refactor someone elses code?
Table of Contents
Should I refactor someone elses code?
If the file you are currently editing as a different style than the rest of the codebase, re-style it if there’s no risk of adding changes and it’s a small file or it’s agreed with your team. If not, then leave it alone, and keep your changes consistent with this file’s style.
Should I rewrite my code?
There is no good reason to rewrite working code. However, if you are already fixing a bug, there is no reason you can’t rework that specific part of the code with a “better” design. Basically never. As Joel points out: you’ll simply lose too much doing it from scratch.
What does rewriting code mean?
A rewrite in computer programming is the act or result of re-implementing a large portion of existing functionality without re-use of its source code. When the rewrite is not using existing code at all, it is common to speak of a rewrite from scratch.
What is the hardest part about supporting someone else’s code?
Working with someone else’s code The challenge: Trying to understand how a piece of legacy code works and divine the intentions of the original developer. This is even harder when that developer isn’t around and the code is poorly written, commented or documented.
Which of the following referred to using the existing code instead of rewriting it?
Code reuse is the practice of using existing code for a new function or software.
How do you rewrite a code?
To rewrite an application, you need an experienced development team that can understand and interpret the existing software logic and then rewrite them in a new legacy system. You also need to translate your data and databases according to the new code base. After that, there will be a lengthy user testing process.
What are the advantages or disadvantages of refactoring code?
Maintainability: After refactoring, the code is fresher, easier to understand or read, less complex and easier to maintain. Disadvantages of Code Refactoring: Time Consuming: You may have no idea how much time it may take to complete the process. It may also land you into a situation where you have no idea where to go.