A computer programmer can write 8 programs in 2 weeks at a constant rate. How many programs a day can the programmer write?

In 2 weeks, there are 14 days (7 days in a week x 2 weeks = 14 days).

Therefore, the programmer can write 8 programs / 14 days = <<8/14=0.5714285714285714>>0.57 programs per day.
Rounded to the nearest whole number, the programmer can write 1 program per day. Answer: \boxed{1}.