One would have to win the H-1B lottery (~25% odds), find a job in February/March/April of a year; find a company that is willing to wait for 6-8 months, and move to the U.S. in October (if they win the lottery).
In tech today (esp. in the Bay Area of NYC), it won't be that hard to find a job and a company willing to apply for the visa and wait for 6-8 months, if you can show you're a good programmer -- but there's no way to avoid the lottery.