Learning to code after a certain age is proving to be an uphill battle, not because of one's learning ability (nothing wrong with this brain), but the ageism, sexism (if you're a woman like me) and, most unfortunately, if one fall under certain other -people like you can't code- criterion.
Coding is a valuable skill, in my opinion, for anyone. Whether you learn for fun, to get a new job, or, like me what to start a new business, coding is good for the brain.