COBOL developers did just fine, you may not get to work in the new hot tech but there is a huge market for aging entrenched technologies. You average Java developer is late 30's to 40's and it's not uncommon to see whole teams of 40 something developers in a java shop. There is life outside the valley.