As young as possible, because it’s not very difficult to get started. Coding has so much potential both in terms of offering career opportunities and working your brain. Most children have some familiarity with computers anyway, so perhaps the age of 8 or so would be ideal.  But remember, there are many well past 50 who are just learning coding — age is no barrier!