Do you have money saved for a six month emergency fund? If not, put this money in a bank account.
If you do have an emergency fund: don't ask on Hacker News, they'll tell you to do crazy stuff like buy Bitcoin. Head over to http://bogleheads.org/, or just read the extensive wiki.
There are a lot of suggestions but you haven't provided enough information to make a solid recommendation.
What rings out for me, is why do you only have 1k to invest? There could be a lot of reasons ranging from living in a low income country to having been recently divorced.
How old are you? What is the ultimate purpose of the money? Is it for retirement in 40 years time, or to buy a car next year?
Are you likely to have more $1k's in the future to invest. Is it cash in the bank or coming from your salary this year.
What country do you live in. What is your tax bracket?
Can developing your skills earn you more money?
Do you have debt? Is is tax deductible? High interest?
Do you like to gamble on a long term payout (maybe a cryptocurrency would be good) or would you really HATE losing that money at any cost (perhaps a savings account).
Etc.
As a general recommendation, if you don't know what to do with $1k - keep it in a savings account (or offset your mortgage if you have one) until you know what to do.
Put $300 toward the administrative cost of opening an LLC or your local equivalent. Put the remaining $700 into a bank account for the LLC.
Use that money to buy hosting, domains, etc. for side projects. Try to build something that makes money, but don’t worry too much about that. Just having the administrative structure ready will make it much easier for you to find productive ways to spend free time. That could mean freelancing or building side projects. The important thing is that once you’ve got the LLC you can just focus on code, and you have a legal umbrella under which you can release any new projects you decide to build.
Keep it in the bank for now and spend some time reading r/personalfinance, starting with the wiki.
Once you evaluate your current situation, which some of these questions others have asked or alluded too, the general strategy for how to optimize savings is pretty easy. Everything else is just how much risk you're willing to incur for potentially greater returns.
Educate yourself about the stock market, it will take much less money and will help you in the long run... who knows you might even get really interestedly and could change your life... I am building stock trading robots and it really gave me my freedom and the FY money everyone should have to be able to pursue their dreams...
In one of your previous post you mentioned using python. May I know your roadmap of learning the python and using it? Not asking you to divulge your trading strategy.
I am not a developer, so maybe there is a better way, mine was to look into examples provided by the API providers... For sure my code is messy and not optimal, but it works and that is what matters to me...
Since many with more knowledge than I are saying the stock market is overvalued and Bitcoin is vapor based I'll offer you invest in something you can add value to and resell or keep for your pleasure.
If you want to be safe buy 4 $SPY you'll have to go a little over a grand as they are at $265. Historically very few assets beat it over a given 25 year period. For some fun buy Litecoin or 10 NVDA Jan 12 2018 217.5 calls.
If you do have an emergency fund: don't ask on Hacker News, they'll tell you to do crazy stuff like buy Bitcoin. Head over to http://bogleheads.org/, or just read the extensive wiki.