Here is a paragraph I wrote a couple days ago:
So if you are a person who can learn by himself/herself (which is a must-have trait if you are going to be a good programmer) then other tools that you have the control of the learning pace are way more useful than college.
I wonder if the usage of "which" here is correct or not? When a friend read it, he said that "which" must be "who" because I am talking about a person. But for me, the "which" relates to the "ability of being able to learn by yourself"
Maybe I'm thinking in my own language and this is creating a syntactic mistake?