Spent the day refactoring. Refactoring is fun. Code gets better and cleaner.
Spent the day refactoring. Refactoring is fun. Code gets better and cleaner.
[ Wednesday, April 11th, 2007 — in Dailies — 2 comments ]
You may also like these other posts:
6,058 posts and 1,043 comments till now
— Powered by WordPress 6.8.5 —
In the field of software design, refactoring means reorganising existing code to make it more readable, without changing its behaviour. Externally the program does the same thing, but internally it’s all sparkling clean and polished.
A (not very good) non-software example would be this:
BEFORE:
(1 + (1 + 1 + 2) + 1 + 3) * ((1 + 1) + 2)
AFTER:
9 * 4
The end result of both is 36, but the second one is much clearer and easier to read.
Educate us – what’s refactoring?