Both are beautiful cities: Naples is a gem but is indeed rough. There is more gold in that city than any other in tge world, which is rather ironic when one considers the poverty of the area.
Barcelona has the wonderful architecture of Gaudi's to embrace, as well as being by the sea.