Read http://www.mrmoneymustache.com/2012/01/13/the-shockingly-sim... to see why, then start at http://www.mrmoneymustache.com/2013/02/22/getting-rich-from-...
For a programmer-oriented guide that talks a little about financial independence (and eventually a book with much more info): https://codewithoutrules.com/saneworkweek/
If you're a US citizen, consider finding a well paid hourly remote job, and move somewhere cheap. You can reduce your work hours to literally 1-2 per week, enough to sustain yourself. Europe is quite cheap if you avoid big cities, Switzerland, and Norway. Most of Asia is very cheap except Singapore and Japan. There's also Africa, South America, and a gazillion island nations.
If you have $5k and can live on $600/month, that's great. If you need $1k/month in expenses, then it's not great at all.
As soon as possible, you need to have enough saved to cover an unexpected, large expense (car/home repair, medical emergency, moving to a new place, etc.) and at least 6 months of living expenses. I personally have at least 12 months of living expenses at any given time.
%99 of the people are looking for: security, then comfort, then becoming rich
%1 of the people are looking to becoming rich, then comfort, then security
"Simply" re-order your priorities.