<div dir="ltr"><div>Hello, </div><div><br></div><div>I am Damian, a student in my second year of computer degree in Universidad de Buenos Aires. Right now I am taking a class called "Software engineering" whose professor is Hernan Wilkinson and we use cuis university.</div><div><br></div><div>While I was doing my homework which is about getting repeated code out, I got a problem when I had repeated code in which the only instance variables that changed were the ones called: active and suspended. I decided to parametrize that code in another method in which both suspended and active were replaced by category, and category was a parameter. So the previous code was replaced by two lines, one calling the method with active, and the other with suspended.</div><div><br></div><div>However, you can not extract that variable as an argument. So I had to do it manually, change all active and suspended, one by one.</div><div><br></div><div>I think the fact of being able to parametrize a variable as an argument, and also be able to parametrize it as an argument that already exists (When it asks you for the name of the label, it detects if there is already an argument called by that, it is parametrized as that already-existed parameter).</div><div><br></div><div>I would like you to tell me what you think about this change, and maybe give me a hint to try to implement it. I do think this would help to extract different-named objects/variables as a single parameter, and also extract variables as parameters.</div><div><br></div><div>Thank you for reading.<br></div><div><br></div><div>I attach the code I talk about here (The given and the desired ones)<br></div></div>