While there are many excellent articles online discussing the differences between the two, the bottom line is that you want to choose the GPL if you want your code to only be used in open source software and you want to use the BSD if you want everyone including businesses that make proprietary software to be able to use your code.