IRC Volunteer Work
Here is an example of my "work" volunteering as a helper on Freenode's ##C++ IRC channel.
In this instance I refactored a visitor's code so that it would be:
-
more legible
comments are on their own lines;
-
more robust
the code is now cross-platform;
-
more understandable
the comments are more meaningful than simply more verbose versions of the code, and actually explain what we intend to accomplish from the code;
-
easier to maintain
thanks to the use of constants rather than sprinkling literals throughout the code.
Original code:
My suggested, improved code:
For another request: