As long as you have the funds, say from a well-paying technology job, you should be able to manage your habit. I discussed this in another thread previously (see the comment history for this throwaway account) and pointed out that I have had both a reasonable career and an unreasonable addiction for twenty years. Of course, the career trajectory probably suffered due to my habit, although that could be laid at the feet of a badly judged brief interlude with crack cocaine rather than heroin ;)