Carey Brown wrote:I'm not a C# person but I see some potential issues:
Sometimes "Trim" is used and other times "Trim()" is used. There's an if(expression); {...} // the semi-colon shouldn't be there.
Is this code you've already refactored a bit?
Why do you think it's not clean?
Carey Brown wrote:Would look clearer to me if it was more like:
tangara goh wrote:I am in a temporary job where I am asked to do unit test but the code is not written in a 'clean' way so I am having difficult in performing unit test and something that I am still struggling.
Not my intent to change the signature, it was just a place holder so I could edit it in Eclipse. I do believe that the process of cleaning up code brings to light some of the purpose of the code which should be followed by applying clear naming and modularization.Junilu Lacar wrote:
Remember, refactoring only changes the internal structure and organization of code to make it easier to understand and work with. By changing the signature of ProcessTable, you have crossed the line from refactoring to redesign.
Carey Brown wrote:I do believe that the process of cleaning up code brings to light some of the purpose of the code which should be followed by applying clear naming and modularization.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|