The 8īs in the 380 and 787 are both influenced by the "....in many Asian cultures the number 8 represents good luck and prosperity..." itīs a big upcoming market so why not try to make the asians happy.
When you think of it, boeing only had the 8 and 9 to choose from, since the last newly designed aircraft was the 777 the 787 designation would be the obvious choice.