If you mean no offense and have good intentions, I will explain to you why you’re being offensive.
The reason your comment is offensive is because it implies that you assume that women can’t code and require an extra burden of proof (you did homework on her. She even has a successful YouTube channel documenting how she codes and how she works through problems).
She must justify herself to you for you to take her seriously - just because she is a woman. Especially because she is a pretty woman.
The other thing that is offensive about your comment is at the end. You find it necessary to compliment her on something any guy programmer gets the benefit of the doubt about.
“Good for you, keep it up!” is not actually a compliment. It is offensive on two levels:
First, she does not need your approval. The comment is patronizing.
Second, the comment reminds women than our insecurities about being perceived not as good as male programmers in tech are real.
The reality is that we have to prove ourselves louder and harder than men, especially if we are pretty.
However, if we are too “unattractive”, our teammates, management, or direct reports criticizes our appearance. I have had someone tell me my hair is so pretty when I actually brush it (in a 1-on-1!)
I hope this helps explain why you may have offended her and others.