2. Massachusetts
Number of programmers: 7,100
Average salary: $95,300
Massachusetts found its place on the second spot on our list of best states for computer programmers because of its high salary, not to mention there are a lot of programmers living here already, so there are lots of opportunities.