im 29 yo. recently lose my job,
and thinking about use some of my saving money to school for programming, for the sake of not being homeless, but idk consider of my age, will it helps me in the future to survive if i have a degree on programming.
Programming is a great way to make money, even remotely, but it's very difficult. If you're interested and up for the challenge, going to school for programming (computer science) will help a lot in the future.
I think you could probably do it - You live in a country with good internet, good access to technology, etc.
If you can afford to go to school, I would recommend doing that. If you can't, try out Android app development: It's not easy, but if you put in a lot of work for a year or two, you can make pretty good money (once you start making a few apps, you'll be able to get 100k IDR/hour). Start with this tutorial installing Android Studio: https://www.youtube.com/watch?v=10IvxreBoIA
If you can get Android Studio installed, let me know, I'll find a good tutorial to help you write your first basic app.
Congrats, that's the kind of effort you'll need :). Try this tutorial next: It will walk you through creating your first couple of apps. Again, it's super hard and long, but if you can get through it you'll be in a great place to start thinking about your own apps, doing more advanced tutorials, and applying for jobs: https://www.youtube.com/watch?v=blXLGW5IuXU