I honestly think finance is overall a worse deal, I used to think it was the panacea of making money. There is the chance that you can make 600 - 800k in finance as a senior developer, but you need to either be incredibly intelligent or incredibly hard working, generally you need an ivy league degree.
A year or so ago I received an offer from a well known quant hedge fund, I spoke to a google recruiter to see if they could match, to my surprise right there on the phone he told me they never get beat out and that they would beat the offer by 50k.
The hours are much better in tech, you get treated better, and at Facebook/Google/Amazon/other big tech firm you have less variance in pay.