Recent years were a little different, because of the unemployment extensions, but I think that in most of the US, you'll earn substantially less than 50% of a programmer's salary on unemployment, possibly even less than 25% (http://www.savingtoinvest.com/2015-vs-2014-maximum-weekly-un...). Combined with a maximum time of 24 weeks, and I think severance wins out.