Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 86519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:15:32+00:00 2026-05-10T22:15:32+00:00

When do you know it’s time to refactor/review some piece of code ? And

  • 0

When do you know it’s time to refactor/review some piece of code ? And better yet, when do you do it?

Probably like others, I’ve found myself knowing that something needs a refactor/review but deadlines and management left no time for that. I’d also like to hear how you include code review in the general development process.

Lately I’ve found myself doing it before working on new features/code. For example, if I have to develop something new or change something in module X of an application, I do a code review on that module. I found it also helps me understand the module better so I can then make the changes more easily.

So when do you know it’s time and when do you do it? And most of all how do you include it in the planning of a project?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:15:32+00:00Added an answer on May 10, 2026 at 10:15 pm

    I tend to see either ‘code smells’ like I’m repeating the same code over and over again or I see something that makes me think, ‘There has to be a better way to do this and I will go find it.’ It is part of how I write code and think it is somewhat of a good thing to have good code that may take a little longer to complete but that is much more easily scalable, maintainable, or have someone else take it and not have to spend days figuring out what I was doing in the code.

    If you’re inheriting code, then I tend to think there are 2 schools of thought on what to do with it:

    1) Keep your distance. This is where you make the required changes to get the feature in and don’t do anymore. If you know the module will be replaced soon or you only work on this once or twice a year, then I can see the logic in not wanting to spend lots of time fixing it.

    2) Immerse yourself and fix it now. If what you doing is fairly extensive changes or is a piece of code that you’ll be working with regularly, then it may be viewed as part of the maintenance to do some refactoring or documentation or however you’d want to describe where bad code is turned into not so bad code as this will save you time later on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer try http://www.phpguru.org/static/mime.mail.html May 12, 2026 at 1:15 am
  • Editorial Team
    Editorial Team added an answer There just isn't any. All three of those are literally… May 12, 2026 at 1:15 am
  • Editorial Team
    Editorial Team added an answer If it's just between two devices connected via Bluetooth then… May 12, 2026 at 1:15 am

Related Questions

When do you know it's time to refactor/review some piece of code ? And
G'day, While having a think about this question here about overdesigning for possible future
With CPUs being increasingly faster, hard disks spinning, bits flying around so quickly, network
Hey, I've built a project over the course of a year. I've put in
I recently answered a question with a proposition that the asker should improve his

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.