My advice to people who want to work in a startup is always very simple: Ignore any equity. If you'd take the job without any equity then take the job. If the equity is part of your reason for taking the job, you probably shouldn't take it. Base rate neglect[1] means we are terrible at evaluating the probability of equity being valuable. For every story about someone making millions out of their equity when the start…
I know you're not being serious about the bank thing, but I just want to say, if you're a programmer and you love what you do, and you're good enough to be choosy, don't work for anyone (especially banks!) whose main job is not software. There are a few exceptional companies, but mostly it's a good rule of thumb. Working for Dilbert's pointy haired boss is just not a recipe for happiness - who cares if it pays well.…
Plenty of non-software companies can live or die on the quality of their algorithms. It could be a small development team but it can be challenging and rewarding. Plus it will give you a bigger perspective.
The key is to work somewhere that you are valued.