A
Alf P. Steinbach
At the last meeting of Oslo C++ Users Group it was maintained (as I understood
it) that code like ...
SomeType someName; // Knurre.
SomeOtherType someOtherName; // Voff.
AThirdType aThirdName; // That was a good catchy melody.
Fifthum huhWhatsThat; // But you're too young to remember.
NoHeresTheReal5th ohYeah; // Probably.
.... is bad, because most any refactoring tool tool will destroy the nice line-up
when you change those type names, and that it's therefore much better &
preferred to have no line-up, like ...
SomeType someName; // Knurre.
SomeOtherType someOtherName; // Voff.
AThirdType aThirdName; // That was a good catchy melody.
Fifthum huhWhatsThat; // But you're too young to remember.
NoHeresTheReal5th ohYeah; // Probably.
It seemed that everybody agreed.
Comments?
Cheers,
- Alf
(blog at <url: http://alfps.wordpress.com>)
it) that code like ...
SomeType someName; // Knurre.
SomeOtherType someOtherName; // Voff.
AThirdType aThirdName; // That was a good catchy melody.
Fifthum huhWhatsThat; // But you're too young to remember.
NoHeresTheReal5th ohYeah; // Probably.
.... is bad, because most any refactoring tool tool will destroy the nice line-up
when you change those type names, and that it's therefore much better &
preferred to have no line-up, like ...
SomeType someName; // Knurre.
SomeOtherType someOtherName; // Voff.
AThirdType aThirdName; // That was a good catchy melody.
Fifthum huhWhatsThat; // But you're too young to remember.
NoHeresTheReal5th ohYeah; // Probably.
It seemed that everybody agreed.
Comments?
Cheers,
- Alf
(blog at <url: http://alfps.wordpress.com>)