Dude...you lived in Bayview? Of course you found it filthy! It's one of the worst neighborhoods in the city. SOMA is marginally better, but still pretty grungy and industrial.
I don't know why you think Noe Valley is covered in poo, though. Noe Valley seems no more or less filthy than the nicer areas of the Castro.