Do not forget that being a programmer, you already have the ability to create electronic products people will pay for. Consider learning Swift/Kotlin and making a paid, subscription-based mobile app. Consider learning Go/Rust/TypeScript and making a paid, subscription-based SaaS. (Those are tough markets right now, so you will need good "find-a-customer-pain-point" product design knowledge, first.)
Consider learning a niche programming language such as Scala or Haskell or consider a career as a programming educator or a technical writer; those lower-paid niches are way less competitive than the higher-paid programming mainstream.
You are a programmer. You do have and will continue to have options, until you're over 70 years old.
Consider learning a niche programming language such as Scala or Haskell or consider a career as a programming educator or a technical writer; those lower-paid niches are way less competitive than the higher-paid programming mainstream.
You are a programmer. You do have and will continue to have options, until you're over 70 years old.