Encouraging kids to learn CS?

My husband has nagged our daughter to learn some coding, but she isn’t interested. Our son took one CS class, aced it and was asked to consider it as a major, but he hated it.