Halflings are about the only race in my campaign that don't really have a home. They're travelers, trading goods and fixing things (they're especially good at fine repairs). When they do settle in cities, they're most likely to take up residence in nooks and crannies. Not necessarily in "poor" sections, but in attics of grand homes, small rooms in odd spaces of buildings or between other buildings and so on.
In addition, they have very unique view of the gods. Yondalla is the mother of countless gods, minor gods seemingly without number. For every niche, there is a god. To non-halflings, halflings just make up gods as they go along.
Gnomes on the other hand tend to be tinker gnomes, always creating and tweaking their inventions. As a long lived race, they find joy in finding new and unique solutions. Often combining magic and technology, the point is not necessarily to improve but to think outside the box.
On a related note, goblins and gnomes are distant cousins, both descended from fey proto-goblins*. In the far distant past when they were forced out of the feywild, those with dark hearts that were bitter because of their eviction chose to follow Maglubiyet while those with hope chose Garl Glittergold.
*There are still proto-goblins in the feywild, effectively they're like Harry Potter goblins.