Jump to content

  • Log In with Google      Sign In   
  • Create Account

Poll: There's a big piece of code in need of a rewrite, do you create a new file and work from there, or refactor old code in old file?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
20 replies to this topic

Poll: Code Rewrite (38 member(s) have cast votes)

A large piece of code requires a rewrite, where do you start?

  1. Create blank file, and start from there. (12 votes [31.58%] - View)

    Percentage of vote: 31.58%

  2. Refactor code inside original file. (18 votes [47.37%] - View)

    Percentage of vote: 47.37%

  3. Do some copy/pasta, baby! (3 votes [7.89%] - View)

    Percentage of vote: 7.89%

  4. Other. (5 votes [13.16%] - View)

    Percentage of vote: 13.16%

Vote Guests cannot vote

#21 phantom   Moderators   -  Reputation: 7558

Like
0Likes
Like

Posted 14 October 2012 - 05:29 PM

If it's really big I would probably create a branch specifically for that refactor job.


At work I make a point of having two active branches I can swap between at will; when combined with Perforce's 'shelve' feature it makes working on large changes pretty simple.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS