While I am reading a refactoring tutorials, a two code smells confused me, long parameter list smell, and data clumps smell, however what come in my mind is in data clumps the params are somehow related together, meanwhile in long parameter list, the params are unrelated.
Also to solve the above two smells we use slimier techniques which is parameter object, preserve whole object or extracting a class.
My question, do I understand the two smells correctly?
Thank you.
Aucun commentaire:
Enregistrer un commentaire