| lexicalunit ( @ 2007-02-23 15:13:00 |
Nerds Laugh
The following made me laugh at work the other day.
I have a structure for storing data relating to dataType, product, streamIndex, etc... In the constructor I wrote out the parameters in shorthand b/c I'm lazy. So we have:
Structure::Structure(string adt, string ap, uint asi, ...)
Now my boss comes along and says he wants the structure to have a sort order independent of the key values, so he adds the data member string Structure::sortString.
When I pulled his changeset from the repository and looked over the code to see if he had done it correctly, I noticed he did a very good job of maintaining my code style in the changes he made, even in the constructor.
;)
The following made me laugh at work the other day.
I have a structure for storing data relating to dataType, product, streamIndex, etc... In the constructor I wrote out the parameters in shorthand b/c I'm lazy. So we have:
Structure::Structure(string adt, string ap, uint asi, ...)
Now my boss comes along and says he wants the structure to have a sort order independent of the key values, so he adds the data member string Structure::sortString.
When I pulled his changeset from the repository and looked over the code to see if he had done it correctly, I noticed he did a very good job of maintaining my code style in the changes he made, even in the constructor.
;)