I've met plenty of older developers that refused to adapt and keep learning. On the other hand, the best developers I've known have all been older. It's not about the skills you acquired at age X. It's about you attitude towards continual learning and improving, regardless of your age.