Handle bar end weights

Sorry for being such a n00b but what's the idea behind these? Are they just for show or do they make a difference??? :-/