- Refactoring
- Rewriting something so that it is written differently, but ultimately “means” the same thing. E.g. in Math, you can refactor x + xy to x( 1 + y ). These two statements (x+xy) and (x(1+y)) mean exactly the same thing mathematically, but they’re just written differently. e.g. 2 in programming, refactor is used more loosely. You can refactor a bunch of code which means you rewrite the code to do the same intended thing, but in a better way (more efficiently, or with more adherence to OOP principles, or rewrite it to remove bugs).
-
« Home
Pages
-
Categories
- books
- C C++
- C++
- cellphones
- computers
- corporate
- Cs
- d3d
- DirectX
- funny
- game
- graphics
- html
- interesting
- internets
- Java
- javascript
- job
- math
- microcontrollers
- misc
- movies
- music
- mysql
- opengl
- people
- php
- physics
- politics
- programming
- python
- relationships
- sales
- shell
- software
- survey
- tech
- Uncategorized
- windows
- writing
-
Archives
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
One Comment
Rewriting code to remove bugs isn’t refactoring because you’ve changed what the code does. Fixing bugs is fixing bugs, not refactoring. Refactoring doesn’t change the meaning of the code. There are some who claim that performance improvements are not refactoring either because you’ve changed the observed behavior. I don’t agree with that because the results are the same, you just got the results in a more efficient manner.