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

- 12,111
- 21
- 91
- 136

- 101,809
- 122
- 424
- 632
-
And meanwhile you reversed so the copied term is back again, tx :) – Abel Nov 17 '09 at 01:33
-
1yep, I saw the edit, I thought your answer could still be relevant. – Shimmy Weitzhandler Nov 17 '09 at 02:13
2 Answers
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.

- 138,652
- 96
- 297
- 431
EDIT: original question was phrased as I find a lot in "programming dirty"
, this answer attempts to address that. The accepted answer is about dirty objects
, which signifies changed status or content.
"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.

- 56,041
- 24
- 146
- 247