views:

287

answers:

2

I see the term "dirty" or "dirty objects" a lot in programming.
What does this mean?

+15  A: 

A dirty object is an object that has changed in its content, but this content has not been synchronized back into the database/disk. It's a typical situation of desynchronization between a cache and a storage.

Stefano Borini
+3  A: 

"Programming dirty" as you quote it, also means that you use a "quick and dirty" method for solving a problem, usually to stay within time constraints, and hoping to fix it later.

Programming dirty is often used with prototyping (i.e., a mini=-program that shows the principles of a later-to-be-built larger program), where it is needed to show something quickly, but your code is not meant to last.

EDIT: original question was edited largely and doesn't fit this answer anymore

Abel