A new study shows just how good some tech professionals have it in Texas: Sparefoot's roundup of the 10 best cities for web developers ranks Dallas No. 7 and Austin No. 8.

The Austin-based startup teamed up with Indeed to determine the top 10 hubs for web developers based on job availability. Sparefoot then ranked the cities based on number of job openings, average salary, median home price, and median annual rent.

Dallas outshines Austin with a higher average salary and more affordable living. Simply put, says Sparefoot, "the pay is better and the housing is more affordable a few hours to the north."

The average annual salary for a web developer in Dallas is $78,000, No. 8 among the hubs studied. With an affordable median home price of $235,626 and median annual rent of $15,504, Dallas ranks No. 3 for salary as percentage of home price (33 percent) and No. 2 for rent as percentage of income (20 percent).

In Austin, the average annual salary for a web developer is $73,000, the lowest of the bunch. But what Austin lacks in salary, it makes up for with relatively affordable living. Austin ranks fourth for both salary as percentage of home price (27 percent) and rent as percentage of income (23 percent).

The leading city for this popular tech career is Atlanta; New York and Chicago are tied at No. 2.