I wonder if the goal is not to create programmers? Much like teaching geometry isn't to prepare students for a career of proving the congruency of pairs of triangles.
The mental skills one uses to give unambiguous instruction to an computer may be valuable in communicating unambiguously with humans or decomposing seeming intractable problems.
The mental skills one uses to give unambiguous instruction to an computer may be valuable in communicating unambiguously with humans or decomposing seeming intractable problems.