What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Refract vs Refactor - What's the difference?

refract | refactor |

As verbs the difference between refract and refactor

is that refract is to change direction as a result of entering a different medium while refactor is to rewrite existing source code in order to improve its readability, reusability or structure without affecting its meaning or behaviour.

refract

English

Verb

(en verb)
  • (of light) To change direction as a result of entering a different medium
  • (optics) To cause (light) to change direction as a result of entering a different medium.
  • A prism can refract light.

    Derived terms

    * refracting

    See also

    * reflect

    Anagrams

    *

    refactor

    English

    Verb

    (refactoring) (en verb)
  • (computing) To rewrite existing source code in order to improve its readability, reusability or structure without affecting its meaning or behaviour.
  • The code works, but I must refactor it before it is production quality.
  • (writing) To rewrite existing text in order to improve its readability, reusability or structure without intentionally affecting its meaning. Similar to, but sometimes involving more extensive restructuring than, copy editing.
  • Two significant activities which to contribute to community projects, such as Wikipedia, are to refactor''' complicated articles into simpler ones, and to '''refactor duplicated content into reusable templates.