Charles Dickens worked in a blacking factory as a child, where he endured harsh and squalid conditions. He worked long hours in a dirty environment, which left a lasting impact on him and influenced much of his writing later in life, particularly in depicting the struggles of the poor and working class.