Actually, at the top of the forum it says
"Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game."
but don't worry about it, you know now.
I think matthew42 has already answered your follow-up qn.