This is a company ran by young CEOs, in Thailand. I am Chinese 3rd generation in Thailand. My background were mostly western since the elementary school, university and first software house I worked with when I was junior.
I am not a professional developer (yet). But, I strive to practice and become one. I put effort into watching both paid and free tutorials, and studying from books. I also participate in every meetup of software developer groups. My employer does not supply any learning material for me like they promised, I am doing this all on my own.
A junior level subordinate said, "I am gonna learn from your code". I am happy with that. He has made very good progress learning from me. Cheers to the community and company. He reduces my workload due to what he has learned. I did this too when I was a junior.
The company is using that junior's knowledge (which was acquired from me and with me) to de-value my position. They claim that the junior is able to perform at the same level as me.
I am scared because I have 3 - 4 more men under my supervision, and may soon have more, since new projects are coming. I suspect that one day, the company will use them against me in the same manner as the aforementioned junior.
This experience is going to demoralize me and leave me unwilling to share my knowledge.
I want to continue sharing but only as long as the outcome is not detrimental to me and indirectly spoils my reputation.
What is the best approach to deal with this situation at my employer? I am not ready to quit yet. I have only worked here for 6 months and I have no customer relationships. Otherwise, I would have started my own company already.