in reply to Re: Refactoring just to refactor?
in thread Refactoring just to refactor?
++
I fully subscribe to that. Well said!
One more note I cannot resist here: reformatting/restyling sometimes "improves" readability for some where it "obfuscates" for others. When in a team get consensus.
Some changes might yield the same underlying code and thus seem to be just styling:
$ perl -MO=Deparse -e'$a = 1 unless $b;' $a = 1 unless $b; -e syntax OK $ perl -MO=Deparse -e'$b or $a = 1;' $a = 1 unless $b; -e syntax OK
but where some see a change from first to second or vice versa as a readability improvement, others might percieve this as plain obfuscation. Not all minds work alike.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Refactoring just to refactor?
by hippo (Archbishop) on Jun 28, 2019 at 08:38 UTC |