First of all, what exactly do you want to do? Theoretically, e-commerce and programming are not the same industry, and if you are a professional, you can't change careers, or you can change careers slowly. If we have to link them together, it is far-fetched and can only be said to be two business areas.
Secondly, e-commerce is actually a trend in the future (although it has been considered as e-commerce now). If you study in a technical secondary school, if you develop in this field in the future, you can practice on the basis of school study (for example, Taobao has no cost for the time being).
Thirdly, the scope of e-commerce is too wide, which can be divided into sales and operation in theory, that is, online sales and online sales of the overall operating company. Therefore, e-commerce is still promising and will be a compulsory course in the future.
Finally, if you learn programming, you will be a technical post in the future. Technical posts need to be studied and used all the time, which is quite difficult. The future appreciation channel is the technical director and so on.