Personally, I think learning to write code or queries is a pretty useful skill to have
It's all about logical construction, which is a good general skill to encourage in students.
Sounds like the writer at The Telegraph learned about coding and software developers from "Everything I Ever Learned About Technology I Picked Up From Reading Dilbert"