Despite the sector's struggles to start the new year, technology is still one of the best places to invest over the long run. The sector has helped power the market higher in recent years, which has led to eight of the largest companies in the S&P 500 being either technology companies or companies with strong technology ties.