Question

  • Creator
    Topic
  • #4010284

    How to do automatic code refactoring instead of manual?

    by DanielQuiz167898767 ·

    I write projects for a company, the projects are similar, but because of the identical application code, I have to rewrite, refactor.
    Takes a lot of time manually
    If there are proven services, I will be grateful
    Thank you !

You are posting a reply to: How to do automatic code refactoring instead of manual?

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #4010295
      Avatar photo

      Why the rewrite?

      by rproffitt ·

      In reply to How to do automatic code refactoring instead of manual?

      We NEVER rewrite or refactor without a good reason. The code is working so we don’t fix it.

    • #4017972

      Reply To: How to do automatic code refactoring instead of manual?

      by Johnharper2020 ·

      In reply to How to do automatic code refactoring instead of manual?

      Automatic refactoring removes dead and redundant code without changing a system’s functionality and converts unstructured code into well-structured code and procedural code into object-oriented code.

    • #4018334

      How to carry out the process of automatic code refactoring?

      by Biz4SolutionsPvtLtd ·

      In reply to How to do automatic code refactoring instead of manual?

      Automatic code refactoring refers to the process of employing a program or a tool for making changes in the existing code while keeping its functionality intact. Code modifications are necessary when you need to improve the readability or structure of the code. Check out the options for carrying out the process of automatic code refactoring.
      Today, several IDEs offer built-in tools for auto-code refactoring. Common examples of such tools are IntelliJ IDEA’s “Code” menu, Visual Studio’s “Refactor” menu, etc. Coming to standalone tools, there’s the “Rascal” tool that is language agonistic and the Facebook-created “Codemod” automation tool. “Codemod” is an open-source tool written in Python and can be used to refactor large-scale codebases.
      If you need code refactoring for a specific requirement that is not supported by any of the refactoring tools available in the market, you can write customized programs for this purpose.
      However, you need to note that code refactoring is a complicated process and for certain use cases it may not be possible to entirely automate the code refactoring process. In such scenarios, partial human intervention is needed along with automated code refactoring.

Viewing 2 reply threads