[haiku-development] Refactoring Messy Code

  • From: Michael Crawford <mdcrawford@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 30 Nov 2009 16:03:52 -0800

Here is a good job for someone that knows a little C++, but wants to
get better at it:

Buy Scott Meyers' books Effective C++, More Effective C++ and Effective STL.

Go find some code in the Haiku codebase that looks like it needs some TLC.

Read one "Item" in one of the books.  Apply its advice throughout the
code you're looking at.

By the time you have read all the Items and applied them throughout a
program, you will have both increased your Code Fu substantially, and
likely will have fixed many bugs.

I did this myself on my own project a while back.  It was well worth the effort.

You don't need to buy all three books simultaneously.  Buy just one
first, then buy the next when you're done with the first.

Mike
-- 
Michael David Crawford
mdcrawford at gmail dot com

   GoingWare's Bag of Programming Tricks
      http://www.goingware.com/tips/

Other related posts: